Jump to content

Logoff Script


Recommended Posts

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.

Link to comment
Share on other sites


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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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