commondollars.wordpress.com
Using PowerShell to get a list of shares from a server
This one is relatively easy on first glance. $shares = Get-WmiObject -ComputerName SERVERNAME -class win32_Share The win32_Share class gets the shares as listed by WMI. From here normally you can g…