Q. How can I map a network drive in PowerShell?
To use strictly within PowerShell, use the New-PSDrive cmdlet. The resulting drive won't be visible in Explorer. If you want to map a more traditional systemwide network drive, use good ol' NET USE, just like you would have done in Cmd.exe.
Don Jones
September 12, 2010
1 Min Read
Q. How can I map a network drive in PowerShell?
A. To use strictly within PowerShell, use the New-PSDrive cmdlet. The resulting drive won't be visible in Explorer. If you want to map a more traditional systemwide network drive, use good ol' NET USE, just like you would have done in Cmd.exe.
Do you have a Windows PowerShell question? Find more PowerShell FAQs, articles, and other resources at windowsitpro.com/go/DonJonesPowerShell.
About the Author
Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.
You May Also Like