What Are Logon, Logoff, Startup, and Shutdown Scripts?

Logon, logoff, startup, and shutdown scripts run automatically when certain events occur, such as when a computer starts or a user logs on. These scripts can be used for many purposes, such as to take inventory of local hardware, to install software, and to map network drives. They fall into three categories:

  • Group Policy logon and logoff scripts. Group Policy logon and logoff scripts are attached to GPOs and apply to all the users in the domain or OU to which a GPO is assigned. A common use for logon scripts is to map a network drive based on the groups that a user belongs to. Logoff scripts are configured to run automatically each time a user logs off a domain. A logoff script might be used ...

Get Windows® Essential Business Server 2008 Administrator's Companion now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.