This month’s TechNet Magazine has an article: Simplify Group Policy Administration with Windows PowerShell. They are good enough to include all the code as a download.
Jeffrey Snover [MSFT]
Windows Management Partner Architect
Visit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShell
Visit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx