By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,066 Members | 1,625 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,066 IT Pros & Developers. It's quick & easy.

VBS: Defining Impersonate Level as admin

P: 9
Hi!
I am trying to use the following VBS (which I've found on BYTES) to start an aplication on remote PC.
The issue is that I need to start it as an ADMIN (I have the passwords & login).

How shall I modify the impersonationlevel to:
Login as ADMIN @ remote PC (other profile than my current one on the Controlling PC)??

Expand|Select|Wrap|Line Numbers
  1. A = GetObject("winmgmts:{impersonationlevel=impersonate}!\\192.168.0.1\root\cimv2:Win32_Process").Create("C:\Program Files (x86)\Microsoft Office\Office12\Winword.exe", Null, Null, iProcID)
  2.  

Thanks for help!
Jun 21 '12 #1
Share this Question
Share on Google+
3 Replies


Rabbit
Expert Mod 10K+
P: 12,383
Just add your network account as an admin on the remote PC.
Jun 21 '12 #2

P: 9
What I understood:

Control PC: I have to be logged as a user with Administrative Rights

Remotely Controlled PC: My user ( one with which I am logged with @ Control PC must be actually a domain admin, to be able to log as an admin @ Remotely Controlled PC) has to be an admin - and current user of the OS system might be just a regular one?

Please let me know if I understood you well :)
Jun 22 '12 #3

Rabbit
Expert Mod 10K+
P: 12,383
You don't have to be an admin on the control PC, you just have to be an admin on the remote PC.
Jun 22 '12 #4

Post your reply

Sign in to post your reply or Sign up for a free account.