We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now

x

Execute file remotely as admin

mcmoser
mcmoser asked
on
Medium Priority
281 Views
Last Modified: 2010-04-07
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.
Comment
Watch Question

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

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?

Commented:
The remote machine is Win2k or XP?

Author

Commented:
The remote machine can be either XP or 2000. My machine is XP.
CERTIFIED EXPERT
Top Expert 2010
Commented:
Hi mcmoser,

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

Cheers!

Author

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
CERTIFIED EXPERT
Top Expert 2010

Commented:
No problem.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.