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

    Power shell syntax: Get- Map drives

    Scheduled Pinned Locked Moved IT Discussion
    6 Posts 3 Posters 145 Views
    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.
    • gjacobseG
      gjacobse
      last edited by

      I expect this is quite possible, but not found the syntax as of yet.

      I currently grab the network share using

      net use > mapped.txt
      

      I know it can also be done with

      Get-smbshar
      

      I would think that there is way to get them and restore them once in a new computer .

      As of yet I have not found the correct syntax -

      GreyG 1 Reply Last reply Reply Quote 0
      • GreyG
        Grey @gjacobse
        last edited by

        @gjacobse Are you recreating the same shares from one server to the next or just restoring "drives" to an endpoint?

        gjacobseG 1 Reply Last reply Reply Quote 0
        • ObsolesceO
          Obsolesce
          last edited by

          Why not do it via Group Policy or other similar means?

          gjacobseG 1 Reply Last reply Reply Quote 0
          • gjacobseG
            gjacobse @Grey
            last edited by

            @Grey said in Power shell syntax: Get- Map drives:

            @gjacobse Are you recreating the same shares from one server to the next or just restoring "drives" to an endpoint?

            This is at the user level - the idea is that when they move / replace a computer, I can get the current shares for the user, and the re map

            1 Reply Last reply Reply Quote 0
            • gjacobseG
              gjacobse @Obsolesce
              last edited by

              @Obsolesce said in Power shell syntax: Get- Map drives:

              Why not do it via Group Policy or other similar means?

              It's the state - I don't have access to GP... or much really - and the few scripts I have made, I pulled out since they 'refuse' to use anything with logic...

              ObsolesceO 1 Reply Last reply Reply Quote 0
              • ObsolesceO
                Obsolesce @gjacobse
                last edited by

                @gjacobse said in Power shell syntax: Get- Map drives:

                @Obsolesce said in Power shell syntax: Get- Map drives:

                Why not do it via Group Policy or other similar means?

                It's the state - I don't have access to GP... or much really - and the few scripts I have made, I pulled out since they 'refuse' to use anything with logic...

                Then why bother with it?

                1 Reply Last reply Reply Quote 3
                • 1 / 1
                • First post
                  Last post