Lab 6i: User Logon Scripts PreviousIndexNext

LAB6I: USER LOGON SCRIPTS
In this exercise, you will create a simple logon script and assign it to a group of users, so that it executes when they log on to the domain.

  1. Log on to the PDC as administrator
  2. Start NT Explorer, and access \<Winnt_root>\system32\repl\import\scripts
  3. Create a new file called blast.cmd
  4. Enter the following information into the file

    @echo off
    echo Operating System is %OS%
    echo Username is %USERNAME%
    pause

  5. Save the file, then run User Manager for Domains
  6. Assign the logon script blast.cmd to the user user1

  7. Log off, then log back on at the PDC as user1
  8. Did the logon script run as expected?
    	YES	NO
    
  9. What information was printed by the logon script?
    	Operating System is ............................................
    	Username is ....................................................
    
  10. If you have a chance, try the same thing from the BDC, and also a Windows95 computer. Do you see any difference?
    	YES	NO
    

Top Summary
Logon scripts allow additional commands to be executed when a user logs onto a domain. It is possible to run programs and manage network and printer mappings using logon scripts. The logon script must be on the same server as that which is validating the logon request. For this reason, logon scripts are normally replicated to all BDC's in the domain.

Environment variables are not accessed correctly under Windows95. Look at the supplemental information on the Windows95 CD-ROM, found under \admin\apptools\envvars\winset.exe for more information, or KikStart, found at http://www.xs4all.nl/~akhw/winnt.html.


PreviousIndexNext