Page 1 of 1

How to deploy PowerShell script via group policy?

Posted: Mon Feb 22, 2010 1:39 pm
by ManU
If you want to deploy a PowerShell script on domain clients, how can you do it via group policy?

In Windows 7 and Windows Server 2008 R2, the UI in Group Policy Editor for Logon, Logoff, Startup, Shutdown scripts now has an extra tab for PowerShell scripts. You can simply add your PowerShell script to this tab to deploy it.

1. Create or edit a GPO on Windows Server 2008 R2 or Windows 7 with RSAT.

2. Navigate to [Computer Configuration\Policies\Windows Settings\Scripts]

Or [User Configuration\Policies\Windows Settings\Scripts]

3. Double-click Startup/Shutdown or Logon/Logoff, switch to PowerShell Scripts tab and add PowerShell script files.