Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Remove a File Share

$
0
0

Summary: Use Windows PowerShell to remove SMB file shares.

Hey, Scripting Guy! Question How can I use Windows PowerShell to delete an SMB file share that is no longer used on
          my computer running Windows 8?

Hey, Scripting Guy! Answer Open the Windows PowerShell console with Admin rights, locate the file share, and pipe it to the 
          Remove-SMBShare function (to avoid confirmation messages, set the confirmation level to $false):

Get-SmbShare -Name fso | Remove-SmbShare -Confirm:$false


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>