Check if the option "print directly to printer" is enabled
I would like to have a script that reads computer names from a file and check if the default printer has the option "Print directly to printer" enabled.
the script below will enable the option "print directly to printer" . if t can be modified to send query to see if the option has been enabled that would be great.
FOR /f "delims=" %%G in (c:\Scripts\CompOnly.csv) DO wmic.exe /node:%%G /username:"Domain\User" /password:"TopSecret" printer where "Name='Myprinter'" set Direct=1