powershell - Configure printer from a remote pc using vbs and psexec -


i have vbs file configuring network printer. stored in remote pc..i need run vbs file pc. have used psexec remotely execute file. ran psexec using admin account that's common both machines. printer not getting configured though there no errors. same script works when directly executed in remote pc. tried wmi & power shell coding.. both r behaving i.e. configuring printer when running script locally.. vbs file makes use of "addwindowsprinterconnection" configure printer. reason printer not getting configured?

if want run script remote share on remote computer, need run psexec explicit credentials:

psexec \\hostb -u username -p \\hosta\share\script.vbs 

see this thread in sysinternals forum.

in powershell should able around issue via credssp.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -