On a Windows XP SP3 computer.
Downloaded the PowerShell PowerPack that’s included in the Windows 7 Resource Kit (but works with XP).
Found here: http://archive.msdn.microsoft.com/PowerShellPack
Downloaded the “Microsoft Windows Image Acquisition Library 2.0” to provide some COM objects..specifically wia.imagfile. Found here: http://www.microsoft.com/download/en/details.aspx?id=18287
Then downloaded an extension powerpack to allow editing of the EXIF data. Found here: http://archive.msdn.microsoft.com/PSImage/Release/ProjectReleases.aspx?ReleaseId=4593
To run the commands from the PowerPack, run the following command in PowerShell:
Import-Module PowerShellPack
To add the extension to the PowerShellPack after you download and copy the scripts into your ..WindowsPowerShellModulesImage folder (You’ll have to create the image folder):
Import-Module Image
I did have to edit the image.psd1 file to not include the “New-LogonBackground.ps1” as the above command produced the error:
Import-Module :
The module to process 'New-LogonBackground.ps1', listed in field 'NestedModules' of module manifest 'D:sharedWindowsPowerShellModulesimageimage.psd1' was not processed because no valid module was found in any module directory.
At line:1 char:14
To add the Wia objects..just follow the install instructions. After copying the dll to the System32 directory and registering the dll, it worked.
James O’Neill’s blog seems to be a good place to get started using these features:
http://blogs.technet.com/b/jamesone/archive/2010/07/05/exploring-the-image-powershell-module.aspx