Hello,
I try to install remotely a printer driver on a Server2003.
My code is:
if WmiConnect(strServer, kNameSpace, strUser, strPassword,
oService) then
set oDriver = oService.Get("Win32_PrinterDriver")
oDriver.Name = "hp LaserJet 1320 PCL 6"
oDriver.SupportedPlatform = "Windows NT x86"
oDriver.Version = "3"
oDriver.FilePath = "C:\Drivers\HP\LaserJet
1320n"
oDriver.InfName = "C:\Drivers\HP\LaserJet 1320n
\hpc1320c.inf"
uResult = oDriver.AddPrinterDriver(oDriver)
end if
The WmiConnect work fine because remote install of TcpPort work fine
with then same syntax.
All locations (c:\Drivers\HP....) are on the remote server.
I have try to declare paths also like that:
oDriver.FilePath = "C:\\Drivers\\HP\\LaserJet
1320n"
oDriver.InfName = "C:\\Drivers\\HP\\LaserJet
1320n\\hpc1320c.inf"
This code fail. What's wrong?
Thank you very much for your help.
Best regards
Jo