I'm a novice at writing logon scripts. I'm trying to map all my Win XP and Win2000 users to a new network drive using group policy on my 2003 PDC. I used the following script to map the drive and placed it in the C:\windows\sysvol\sysvol\(mydomain)\scripts folder on the PDC. I then edited the domain group policy to use this logon script in the ComputerConfiguration\WindowsSettings\Scripts\(Startup/Shutdown\startup AND in the User Configuration\Windows Settings\Scripts (logon\logoff)\logon.
It is a new drive letter, never used before.
The first day, it worked fine, but every day after, we get an error message that the local device name is already in use (error 80070055) Although, if we ignore this, the drive shows in My Computer as disconnected, but it works.
Do I need a logoff script too? Should I not have put the script in both Windows and User Settings, OR do I need somekind of IF in the script? Here is the script:
Dim objNet
Set objNet = CreateObject("Wscript.Network")
objNet.MapNetworkDrive "J:", "\\mydomain\jobs"
WSCript.Quit
Thanks in advance for any light you can shed on this!
It is a new drive letter, never used before.
The first day, it worked fine, but every day after, we get an error message that the local device name is already in use (error 80070055) Although, if we ignore this, the drive shows in My Computer as disconnected, but it works.
Do I need a logoff script too? Should I not have put the script in both Windows and User Settings, OR do I need somekind of IF in the script? Here is the script:
Dim objNet
Set objNet = CreateObject("Wscript.Network")
objNet.MapNetworkDrive "J:", "\\mydomain\jobs"
WSCript.Quit
Thanks in advance for any light you can shed on this!