Jump to content

Recommended Posts

Posted

I want to put in a log off script for user's local computer.

I know where to put the files for a logoff script, however, I need to know (and I am assuming this will be done through the registry) how to enable the Group Policy for the user's log off script.


Posted

As far as I can tell, a logoff (and logon) script is added to this registry key:

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logoff]
"Script"="logoff.cmd"
"Parameters"=""
"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System\Scripts\Logon]
"Script"="logon.cmd"
"Parameters"=""
"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

Scripts must be in $OEM$\$$\System32\GroupPolicy\User\Scripts\Logon and \Logoff

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...