Edit a GPO field from a script

Home Forums Client Operating Systems Windows 7 Edit a GPO field from a script

  • This topic has 8 replies, 4 voices, and was last updated 8 years ago by AvatarAnonymous.
Viewing 1 post (of 1 total)
  • Author
  • Avatar

    Hi all,

    Lots of Win7 VMs, that I want to automatically shutdown when a user logs off. My problem is I cannot start gpedit.msc on every machine, and edit user config -> windows settings -> scripts (logon/logoff)

    Simply placing a cmd file in %WINDIR%System32GroupPolicyUserScriptsLogoff also doesn’t work – I need to enable the policy somehow.

    AD is not an option in this case.

    So my question is – is there a way, within a script, to place the cmd script in the right location and also update the GPO that uses this cmd file?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.