Category Archives: COM

WMF 5.0 COM applications

One change in WMF 5.0 that I hadn’t got round to testing was the speed up in COM based operations. COM – Component Object Model – was the Microsoft programming model before .NET.  Its old but still around – the … Continue reading

Posted in COM, Office 2013, PowerShell v5, WMFv5 | Leave a comment

Create a calendar item

Continuing the occasional look at Outlook automation its time to see how we create a calendar item function new-calendaritem { param ( [string]$mailbox, [datetime]$start, [datetime]$end, [string]$subject, [string]$location, [string]$body ) $outlook = New-Object -ComObject Outlook.Application $folder = get-mailfolders | where {$_.Path … Continue reading

Posted in COM, Networking, Outlook, PowerShell V2 | 5 Comments

Controlling Firewall Rules

I decide that for this module I wanted some functions that control specific rule that I could be working with often e.g. Enable/Disable WMI rules and then I want a generic function for everything else. Lets start with some specifics. … Continue reading

Posted in COM, Firewall, PowerShell V2 | Leave a comment

Firewall rules (OK)

The really important thing about our firewall is the rules that are configured. function get-rule { [CmdletBinding()] param () BEGIN{}#begin PROCESS{ $fw = New-Object -ComObject HNetCfg.FwPolicy2 $fw.Rules | foreach { $profiles = @() $ruleprofile = $_.Profiles @(1,2,4, 1073741824) | foreach … Continue reading

Posted in COM, Firewall, PowerShell V2 | Leave a comment

Windows firewall

I normally leave the Windows firewall enabled in my test environment. It ensures I don’t forget it when testing. My recent session for the TechEd:Australia PowerShell conference involved me disabling various firewall rules on the subject machine to set up … Continue reading

Posted in COM, Firewall, PowerShell V2 | 2 Comments

Outlook Connector & mail folder item count

On my home laptop I use Live Mail to aggregate my hotmail accounts. On my travelling netbook I decided to try the Outlook Connector http://office.microsoft.com/en-us/outlook-help/microsoft-office-outlook-hotmail-connector-overview-HA010222518.aspx This add in enables you to access hotmail accounts from Outlook & because I’m using … Continue reading

Posted in COM, Office 2010, PowerShell V2, Windows 7 | Leave a comment

IE history to CSV

Back in April last year I wrote a post about viewing IE history http://msmvps.com/blogs/richardsiddaway/archive/2010/04/13/ie-history.aspx I had a comment left asking how this could be put into a CSV file We’ll start by turning the script into an advanced function that … Continue reading

Posted in COM, PowerShell V2 | 7 Comments