Share via


Helpful WMIC

How to Get the Printers List for all Computers of a Domain

I have written a batch file. Push that through GPO. You will get the list in \serverip\share

echo off
cd \
c:
md printer
cd printer
WMIC PRINTER LIST STATUS >> %computername%.txt
copy *.txt \\serverip\\share

There is a thread in a migration forum so I thought it might help others.

http://social.technet.microsoft.com/Forums/en-US/winserverMigration/thread/4e53c661-a220-4bb3-883b-de2b16e3302b/#f0ad177d-4cc7-44ff-9b6b-a26af61cb93f

Checking RDP is enabled or not for multiple computers.

wmic /node:@servers.txt rdtoggle get allowtsconnections,servername

Getting IP address for Multiple Computers.

wmic /node:@servers.txt nicconfig get DNSHostName,IPAddress