Results 1 to 8 of 8

Thread: Login Script - System error 85

  1. #1
    Marc S Guest

    Login Script - System error 85

    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?

  2. #2
    Ace Fekay [MVP] Guest

    Re: Login Script - System error 85

    In news:[email protected],
    Marc S <[email protected]> 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




  3. #3
    Richard Mueller [MVP] Guest

    Re: Login Script - System error 85


    "Ace Fekay [MVP]" <[email protected]> wrote in message
    news:[email protected]...
    > In news:[email protected],
    > Marc S <[email protected]> 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
    >


    I don't use the persistent option when I map drives in a logon script. That
    may be causing the error.

    --
    Richard Mueller
    Microsoft MVP Scripting and ADSI
    Hilltop Lab - http://www.rlmueller.net
    --



  4. #4
    Ace Fekay [MVP] Guest

    Re: Login Script - System error 85

    In news:%[email protected],
    Richard Mueller [MVP] <[email protected]> typed:
    >
    > I don't use the persistent option when I map drives in a logon
    > script. That may be causing the error.
    >
    > --
    > Richard Mueller
    > Microsoft MVP Scripting and ADSI
    > Hilltop Lab - http://www.rlmueller.net


    Good point, Richard. I don't either. No need especially if deleting them
    anyway before re-mapping them

    Ace





  5. #5
    Marc S Guest

    Re: Login Script - System error 85

    So, is it good practice to use both suggestions:
    1. First delete the "specific mapped drives first"
    net use e: /delete

    2. Can you use the Persistent command "without" adding Yes or NO.
    Net use: \\server\folder /persistent
    OR
    Just don't even include the Persistent command
    Net use: \\server\folder

    "Ace Fekay [MVP]" wrote:

    > In news:%[email protected],
    > Richard Mueller [MVP] <[email protected]> typed:
    > >
    > > I don't use the persistent option when I map drives in a logon
    > > script. That may be causing the error.
    > >
    > > --
    > > Richard Mueller
    > > Microsoft MVP Scripting and ADSI
    > > Hilltop Lab - http://www.rlmueller.net

    >
    > Good point, Richard. I don't either. No need especially if deleting them
    > anyway before re-mapping them
    >
    > Ace
    >


    >
    >
    >


  6. #6
    Richard Mueller [MVP] Guest

    Re: Login Script - System error 85

    The default is for the mapping to not be persistent, so don't include it in
    the command. I would suggest either first remove all drive mappings, or (in
    VBScript) trap the possible error when you map drives. If the mapping fails,
    remove the drive and try again. That cannot be done in a batch file, so to
    be save use the /delete.

    --
    Richard Mueller
    Microsoft MVP Scripting and ADSI
    Hilltop Lab - http://www.rlmueller.net
    --

    "Marc S" <[email protected]> wrote in message
    news:[email protected]...
    > So, is it good practice to use both suggestions:
    > 1. First delete the "specific mapped drives first"
    > net use e: /delete
    >
    > 2. Can you use the Persistent command "without" adding Yes or NO.
    > Net use: \\server\folder /persistent
    > OR
    > Just don't even include the Persistent command
    > Net use: \\server\folder
    >
    > "Ace Fekay [MVP]" wrote:
    >
    >> In news:%[email protected],
    >> Richard Mueller [MVP] <[email protected]> typed:
    >> >
    >> > I don't use the persistent option when I map drives in a logon
    >> > script. That may be causing the error.
    >> >
    >> > --
    >> > Richard Mueller
    >> > Microsoft MVP Scripting and ADSI
    >> > Hilltop Lab - http://www.rlmueller.net

    >>
    >> Good point, Richard. I don't either. No need especially if deleting them
    >> anyway before re-mapping them
    >>
    >> Ace
    >>

    >
    >>
    >>
    >>




  7. #7
    Marc S Guest

    Re: Login Script - System error 85



    "Richard Mueller [MVP]" wrote:

    > The default is for the mapping to not be persistent, so don't include it in
    > the command. I would suggest either first remove all drive mappings, or (in
    > VBScript) trap the possible error when you map drives. If the mapping fails,
    > remove the drive and try again. That cannot be done in a batch file, so to
    > be save use the /delete.
    >
    > --
    > Richard Mueller
    > Microsoft MVP Scripting and ADSI
    > Hilltop Lab - http://www.rlmueller.net
    > --
    >
    > "Marc S" <[email protected]> wrote in message
    > news:[email protected]...
    > > So, is it good practice to use both suggestions:
    > > 1. First delete the "specific mapped drives first"
    > > net use e: /delete
    > >
    > > 2. Can you use the Persistent command "without" adding Yes or NO.
    > > Net use: \\server\folder /persistent
    > > OR
    > > Just don't even include the Persistent command
    > > Net use: \\server\folder
    > >
    > > "Ace Fekay [MVP]" wrote:
    > >
    > >> In news:%[email protected],
    > >> Richard Mueller [MVP] <[email protected]> typed:
    > >> >
    > >> > I don't use the persistent option when I map drives in a logon
    > >> > script. That may be causing the error.
    > >> >
    > >> > --
    > >> > Richard Mueller
    > >> > Microsoft MVP Scripting and ADSI
    > >> > Hilltop Lab - http://www.rlmueller.net
    > >>
    > >> Good point, Richard. I don't either. No need especially if deleting them
    > >> anyway before re-mapping them
    > >>
    > >> Ace
    > >>
    > >>


    After some further testing of the Logon Script using deleting mapped drives,
    and removing the persistent, I had intermittant issues. The script would
    stop and prompt to click Yes to delete one of the mapped drives. Not sure why
    this occurred, but I don't want my users to go thru this.

    If I don't add the delete mapped drives, and leave the persistant mapped
    drives in the Logon Script...then the user gets the Login Script - System
    error 85 ONLY when the drives are already mapped.

    Is it any harm to just leave that alone? The error doesn't seem to hurt
    anything. If the drives get deleted manually, at least the logon script will
    re-add them.


  8. #8
    Ace Fekay [MVP] Guest

    Re: Login Script - System error 85

    In news:[email protected],
    Marc S <[email protected]> typed:

    > After some further testing of the Logon Script using deleting mapped
    > drives, and removing the persistent, I had intermittant issues. The
    > script would stop and prompt to click Yes to delete one of the mapped
    > drives. Not sure why this occurred, but I don't want my users to go
    > thru this.
    >
    > If I don't add the delete mapped drives, and leave the persistant
    > mapped drives in the Logon Script...then the user gets the Login
    > Script - System error 85 ONLY when the drives are already mapped.
    >
    > Is it any harm to just leave that alone? The error doesn't seem to
    > hurt anything. If the drives get deleted manually, at least the logon
    > script will re-add them.


    If the users are getting prompted with a question, it may mean the drive
    still exists and they are being prompted to map it anyway, or there is an
    open IPC session with the machine, such as a current open folder. Maybe it
    is a drive they have manually mapped.

    Are you deleting ALL drives in your script? I had to in one case, set delete
    statements for drives from F: to Z: for this one client to make the script
    work. They had drives mapped all over the place.

    Forget the persisitent switch. That is like checking the box when manually
    mapping a drive to map it every time you logon.

    Ace




Similar Threads

  1. WAP login script in php
    By Steinbach in forum Software Development
    Replies: 3
    Last Post: 14-04-2009, 09:22 AM
  2. Where to place login script
    By Jame-Son in forum Active Directory
    Replies: 2
    Last Post: 25-11-2008, 08:44 PM
  3. to add username & password into my login.cmd - login script
    By sphilip in forum Windows Server Help
    Replies: 4
    Last Post: 05-03-2008, 11:04 PM
  4. Net time on login script
    By Marc S in forum Windows Server Help
    Replies: 6
    Last Post: 07-02-2008, 11:36 AM
  5. Startup Script or Login Script ??
    By WANNABE in forum Active Directory
    Replies: 5
    Last Post: 22-12-2006, 07:44 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,804,340.77407 seconds with 16 queries