I'm working with XP clients over a Windows 2003 domain, and I would like each client to have all their printers wiped then certain printers I choose to be installed upon logon.
So far my script consists of this to remove the printers:
cscript c:\windows\system32\prnmngr.vbs -x
and this to add the printers:
cscripts c:\windows\system32\prnmngr.vbs -ac -p "\\Calvin\Primary Lab Laser"
While according to the XP documentation on Microsoft's site this should work, I get the following error:
Unable to enumarate printers Error 0x80041001 Generic failure
I'm not really sure what the error means, I even looked it up on Google and nothing pertained to prnmngr.vbs. I also tried adding the -u -w switches to the remove printers string with the correct administration account information, but that didn't seem to have any effect.
Any ideas? I'm new to scripting across the network and hoping I can save myself some hassle with creating printers available to all users and wiping anything that shouldn't be in there.
So far my script consists of this to remove the printers:
cscript c:\windows\system32\prnmngr.vbs -x
and this to add the printers:
cscripts c:\windows\system32\prnmngr.vbs -ac -p "\\Calvin\Primary Lab Laser"
While according to the XP documentation on Microsoft's site this should work, I get the following error:
Unable to enumarate printers Error 0x80041001 Generic failure
I'm not really sure what the error means, I even looked it up on Google and nothing pertained to prnmngr.vbs. I also tried adding the -u -w switches to the remove printers string with the correct administration account information, but that didn't seem to have any effect.
Any ideas? I'm new to scripting across the network and hoping I can save myself some hassle with creating printers available to all users and wiping anything that shouldn't be in there.