Use the below snippet code to check the shared folders on remote servers
#Check the shared folders on remote servers.
invoke-command -computername Server1,Server2 -ScriptBlock{ Get-SmbShare}
Regards,
Chaitanya
Use the below snippet code to check the shared folders on remote servers
#Check the shared folders on remote servers.
invoke-command -computername Server1,Server2 -ScriptBlock{ Get-SmbShare}
Regards,
Chaitanya