PowerTip: Use PowerShell to Remove Mapping to Share

Doctor Scripto

Dr Scripto

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

Doctor Scripto
Dr Scripto

Scripter, PowerShell, vbScript, BAT, CMD

Follow Dr Scripto   

No Comments.