SharePoint 2010 and PowerShell are a perfect fit. With more than 500 cmdlets, the possible scripts to create are countless. But, what about MOSS 2007, is it possible to take advantage of it. Of course it is, with a minimum effort.
First the requirements, if MOSS is installed on a Windows Server 2003, it might require to install PowerShell 2.0. Download it here. Install the package. You won’t have to reboot your server.
Then, start the PowerShell console, it’s under Start –> Accessories –> PowerShell 2.0
In the console, enable the remote scripting.
[codesyntax lang="powershell"]
Set-ExecutionPolicy RemoteSigned
[/codesyntax]
Now to access MOSS 2007, you will have to interface with the SharePoint API by using the .Net FrameWork.
Phil Childs has a great post about it.
And Niklas Goude did an awesome job by creating great PowerShell scripts for MOSS that look like SharePoint 2010 cmdlets.

