![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | vbscript to cahnge default printer setting from color to b&w I am using this script: strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colInstalledPrinters = objWMIService.ExecQuery _ ("SELECT * FROM Win32_PrinterConfiguration") For Each objPrinter in colInstalledPrinters objPrinter.color = 1 Next But I do not see a change. Can you help me |
My System Specs![]() |
| | #2 (permalink) |
| | Re: vbscript to cahnge default printer setting from color to b&w Color property is read-only property and you can't assign a value to it. it indicates whether your printer supports color printing. refer to the page for details of Win32_PrinterConfiguration class: http://msdn.microsoft.com/en-us/libr...64(VS.85).aspx I too don't know how to change the color settings, however, just wanted to tell you about color property. uc "freddy" <freddy@xxxxxx> wrote in message news:C95F99BE-16AB-4819-AC68-BD9398D9DA9D@xxxxxx Quote: > I am using this script: > strComputer = "." > > Set objWMIService = GetObject("winmgmts:" _ > & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") > > Set colInstalledPrinters = objWMIService.ExecQuery _ > ("SELECT * FROM Win32_PrinterConfiguration") > > For Each objPrinter in colInstalledPrinters > objPrinter.color = 1 > Next > > But I do not see a change. Can you help me > |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Setting a default printer for the DEFAULT USER | Vista print fax & scan | |||
| Vista machine not holding default printer setting. | Vista print fax & scan | |||
| Problem setting default printer in Vista | Vista General | |||
| Setting default printer | Vista installation & setup | |||
| Setting Default Printer to Stay | Vista hardware & devices | |||