1

I would like to run a powershell script at startup but there is no 'powershell' tab on the dialog box.

I am running Windows Server 2008 64-bit.

Thanks!

divided
  • 367
  • 1
  • 4
  • 11

2 Answers2

6

Use a newer version of the Group Policy Management Console. Ideally, install RSAT on your Windows 7 or newer Workstation and manage it remotely.

MDMarra
  • 100,734
  • 32
  • 197
  • 329
4

You might be able to run a batch file containing something along the lines of

powershell c:\path\to\powershellscript.ps1

or

powershell \\servername\share\powershellscript.ps1

(You might have to enable powershell on the workstations first.)

Katherine Villyard
  • 18,550
  • 4
  • 37
  • 59
  • while correct, this doesn't answer the question, which is about running PowerShell scripts *natively* in a GPO. – Massimo Aug 05 '15 at 22:45
  • 1
    The question is actually "Why is there no 'powershell' tab in the group policy scripts dialog?" I don't think "Why is the tab designed the way it is?" is an answerable question suitable for Server Fault. The implied question is "How do I run a powershell script at start up without a powershell tab in the group policy scripts dialog?" – Katherine Villyard Aug 05 '15 at 22:49