473,473 Members | 4,208 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

VBS: Defining Impersonate Level as admin

9 New Member
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
3 2976
Rabbit
12,516 Recognized Expert Moderator MVP
Just add your network account as an admin on the remote PC.
Jun 21 '12 #2
kapik
9 New Member
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
12,516 Recognized Expert Moderator MVP
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

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

Similar topics

0
by: vhvoun | last post by:
Hi, I've encountered this problem as below: I tried to called Oracle Store Procedure from VBS and it failed. The VBS is scheduled using NT Task Scheduler in Win 2000 environment using...
4
by: Shawn Brock | last post by:
This is a wildly broad question, so apologies in advance. I developed a very traditional app architecture in Visual Studio 5-6. The basic structure looked like this: GUI >> MTS >> Database The...
1
by: moemeelaung | last post by:
Hi ASP/Windows experts out there I really need help with this Impersonate function. I have machine A and B. A hosts my ASP page which is to create a user account on the machine B. The...
12
by: Nils M. Lunde | last post by:
Hi! I've made a Web Service using C# that is using impersonation. The WS is working fine on WinXP and Win2003Server, but I'm having problem getting it to work on Win2000. The problem is that...
6
by: Sai Kit Tong | last post by:
How can I define a multiple level namespace for my class? I got compilation error using the "::" as separator: namespace MyCompany::GenericApp::CommComponent { public __gc class WordReader {...
0
by: Ron Wallegie | last post by:
I'm trying to impersonate a admin user when retrieving picklist items in Microsoft CRM. When a windows 2000 user is opening the code it is getting a popup asking the username, password, and...
0
by: AirYT | last post by:
Done a bunch of searching on this topic and i have come up with nothing. I have a .vbs script that i wish to execute by calling an asp page. i am working on a W2K server with IIS5.0 & SP4. ...
2
by: mrmwalter | last post by:
Hi, I have a simple form. On it is a Text Box that asks for "Username to be entered". It also has a Radio Button that asks if the user needs to be added to the local admin account. I have an...
8
by: Mai Le | last post by:
Hello, I used Microsoft Access to create a login form with Name Password Access Level Admin and User I would like to let Admin login and open MRB form and User login then open other form like...
4
by: =?Utf-8?B?QXZhRGV2?= | last post by:
ASP.Net 2. We are migrating to Windows 2008 64 bit Server with IIS 7 from Windows 2003 32 Bit with IIS 6. A few library classes we wrote uses impersonation in code like explained in this...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.