I have been trying to run Microsoft's GetNetworkStatistics script against remote computers to enable us to track what processes are using bandwidth along with other tools.
I am unable to run the script against remote Windows 7 clients. It works fine when run against a Windows Server 2012 r2 machine both remotely and locally. It also works fine when run on locally on Windows 7 machine.
I have run Enable-PSRemoting on the Windows 7 client and have allowed Windows Remote Management and Windows Management Instrumentation in Windows Firewall.
This is error I get when running against a remote Windows 7 machine
WARNING: Could not run Get-Process -computername win7. Verify permissions and connectivity. Defaulting to no
ShowProcessNames
'C:\netstat.txt' on win7 converted to '\\win7\C$\netstat.txt'. This path is not accessible from your system.
At C:\Users\user\Desktop\Get-NetworkStatistics.ps1:200 char:25
+ Throw "'$tempFile' on $computername converted to '$remot ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: ('C:\netstat.txt...om your system.:String) [], RuntimeException
+ FullyQualifiedErrorId : 'C:\netstat.txt' on win7 converted to '\\win7\C$\netstat.txt'. This path is not accessi
ble from your system.
I have tried running just get-process against the remote Windows 7 client which works locally but not remotely (It does work remotely and locally against Windows Server 2012 r2).
I have also run Invoke-Command {get-process} -computername $machinename -credential $domain\admin
. And after providing the correct credentials it still yeilds the same results.
Any help would be greatly appreciated.