Power shell syntax: Get- Map drives
-
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 -
-
@gjacobse Are you recreating the same shares from one server to the next or just restoring "drives" to an endpoint?
-
Why not do it via Group Policy or other similar means?
-
@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
-
@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...
-
@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?