You'll basically include the syntax from the first link as the ScriptBlock parameter in the Invoke-Command cmdlet from the second link. I'm sure someone out here has real-world experience with it, too.
by Nobody at 2013-04-05 09:32:12
You can use Get-WMIObject to get the printer object from the remote computer, then use the delete method of the object to delete the printer.
$a = get-wmiobject -computername computer -query "SELECT * FROM win32_printer WHERE name = 'PrinterName'" $a.delete()
by fjumayao at 2013-04-05 10:45:11
Worked like a charm – awesome!
Thank you for the prompt reply and the assistance.
The topic ‘Delete remote local printer Windows 7’ is closed to new replies.