0

It is possible to add shutdown script via powershell in enter image description here

Is there any cmdlet for that?

softshipper
  • 32,463
  • 51
  • 192
  • 400
  • Not directly, you can try using `secedit.exe` for that, though. – Vesper Aug 04 '15 at 13:15
  • There are Group Policy Cmdlets available but I don't know whether they supports adding a startup script: https://technet.microsoft.com/en-us/library/ee461027.aspx – Martin Brandl Aug 04 '15 at 13:18
  • I want to add powershell startup script to windows startup event via powershell cmdlet. – softshipper Aug 04 '15 at 13:51
  • You can use [registry based policy](http://serverfault.com/questions/377387/how-to-add-a-shutdown-script-not-by-using-gpedit-msc-or-active-directory), with all the caveats and implications that implies. – Bacon Bits Aug 04 '15 at 14:37

0 Answers0