Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Get-Printer - get printer names from a print server, display as drop down and install when slected

$
0
0

hi, i am trying to make a scample script to get printers from a print server and show as drop down list.

and once selected, install the printer locally using x64 or x32 bit drivers.

Please guide.

even local host does not display anything

Get-WmiObject-Class Win32_Printer -localhost

ERROR: Get-WmiObject : A parameter cannot be found that matches parameter name 'localhost'.

MainForm.pff (15): ERROR: At Line: 15 char: 37

ERROR: + Get-WmiObject -Class Win32_Printer -localhost

ERROR: + ~~~~~~~~~~

ERROR: + CategoryInfo : InvalidArgument: (:) [Get-WmiObject], ParameterBindingException

ERROR: + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.GetWmiObjectCommand

 


Viewing all articles
Browse latest Browse all 8583

Trending Articles