I’m working on a drive mapping script. I’m trying to use Get-PSDrive to check if the drive has already been mapped to the correct network share.
If I just run the command in the console, the root shows “ServerNameShareName”, but if I write it to a variable and use $share.root, it comes up as “S:”. This makes no sense to me at all. Help!
submitted by /u/krayziepunk13
[link] [comments]
The post Trouble with Get-PSDrive appeared first on How to Code .NET.