Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • 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...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Mon, Sep 12 2011
    Filed under: Filed under: , , ,
  • 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. If we look at the WMI rules get-rule | where{$_.Name -like "*wmi...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Fri, Sep 2 2011
    Filed under: Filed under: , ,
  • 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...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Thu, Sep 1 2011
    Filed under: Filed under: , ,
  • 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 part of the demo. I had to use the GUI tools...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Wed, Aug 31 2011
    Filed under: Filed under: , ,
  • 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...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Sat, Jul 30 2011
    Filed under: Filed under: , , ,
  • 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 outputs an object function get...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Wed, Jun 29 2011
    Filed under: Filed under: , ,
  • Windows Updates: remote machines

      My main blog is now at http://msmvps.com/blogs/RichardSiddaway/Default.aspx but I also maintain http://richardspowershellblog.wordpress.com/ as a mirror and in case I want the two to diverge at some point. My recent posts on accessing Windows updates – especially when testing for available updates...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Sat, Jun 25 2011
    Filed under: Filed under: ,
  • Viewing favourites

    I recently copied my favourites between machines which started me thinking about viewing favourites. Like many people I have generated a lot of favourites over the years – do I really need them all. Don’t know because I don’t know what they are.  Its easy to correct that $favs = New-Object -ComObject...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Fri, Jun 24 2011
    Filed under: Filed under: , ,
  • Windows Updates: 3 Installing Updates

    Now we have discovered the updates we have available we can think about installing them. 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 function   install-update   { $session   =  ...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Sat, Jun 11 2011
    Filed under: Filed under: , ,
  • Windows Updates: 2 Installed updates

    Testing for installed updates is a variation on what we saw last time. This will show updates that Windows updates has installed – Get-Hotfix will show all updates that have been installed. 001 002 003 004 005 006 007 008 function   get-installedupdate   { $session   =   New-Object...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Sat, Jun 11 2011
    Filed under: Filed under: ,
  • Windows Updates: 1 Discovering Updates

    I want to spend a few posts looking at Windows updates. There is a COM object model that enables us to work with the updates system. Any update processing starts with discovering the updates that are available 001 002 003 004 005 006 007 008 function   get-update   { $session   =  ...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Fri, Jun 10 2011
    Filed under: Filed under: ,
  • Path to files on start menu

    I was asked today if it was possible the path to  recent files that are shown on the start menu. I thought it was easy until I started digging into it. The files on the start menu  are .lnk files and are in a binary format. 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Tue, Jun 7 2011
    Filed under: Filed under: , ,
  • Scripting Games Commentary: III PowerShell and Excel

    Some of the events had the production of a CSV file as the end result with a bonus point if you opened the file in Excel. The quickest way and easiest way to open a CSV file in Excel is like this Invoke-Item -Path chapt4.csv   This will work if you have the CSV file extension opened with Excel. ...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Tue, Apr 26 2011
    Filed under: Filed under: , ,
  • Tuesday’s recording

    The recording from Tuesdays UG meeting is available. Richard Siddaway has invited you to view a Microsoft Office Live Meeting recording. View Recording Recording Details Subject: PowerShell and COM objects Recording URL: https://www.livemeeting.com/cc/usergroups/view Recording ID: Q4DPJT Attendee Key...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Wed, Apr 13 2011
    Filed under: Filed under: , ,
  • COM pt 7–Items pt 2

    In part 6 we looked at the drives collection on the FileSystemObject. The Items property was mentioned. Lets jump back to our Shell object $shell = New-Object -ComObject "Shell.Application"   if we do a Get-Member $shell | gm You will see a method called Namespace.  This allows you...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Thu, Feb 3 2011
    Filed under: Filed under:
  • COM pt 6–Collections pt 1

    If we return to our filesystemobject $fso = New-Object -ComObject "Scripting.FileSystemObject" and look at the drives collection $fso.Drives   we will see a collection of drives. If we try to index into it $fso.Drives[0]   we get error that says Unable to index into an object of type...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Tue, Feb 1 2011
    Filed under: Filed under: ,
  • COM pt 5–FileSystem Object

    I haven’t finished with the WScript.Shell object and we will return to it.  This time I want to look at the FileSystem object. If you have worked with VBScript and files you will be familiar with this object.  While we have techniques in PowerShell to perform many of the same tasks there are...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Mon, Jan 31 2011
    Filed under: Filed under: ,
  • COM pt 4

    If you have been following along so far you may be thinking that you can use ls env: to view the environmental variables. True. But if you compare the output of part 3, the PowerShell enc: drive and getting the environmental variables via WMI you will find that they aren’t identical. The point of this...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Sun, Jan 30 2011
    Filed under: Filed under: ,
  • COM pt 3–More shell

    Last time we looked at the Environment parameterized property If you ran the script in part two the output would have contained things like windir=%SystemRoot% We need to be able to resolve the variable %SystemRoot% part to the full path 001 002 003 004 005 006 007 008 009 010 011 012 013 014 $wshell...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Sat, Jan 29 2011
    Filed under: Filed under: ,
  • COM pt3–WScript.Shell

    One thing that we seem to forget when we use PowerShell is the functionality that was available to us in VBScript through the Windows Scripting Host (WSH) objects. Much of this functionality has been duplicated in PowerShell cmdlets or through .NET classes but there is still a good pile of stuff we can...
    Posted to Richard Siddaway's Blog by RichardSiddaway on Wed, Jan 26 2011
    Filed under: Filed under: , ,
Page 1 of 2 (25 items) 1 2 Next >