How to add a startup/shutdown script to the GPO from the command line
Posted
by
thomasjames
on Super User
See other posts from Super User
or by thomasjames
Published on 2014-06-05T18:41:54Z
Indexed on
2014/06/05
21:29 UTC
Read the original article
Hit count: 181
I need to add startup and shutdown scripts from a CLI through a Powershell/Python/CMD script. Ideally, I would like to have the same functionality as gpedit.msc, but it is important that the tasks of adding and removing such scripts do not require user interaction and can be done entirely within the context of a script.
Currently, the scripts here seem to be in the same category, but none of them explicitly address editing startup and shutdown scripts:
http://msdn.microsoft.com/en-us/library/aa814151(v=vs.85).aspx
Let me know if anyone has any ideas and thanks in advance.
© Super User or respective owner