Home | Troubleshooting |  Quick Setup  |  Cisco How to  |  Data Recovery  |  Forums   | Blog | IT Exam Practice | Services  | About Us | Chicagotech MVP  | Search  | Contact Us  |                 

 

Logon Script

By the default net use command  map the drive persistently
How to fix the logon script not running
How to synchronize the computer's clock with that of a domain

Example of VBScript - Mapping a network drive based on the group
Example of batch file - make a network drive
Where is logon script located

By the default net use command  map the drive persistently

Q: We use logon script to map network drives. The XP clients keep getting Windows was unable to map all of your
network drives or the local drive is already in use, even it is able to map the drives. Why?

A: By the default net use command  map the drive persistently. To fix this problem, use NET USE I: \\servername\folder /persistent:no.

How to fix the logon script not running

SYMPTOMS: If a slow network connection is detected during the initial logon process, the logon script may not run. Resolution: try one or more of the following policies. 1) go to MMC>Local Computer Policy>User Configuration>Administrative Templates>System>Group Policy, check Enable Group Policy slow link detection, and then type 0 in the Connection speed box. 2) Enable Scripts policy processing, and then select the Allow processing across a slow network connection check box.

How to synchronize the computer's clock with that of a domain

To synchronize the computer's clock with that of another computer or domain, use net time command, for example, net time \\chicagotech /set /yes.

Example of VBScript - Mapping a network drive based on the group

' Map a network drive if the user is a member of the group.
' Alert the user if the drive cannot be mapped.
If IsMember(objUser, "accounting") Then
If Not MapDrive("Q:", "\\chicagotech\data") Then
MsgBox "Unable to Map Q: to AdminShare"
End If
End If

Example of batch file - make a network drive

net use h: \\hostname\sharedname

Where is logon script located

By default, on Windows NT 3.x and 4.0 DC and workstations, the %SystemRoot%\System32\Repl\Import\Scripts folder is shared as NETLOGON for saving logon script. On Windows 2000/2003 servers, the %SystemRoot%\Sysvol\Sysvol\domainname\Scripts folder is shared as NETLOGON. On Windows 2000/XP workstation, the default location for local logon scripts is the %Systemroot%\System32\Repl\Imports\Scripts folder. The %Systemroot%\System32\Repl\Imports\Scripts folder is not created on a new installation of Windows. Therefore, the %SystemRoot%\System32\Repl\Imports\Scripts folder must be created and shared out with the share name netlogon.

 

Hit Counter   This web is provided "AS IS" with no warranties.
Copyright © 2002-2018 ChicagoTech.net, All rights reserved. Unauthorized reproduction forbidden.