How to deploy PowerShell script via group policy?

This forum contains useful scripts and script guidelines to have effective Windows Scripting

How to deploy PowerShell script via group policy?

Postby ManU » Mon Feb 22, 2010 1:39 pm

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.
Regards
MANU PHILIP -MVP-Exchange Server
| MCITP | MCTS | MCSA| ITIL V3 |
Mirosoft TechNet Forums Profile: Manu PhiliP
User avatar
ManU
Founder
Founder
 
Posts: 87
Joined: Sat Sep 26, 2009 9:57 am
Location: India-Kerala

Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest