PowerShell Script: To Pull Remote File Share Server Report with ServerName, Fileshare Name, Path & Description

PowerShell Script: To Pull Remote File Share Server Report with ServerName, Fileshare Name, Path & Description


Script: <run the below command in the PowerShell cli, the output will be saved in the path that is showing in the PowerCli >

>> Get-WmiObject -Class Win32_Share -ComputerName <RemoteServerName1>,<RemoteServerName1>, ...<RemoteServerNameN> | Select __SERVER,Path,name,Description | export-csv -path .\output.csv


its a simple cmd, but powerful.