I am currently trying to get a patch list of a remote server and export the results on to my c:\temp\ folder or on to a network path. I currently have the below code with PSEXEC.
Psexec \\servername wmic qfe list brief > \\Pathtofolder\General\Test\patches.txt
or if I could get this to export locally on my system
Psexec \\servername wmic qfe list brief > c:\temp\patches.txt
When I run this with the UNC patch I get the below errors:
Couldn't access servername: The handle is invalid. Connecting to servername...
But if I run the command without putting any export path it works absoloutely fine and returns the correct information to my command window.
Psexec \\servername wmic qfe list brief
Not sure what else I can do.
Also I can not use the powershell get-hotfixid command I need to use this or similiar.
Thanks in advance,
SG