How to add a startup/shutdown script to the GPO from the command line
- by thomasjames
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.