Execute file remotely as admin

Hello,

I'd like to be able to execute a file (batch file) on a remote machine on our network using a username / password. Can this be done? Note that the batch file is to be run on the remote machine.

The systems it will be used on are win2k & XP.

Thanks.
mcmoserAsked:
Who is Participating?
 
David LeeCommented:
Hi mcmoser,

You could use Sysinternals PSEXEC (http://www.sysinternals.com/Utilities/PsExec.html) and call it from your program.

Cheers!
0
 
vinnyd79Commented:
0
 
mcmoserAuthor Commented:
With this the process / services works fine locally, but remotely i get "object required: 0x1a". I also get the same message when running commands locally or remotely.

I do have a reference to wmi 1.2

Any ideas?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
vinnyd79Commented:
The remote machine is Win2k or XP?
0
 
mcmoserAuthor Commented:
The remote machine can be either XP or 2000. My machine is XP.
0
 
mcmoserAuthor Commented:
Hi BlueDevilFan,

That option does work, but i'm gonna see if i can't get it going without it. If I can't, i'll accept your answer.

Thanks
0
 
David LeeCommented:
No problem.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.