ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved Mapping OneDrive Business to a drive letter

    IT Discussion
    powershell onedrive for business
    18
    75
    12.9k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • NerdyDadN
      NerdyDad
      last edited by

      We are currently utilizing O365 and Exchange Online. But we are currently not utilizing SharePoint Online or OneDrive for Business. Management is hoping to change this by migrating data off of our internal file server and onto OneDrive for Business.

      One of the caveats is that users currently use this mapped drive to move data in and out of our ERP system, which they RDP into in order to use it. The ERP uses 4 terminal servers which are brokered, so they could RDP into any of the 4 servers at any time with discretion of the broker server.

      The plan is to use a PS1 script attached to the AD profile login script in order to map the OneDrive to the user's profile so that they can utilize OneDrive in the same way.

      With all of that said, I can manually map their OneDrive to their computers and to all of their terminals, but you are talking about 130 users across their own computer and potentially 4 terminals for each user. Meaning about 650 connections that I would have to make just to get started, plus any new users that we gain along the way.

      Like the old saying goes, if you have to do it more than twice, then you should automate it, and automate it I want to. I want to create a PS script that I can attach to everybody's profiles and it attaches their respective mailboxes whenever and where ever they sign in. This shouldn't be too hard, but I am not understanding the error that it is throwing me.

      This is the script
      New-PSDrive -Name "E" -PSProvider "FileSystem" -Root "\\<tenant>-my.sharepoint.com@SSL\personal\<login>" -Persist

      This is the error
      0_1524152288344_Error.PNG

      Am I missing something?

      1 Reply Last reply Reply Quote 0
      • coliverC
        coliver
        last edited by

        This is the script I am using. It works fairly well.

        http://www.lieben.nu/liebensraum/onedrivemapper/

        NerdyDadN 1 Reply Last reply Reply Quote 1
        • NerdyDadN
          NerdyDad @coliver
          last edited by

          @coliver said in Mapping OneDrive Business to a drive letter:

          This is the script I am using. It works fairly well.

          http://www.lieben.nu/liebensraum/onedrivemapper/

          Oh my gosh, that script is HUGE. I'm not a software developer, but I'll see if I can read through it and put it to practice.

          Thanks,

          bbigfordB travisdh1T 2 Replies Last reply Reply Quote 1
          • bbigfordB
            bbigford @NerdyDad
            last edited by

            @nerdydad said in Mapping OneDrive Business to a drive letter:

            @coliver said in Mapping OneDrive Business to a drive letter:

            This is the script I am using. It works fairly well.

            http://www.lieben.nu/liebensraum/onedrivemapper/

            Oh my gosh, that script is HUGE. I'm not a software developer, but I'll see if I can read through it and put it to practice.

            Thanks,

            If you go heads down you might be able to do it by Christmas.

            1 Reply Last reply Reply Quote 2
            • travisdh1T
              travisdh1 @NerdyDad
              last edited by

              @nerdydad said in Mapping OneDrive Business to a drive letter:

              @coliver said in Mapping OneDrive Business to a drive letter:

              This is the script I am using. It works fairly well.

              http://www.lieben.nu/liebensraum/onedrivemapper/

              Oh my gosh, that script is HUGE. I'm not a software developer, but I'll see if I can read through it and put it to practice.

              Thanks,

              3365 lines of code to get a drive mapped on login, that's insanity. I've written entire programs in less than 1000 lines of code!

              1 Reply Last reply Reply Quote 0
              • momurdaM
                momurda
                last edited by

                What is the point of OneDrive if you cant mount it as a drive letter easily?
                Someone please explain. It seems absoultely horrible.

                scottalanmillerS 1 Reply Last reply Reply Quote 1
                • scottalanmillerS
                  scottalanmiller @momurda
                  last edited by

                  @momurda said in Mapping OneDrive Business to a drive letter:

                  What is the point of OneDrive if you cant mount it as a drive letter easily?
                  Someone please explain. It seems absoultely horrible.

                  Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                  NerdyDadN momurdaM bbigfordB 3 Replies Last reply Reply Quote 3
                  • NerdyDadN
                    NerdyDad @scottalanmiller
                    last edited by

                    @scottalanmiller said in Mapping OneDrive Business to a drive letter:

                    @momurda said in Mapping OneDrive Business to a drive letter:

                    What is the point of OneDrive if you cant mount it as a drive letter easily?
                    Someone please explain. It seems absoultely horrible.

                    Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                    I would be open to that option as long as it is just a shortcut pointing to OneDrive and not to a place on the server. Have any suggestions as to how to accomplish this?

                    1 Reply Last reply Reply Quote 0
                    • momurdaM
                      momurda @scottalanmiller
                      last edited by

                      @scottalanmiller said in Mapping OneDrive Business to a drive letter:

                      @momurda said in Mapping OneDrive Business to a drive letter:

                      What is the point of OneDrive if you cant mount it as a drive letter easily?
                      Someone please explain. It seems absoultely horrible.

                      Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                      You apparently cant do that either.
                      What is the point?

                      scottalanmillerS 1 Reply Last reply Reply Quote 0
                      • scottalanmillerS
                        scottalanmiller @momurda
                        last edited by

                        @momurda said in Mapping OneDrive Business to a drive letter:

                        @scottalanmiller said in Mapping OneDrive Business to a drive letter:

                        @momurda said in Mapping OneDrive Business to a drive letter:

                        What is the point of OneDrive if you cant mount it as a drive letter easily?
                        Someone please explain. It seems absoultely horrible.

                        Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                        You apparently cant do that either.
                        What is the point?

                        Well, now THAT would make it stupid. lol

                        1 Reply Last reply Reply Quote 0
                        • scottalanmillerS
                          scottalanmiller
                          last edited by

                          Just use NextCloud, keep it simple 😉

                          1 Reply Last reply Reply Quote 1
                          • black3dynamiteB
                            black3dynamite
                            last edited by

                            Ever consider using Junction points or Symbolic links?
                            https://helgeklein.com/blog/2015/02/manual-folder-redirection-with-symbolic-links/

                            1 Reply Last reply Reply Quote 0
                            • bbigfordB
                              bbigford @scottalanmiller
                              last edited by

                              @scottalanmiller said in Mapping OneDrive Business to a drive letter:

                              @momurda said in Mapping OneDrive Business to a drive letter:

                              What is the point of OneDrive if you cant mount it as a drive letter easily?
                              Someone please explain. It seems absoultely horrible.

                              Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                              Assuming that OneDrive syncing actually works, which generally it is pretty poor.

                              BRRABillB 1 Reply Last reply Reply Quote 1
                              • BRRABillB
                                BRRABill @bbigford
                                last edited by

                                @bbigford said in Mapping OneDrive Business to a drive letter:

                                @scottalanmiller said in Mapping OneDrive Business to a drive letter:

                                @momurda said in Mapping OneDrive Business to a drive letter:

                                What is the point of OneDrive if you cant mount it as a drive letter easily?
                                Someone please explain. It seems absoultely horrible.

                                Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                                Assuming that OneDrive syncing actually works, which generally it is pretty poor.

                                I find OneDrive itself (the consumer one) works great.

                                ODfB, though ... LOOKOUT!

                                bbigfordB 1 Reply Last reply Reply Quote 1
                                • bbigfordB
                                  bbigford @BRRABill
                                  last edited by

                                  @brrabill said in Mapping OneDrive Business to a drive letter:

                                  @bbigford said in Mapping OneDrive Business to a drive letter:

                                  @scottalanmiller said in Mapping OneDrive Business to a drive letter:

                                  @momurda said in Mapping OneDrive Business to a drive letter:

                                  What is the point of OneDrive if you cant mount it as a drive letter easily?
                                  Someone please explain. It seems absoultely horrible.

                                  Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                                  Assuming that OneDrive syncing actually works, which generally it is pretty poor.

                                  I find OneDrive itself (the consumer one) works great.

                                  ODfB, though ... LOOKOUT!

                                  Hah, yeah that's the one I was speaking toward. Assumed that is what is being brought up here since it's for a business. I could be wrong though.

                                  But yeah, ODfB... wow. I hear it's a little better but I've completely written it off as of late.

                                  NerdyDadN 1 Reply Last reply Reply Quote 0
                                  • NerdyDadN
                                    NerdyDad @bbigford
                                    last edited by

                                    @bbigford said in Mapping OneDrive Business to a drive letter:

                                    @brrabill said in Mapping OneDrive Business to a drive letter:

                                    @bbigford said in Mapping OneDrive Business to a drive letter:

                                    @scottalanmiller said in Mapping OneDrive Business to a drive letter:

                                    @momurda said in Mapping OneDrive Business to a drive letter:

                                    What is the point of OneDrive if you cant mount it as a drive letter easily?
                                    Someone please explain. It seems absoultely horrible.

                                    Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                                    Assuming that OneDrive syncing actually works, which generally it is pretty poor.

                                    I find OneDrive itself (the consumer one) works great.

                                    ODfB, though ... LOOKOUT!

                                    Hah, yeah that's the one I was speaking toward. Assumed that is what is being brought up here since it's for a business. I could be wrong though.

                                    But yeah, ODfB... wow. I hear it's a little better but I've completely written it off as of late.

                                    Besides Scott's problems, what issues are yall talking about? Honestly, we have had very little issues with Exchange Online and SharePoint Online over the course of 2-3 years.

                                    bbigfordB 2 Replies Last reply Reply Quote 0
                                    • bbigfordB
                                      bbigford @NerdyDad
                                      last edited by

                                      @nerdydad said in Mapping OneDrive Business to a drive letter:

                                      @bbigford said in Mapping OneDrive Business to a drive letter:

                                      @brrabill said in Mapping OneDrive Business to a drive letter:

                                      @bbigford said in Mapping OneDrive Business to a drive letter:

                                      @scottalanmiller said in Mapping OneDrive Business to a drive letter:

                                      @momurda said in Mapping OneDrive Business to a drive letter:

                                      What is the point of OneDrive if you cant mount it as a drive letter easily?
                                      Someone please explain. It seems absoultely horrible.

                                      Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                                      Assuming that OneDrive syncing actually works, which generally it is pretty poor.

                                      I find OneDrive itself (the consumer one) works great.

                                      ODfB, though ... LOOKOUT!

                                      Hah, yeah that's the one I was speaking toward. Assumed that is what is being brought up here since it's for a business. I could be wrong though.

                                      But yeah, ODfB... wow. I hear it's a little better but I've completely written it off as of late.

                                      Besides Scott's problems, what issues are yall talking about? Honestly, we have had very little issues with Exchange Online and SharePoint Online over the course of 2-3 years.

                                      Referring to OneDrive for Business syncing. Outside of SharePoint Online, speaking only to the ODfB syncing; it'll often just break for no apparent reason and stop syncing to workstations.

                                      NerdyDadN 1 Reply Last reply Reply Quote 0
                                      • bbigfordB
                                        bbigford @NerdyDad
                                        last edited by

                                        @nerdydad said in Mapping OneDrive Business to a drive letter:

                                        @bbigford said in Mapping OneDrive Business to a drive letter:

                                        @brrabill said in Mapping OneDrive Business to a drive letter:

                                        @bbigford said in Mapping OneDrive Business to a drive letter:

                                        @scottalanmiller said in Mapping OneDrive Business to a drive letter:

                                        @momurda said in Mapping OneDrive Business to a drive letter:

                                        What is the point of OneDrive if you cant mount it as a drive letter easily?
                                        Someone please explain. It seems absoultely horrible.

                                        Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                                        Assuming that OneDrive syncing actually works, which generally it is pretty poor.

                                        I find OneDrive itself (the consumer one) works great.

                                        ODfB, though ... LOOKOUT!

                                        Hah, yeah that's the one I was speaking toward. Assumed that is what is being brought up here since it's for a business. I could be wrong though.

                                        But yeah, ODfB... wow. I hear it's a little better but I've completely written it off as of late.

                                        Besides Scott's problems, what issues are yall talking about? Honestly, we have had very little issues with Exchange Online and SharePoint Online over the course of 2-3 years.

                                        As far as Exchange/SharePoint Online services, they have been fine for all of our clients.

                                        1 Reply Last reply Reply Quote 0
                                        • NerdyDadN
                                          NerdyDad @bbigford
                                          last edited by

                                          @bbigford said in Mapping OneDrive Business to a drive letter:

                                          @nerdydad said in Mapping OneDrive Business to a drive letter:

                                          @bbigford said in Mapping OneDrive Business to a drive letter:

                                          @brrabill said in Mapping OneDrive Business to a drive letter:

                                          @bbigford said in Mapping OneDrive Business to a drive letter:

                                          @scottalanmiller said in Mapping OneDrive Business to a drive letter:

                                          @momurda said in Mapping OneDrive Business to a drive letter:

                                          What is the point of OneDrive if you cant mount it as a drive letter easily?
                                          Someone please explain. It seems absoultely horrible.

                                          Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                                          Assuming that OneDrive syncing actually works, which generally it is pretty poor.

                                          I find OneDrive itself (the consumer one) works great.

                                          ODfB, though ... LOOKOUT!

                                          Hah, yeah that's the one I was speaking toward. Assumed that is what is being brought up here since it's for a business. I could be wrong though.

                                          But yeah, ODfB... wow. I hear it's a little better but I've completely written it off as of late.

                                          Besides Scott's problems, what issues are yall talking about? Honestly, we have had very little issues with Exchange Online and SharePoint Online over the course of 2-3 years.

                                          Referring to OneDrive for Business syncing. Outside of SharePoint Online, speaking only to the ODfB syncing; it'll often just break for no apparent reason and stop syncing to workstations.

                                          Not really concerned with syncing, but wanting to use it similarly to a networked drive on a hosted server instead of an on-prem server.

                                          bbigfordB scottalanmillerS 2 Replies Last reply Reply Quote 0
                                          • bbigfordB
                                            bbigford @NerdyDad
                                            last edited by

                                            @nerdydad said in Mapping OneDrive Business to a drive letter:

                                            @bbigford said in Mapping OneDrive Business to a drive letter:

                                            @nerdydad said in Mapping OneDrive Business to a drive letter:

                                            @bbigford said in Mapping OneDrive Business to a drive letter:

                                            @brrabill said in Mapping OneDrive Business to a drive letter:

                                            @bbigford said in Mapping OneDrive Business to a drive letter:

                                            @scottalanmiller said in Mapping OneDrive Business to a drive letter:

                                            @momurda said in Mapping OneDrive Business to a drive letter:

                                            What is the point of OneDrive if you cant mount it as a drive letter easily?
                                            Someone please explain. It seems absoultely horrible.

                                            Why woudl you want it as a drive letter? The drive letter is an old holdover that isn't very good. You can mount OneDrive as a folder which is better most of the time.

                                            Assuming that OneDrive syncing actually works, which generally it is pretty poor.

                                            I find OneDrive itself (the consumer one) works great.

                                            ODfB, though ... LOOKOUT!

                                            Hah, yeah that's the one I was speaking toward. Assumed that is what is being brought up here since it's for a business. I could be wrong though.

                                            But yeah, ODfB... wow. I hear it's a little better but I've completely written it off as of late.

                                            Besides Scott's problems, what issues are yall talking about? Honestly, we have had very little issues with Exchange Online and SharePoint Online over the course of 2-3 years.

                                            Referring to OneDrive for Business syncing. Outside of SharePoint Online, speaking only to the ODfB syncing; it'll often just break for no apparent reason and stop syncing to workstations.

                                            Not really concerned with syncing, but wanting to use it similarly to a networked drive on a hosted server instead of an on-prem server.

                                            Networked? Are you referring to WebDAV shares for a backend way to quickly access content, or do you actually mean OneDrive...?

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post