• Mapping Driving me CRAZY!

    Home » Forums » AskWoody support » Windows » Windows 10 » Questions: Win10 » Mapping Driving me CRAZY!

    Tags:

    Author
    Topic
    #2254382

    There is a quote attributed to Albert Einstein:
    “THE DEFINITION OF INSANITY IS DOING THE SAME THING OVER AND OVER AND GETTING THE SAME RESULT, BUT EXPECTING A DIFFERENT ONE.

    The reality of whether he said same or not has been challenged.  That doesn’t however change the applicability of the sentiment.

     
    I have two commands that run at startup, mapping “P” to my personal OneDrive, and “O” to my Microsoft Office OneDrive.

    The commands are (two single line commands)

    net use p: https://d.docs.live.net/0D0CE3E008CF73CA /user:username@emailaddress[.]com xxxxxxxxxxxxxx (x’s are password)

    net use o: https://5dsenpcokh88zk1wddbbimdubwm-my.sharepoint.com/personal/username_emailaddress_com/Documents

    I have tried it with

    net use /PERSISTENT:Yes

    And without it. Doesn’t seem to (consistently) alter the problem.

    Now, since I am issuing the same command every time on startup, why is it that it would work sometimes, but not always?

    Are my commands insane?  Repeated execution getting different results, but never in a time or way that is predictable or repairable.

    The mapping of “P” works — most times.  The mapping of “O”, as often as not, gives me the error “225”. But then not always. Sometimes it works just fine.

    Is there some “portion” of memory that retains commands so that conflicts like this can arise?  If so, is there any way to totally clear memory at startup?

    It’s a bother having to spend a fair amount of time fixing this issue at inopportune times, and for no traceable reason or cause.

     
    EDITED – please don’t post personal information (sure we’ve done this before, for you, too)

    Chuck Billow

    • This topic was modified 3 years, 5 months ago by CWBillow.
    • This topic was modified 3 years, 5 months ago by Kirsty.
    • This topic was modified 3 years, 5 months ago by Kirsty.
    • This topic was modified 3 years, 5 months ago by Kirsty.
    Viewing 3 reply threads
    Author
    Replies
    • #2254613

      I assume this is an extension to your OneDrive mapping issue?

      If you use the “persistent” switch you don’t need to repeat the command every time you logon. If this is still not working it may be a different issue.

      Start with a command to view your existing mappings.
      1. Open a Command Prompt.
      2. Type: net use
      What mappings are shown?
      Do you get “new connections will be remembered”?

      Next time you logon, before mapping anything, “net use” to show what currently exists.

      cheers, Paul

    • #2254660

      To save you doing all that typing each time, use

      /p:y

      rather than

      /persistent:yes

      !  You could also insert the following

      net use p: /d
      
      net use o: /d

      to disconnect any previous mappings, before specifying your two commands which are causing problems.

      BATcher

      Plethora means a lot to me.

      • This reply was modified 3 years, 5 months ago by BATcher.
    • #2254685

      Chuck,

      Maybe this article will help. 😎

      May the Forces of good computing be with you!

      RG

      PowerShell & VBA Rule!
      Computer Specs

    • #2254773

      It appears that your script might be running before your workstations network interface has finished getting connected to the internet . . .

      A small delay may help.

      ~ Group "Weekend" ~

    Viewing 3 reply threads
    Reply To: Mapping Driving me CRAZY!

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: