troubleshooting Question

Check if the option "print directly to printer" is enabled

Avatar of jskfan
jskfanFlag for Cyprus asked on
Windows Batch
5 Comments1 Solution81 ViewsLast Modified:
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.

Thank you


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

Timeout 5
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros