TransWikia.com

Add Startup and shutdown scripts to Local Group Policy using Powershell

Server Fault Asked by semantic_c0d3r on December 10, 2020

I am trying to automate adding startup and shutdown scripts to Local Group Policy (gpedit.msc). One solution is to write to registry directly as pointed out in http://ccm.net/faq/3358-execute-a-script-a-startup-and-shutdown. I’m looking for a way to do it via powershell script using the GroupPolicy module. I want to know if this is possible/anyone has succeeded in doing this?

UPDATE: After reading through msdn articles, I figured out that we can access domain group policy objects but the local group policy object (which contains the startup and shutdown scripts) is stored in registry. I am trying to find a way to access and edit this local GPO through powershell.

One Answer

If you're trying to do this on a workgroup machines, configure it manually. If they are part of a domain, do it via GPO. All the same options are avail in GPO that are avail in local policy.

enter image description here

Answered by Clayton on December 10, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP