WMIC Remoting
Check if a Patch is installed against a list of servers
[sourcecode]psexec.exe @list.txt -s "wmic" qfe list full | findstr "KB2621440"[/sourcecode]
WMIC Commands
[sourcecode]
wmic product list brief
wmic service list brief
wmic process list brief
wmic startup list brief
[/sourcecode]
Run WMIC on Remote Computers
[source]
@echo off
REM wmic service where StartMode="Auto" list brief
REM wmic /node:"@serverlist.txt" /output:service.html where StartMode="Auto" list brief
REM wmic /output:%hostname%.txt service where StartMode="Auto" list brief
:start
for /f %%I in (serverlist.txt) do call :run %%I
goto :end
:run
echo %1
rem wmic /node:%1 service where StartMode="Auto" list brief > \\%\%1_before.txt
wmic /node:%1 /output:\\%\before\%1_before.html service where StartMode="Auto" list brief /format:htable
goto :eof
[/source]