JSI Tip 8391. How do I assign a logoff script to all users in my domain?

Jerold Schulman

August 18, 2004

1 Min Read
ITPro Today logo in a gray background | ITPro Today

Someone asks me the subject question at least once a week, so in self defense:

  • Create a logoff.bat file in the %SystemRoot%SYSVOLsysvolPoliciesUSERScriptsLogoff folder on your domain controllers.To determine the , on your domain controller:

    • Start / Run / dsa.msc / OK.

    • Right-click the domain and press Properties.

    • Select the Group Policy tab.

    • Right-click the Default Domain Policy and press Properties.

    • The is in the Unique Name field.


  • Open the Default Domain Policy.

  • Navigate through User Configuration/Windows Settings/Scripts (Logon/Logoff).

  • Double-click Logoff in the right pane.

  • Press Add.

  • Type logoff.bat and press OK.

  • Press Show to confirm it knows where logoff.bat is.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like