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