Re: Login Script - System error 85

Tech-Archive recommends: Fix windows errors by optimizing your registry



In news:48A3093A-E8DE-4200-918C-EC9E5E0BEDEF@xxxxxxxxxxxxx,
Marc S <MarcS@xxxxxxxxxxxxxxxxxxxxxxxxx> typed:
I am running a basic Login script in Sysvol to map a few mapped
drives thru the Net use: \\server\folder /persistent:yes command.

After the first logon, the next consecutive logons give me System
error 85 has occurred. The local device is already in use. The
mapped drive is there, but there is an error in the script.

Is there a better way to re-map drives on each Logon?

What I did in situations with such a script, and is good practice, is to
delete all drives before mapping them to eliminate this error. This also
deletes mappings the users may have deleted the necessary share and mapped
anothe ron the same letter. This ensures all users get the proper mappings
whenever they logon.

net use d: /delete
net use e: /delete
etc.
net use d: \\server\share1
net use e: \\server\share2


--
Regards,
Ace

This posting is provided "AS-IS" with no warranties or guarantees and
confers no rights.

Ace Fekay, MCSE 2003 & 2000, MCSA 2003 & 2000, MCSE+I, MCT,
MVP Microsoft MVP - Directory Services
Microsoft Certified Trainer

Infinite Diversities in Infinite Combinations



.



Relevant Pages

  • Re: Map Network Drive
    ... not the "pre-Windows 2000 logon name" you need. ... Set objNetwork = CreateObject ... Will the mapped drives reconnect after the pc is restarted and the ... In VBScript use the wshNetwork object to map a drive to a share. ...
    (microsoft.public.scripting.vbscript)
  • cant logon to xp home
    ... can't seem to logon. ... program that let us look at passwords even if we can't ... drives again so our original was the master and the 4GB ... With the backup all internal, ...
    (microsoft.public.windowsxp.general)
  • RE: cant logon to xp home
    ... rator.If youve tried that,are you sure its not the boards security thats ... > can't seem to logon. ... > program that let us look at passwords even if we can't ... > drives again so our original was the master and the 4GB ...
    (microsoft.public.windowsxp.general)
  • Re: Login Script - System error 85
    ... After the first logon, the next consecutive logons give me System ... Is there a better way to re-map drives on each Logon? ... What I did in situations with such a script, and is good practice, is to ... MVP Microsoft MVP - Directory Services ...
    (microsoft.public.windows.server.general)
  • Re: MapNetworkDrive not working during first logon
    ... Here is a question you might want to consider: why do you run your logon ... is mapped automatically as part of the users profile. ... if I open a command prompt and switch to one of the mapped drives ... No path is specified for the logon script itself. ...
    (microsoft.public.scripting.vbscript)