Jump to content

mlongoh

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by mlongoh

  1. I'm doing the same thing you're doing - setting per-machine printers in the startup script and setting the default printer in the logon script. I've got it working. What script are you running to set the default printer? I used the prnmngr.vbs script that is stored in c:\windows\system32 as a reference to create this code to set the per-machine printer as the default printer and it works fine in a logon script. The DefautlPrinter variable is what you would set to the name of your per-machine printer. DefaultPrinter="\\server\printshare" const kNameSpace = "root\cimv2" set oLocator=CreateObject("WbemScripting.SWbemLocator") set oService=oLocator.ConnectServer("", kNameSpace) set oPrinter=oService.Get("Win32_Printer.DeviceID='" & DefaultPrinter & "'") uResult=oPrinter.SetDefaultPrinter
×
×
  • Create New...