I need to get a list of shared drives on a remote computer that has Windows 7 from a host PC with Windows 10 in PowerShell. I already tried the following in PowerShell ISE as both an admin and a standard user.
Get-WmiObject Win32_MappedLogicalDisk -computer <computername> | select name, providername
This method didn't work.