May 2nd, 2014

PowerTip: Use PowerShell to Remove Mapping to Share

Doctor Scripto
Scripter

Summary: Use Windows PowerShell to remove mapping to a SMB file share.

Hey, Scripting Guy! Question How can I use Windows PowerShell in Windows 8.1 to remove mapping to an SMB file share?

Hey, Scripting Guy! Answer Use the Remove-SMBMapping cmdlet, specify either the local path or the remote path,
          and use the –Force parameter to suppress prompts:

Remove-SmbMapping -LocalPath j: -Force

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.