objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer &
"\root\cimv2")
objDriver = objWMIService.Get("Win32_PrinterDriver")
objWMIService.Security_.Privileges.AddAsString("SeLoadDriverPrivilege", True)
objDriver.Name = "Lexmark E250dn"
objDriver.SupportedPlatform = "Windows NT x86"
objDriver.Version = "3"
objDriver.FilePath =
"C:\\lexmark\\Drivers\\Drivers\\Print\\Win_2KXP\\"
objDriver.Infname =
"C:\\lexmark\\Drivers\\Drivers\\Print\\Win_2KXP\\LMABJ740.inf"
Dim intResult = objDriver.AddPrinterDriver(objDriver)
I assume you've copied the driver files to the remote machine when using
prndrvr.vbs. The install will fail if the driver files are not local to the
remote machine.
--
Alan Morris
Windows Printing Team
Search the Microsoft Knowledge Base here:
http://support.microsoft.com/default.aspx?scid=fh;[ln];kbhowto
This posting is provided "AS IS" with no warranties, and confers no rights.
"MadKovalchuk17" <MadKova...@discussions.microsoft.com> wrote in message
news:EFD3D140-20DF-4BF3...@microsoft.com...