*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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 06/28/2007 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
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?
Answered 07/13/2007 by: dpolishsensation
Blue Belt

Please log in to comment
0
Do you write the domain on to the username (eg. username@domain or machine\username)?

Regards, Nick
Answered 07/13/2007 by: nheim
Tenth Degree Black Belt

Please log in to comment
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?
Answered 07/13/2007 by: schieb
Purple Belt

Please log in to comment
0
The domain admin is part of the local admin account and I'm as domain\user. Still not working...
Answered 07/17/2007 by: dpolishsensation
Blue Belt

Please log in to comment
Answer this question or Comment on this question for clarity