Forum Discussion
MatthewMcDonald_ews
May 20, 2022Brass Contributor
New-SMBMapping not showing in Explorer until Explorer process is closed/restarted
I'm writing a script to remap drives to new paths (file server migration), and I had everything working. I'm using Remove-SMBMapping and New-SMBMapping. While it was working there was a strange ...
KieranCork
Nov 15, 2022Copper Contributor
I've been searching for this solution for a while, and -scope global makes no difference for me. I've seen others also swear this works and replies to them saying it doesn't.
I wonder what the difference between our setups is. ¯\_(ツ)_/¯
I wonder what the difference between our setups is. ¯\_(ツ)_/¯
davidblum_dbci
Nov 15, 2022Copper Contributor
KieranCork i've moved away from new-smbmapping and use new-psdrive instead... is this the on you used ?
- KieranCorkNov 15, 2022Copper Contributor
davidblum_dbciYeah, New-PSDrive is what I've been using. I'm pointing to a local directory (OneDrive), so perhaps that is the issue, as it doesn't let you use "-Persist" either.