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?
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)
Please log in to answer
Posted by:
jmcfadyen
16 years ago
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.
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
Posted by:
nheim
16 years ago
Posted by:
schieb
16 years ago
Posted by:
dpolishsensation
16 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.