PSexec error trying to scan subnet

96 views Asked by At

Tried tons of different methods I've seen searching but keep getting the error, "The handle is invalid".

Tried running off a .txt and a .csv. Long story short we're just trying to run ipconfig /all on all of our servers which are on a set vlan and export it out to use. Any help is appreciated!

for ($a = 1; $a -le 255; $a++){
psexec \\10.9.100.$a ipconfig /all
}>C:\Scripts\serverinfo.csv
0

There are 0 answers