/build/static/layout/Breadcrumb_cap_w.png

Anyone install printers with PRNMNGR.vbs?

*I have also posted this on the Altiris forums but thought I'd post here as well*

I am able to push this through Altiris (DS) but am only able to remove from accounts logged in that have admin rights. When I push to a machine that does not have admin rights, not happens (though the DS Console shows that it executed successfully). Here is what my batch file looks like:

REM Deletes All Local Printers on Target Machine

cscript "C:\Windows\System32\prnmngr.vbs" -x

I know there is a -u / -w command to specify a username and password but when I use it (tried both a local admin account and an account with admin priviliges) I receive the following error:

"Unable to enumarate printers Error 0x8004164 User credentials cannot be used for local connections."

I guess my question is what account am i supposed to use to run this on a remote machine?

0 Comments   [ + ] Show comments

Answers (5)

Posted by: jmcfadyen 16 years ago
5th Degree Black Belt
0
are you deploying with a service account with "domain admin" or local system access.

is the script on the machine or the network.

If you are using local system you will need to deploy the script to the machine prior to execution and or grant the machine accounts access to the script on your network resource.
Posted by: dpolishsensation 16 years ago
Blue Belt
0
I tried pushing with a domain account and still no luck. The script does not need to be copied locally as it is located in C:\Windows\System32 folder. Any other ideas why this is not working?
Posted by: nheim 16 years ago
10th Degree Black Belt
0
Do you write the domain on to the username (eg. username@domain or machine\username)?

Regards, Nick
Posted by: schieb 16 years ago
Purple Belt
0
Did the domain admin get removed from the local administrators group? Under advanced you are running it as DOMAIN\SomeAdmin? Is there a typo in the account name?
Posted by: dpolishsensation 16 years ago
Blue Belt
0
The domain admin is part of the local admin account and I'm as domain\user. Still not working...
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ