jskfan
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
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()
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It worked