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

PowerTip: Close Open SMB File Shares with PowerShell

$
0
0

Summary: Learn how to close open SMB file shares in Windows 8.1 with Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell to close a number of SMB file shares that I have open?

Hey, Scripting Guy! Answer Open the Windows PowerShell console with admin rights, and
          use the Close-SMBOpenFile function:

Close-SmbOpenFile

To avoid prompting, use the –Force parameter:

Close-SmbOpenFile -Force


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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