April 16th, 2014

PowerTip: Use PowerShell to Audit Shares

Doctor Scripto
Scripter

Summary: Use Windows PowerShell in Windows 8.1 to audit shares on a workstation.

Hey, Scripting Guy! Question Is there an easy way to use Windows PowerShell to identify shares on a workstation and who has access to them?

Hey, Scripting Guy! Answer Use a combination of the Get-SMBShare and Get-SMBShareAccess cmdlets:

Get-SMBShare | Get-SMBShareAccess

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.

Feedback