Link to home
Start Free TrialLog in
Avatar of jskfan
jskfanFlag for Cyprus

asked on

Enable "Print Directly to Printer" using Windows Batch

Enable "Print Directly to Printer" using Windows Batch

The Powershell Code below will enable the option : "Print Directly to Printer" on the remote computer (w12)
I would like to have windows batch script that does the same thing instead of Powershell.

Thank you

$printer = Get-WmiObject -Class Win32_Printer -Filter "Name = 'Myprinter'" -ComputerName w12
$printer.Direct= $true
$printer.Put()

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jskfan

ASKER

Excellent oBdA   !!!
It worked