StrokesPlus.net Forum
»
General Discussion
»
General Discussion
»
How to Run application with admin elevated priviledges?
Rank: Advanced Member
Groups: Approved
Joined: 2/16/2021(UTC) Posts: 39 Location: Fier Thanks: 25 times Was thanked: 1 time(s) in 1 post(s)
|
How do Run an application with admin elevated privileges? I try at verb with "runas Administrator" but not work. Anu help?
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,360 Location: Tampa, FL Thanks: 28 times Was thanked: 421 time(s) in 357 post(s)
|
The verb should just be runas, seems like Windows assumes that means to run as admin.
|
1 user thanked Rob for this useful post.
|
|
|
Rank: Advanced Member
Groups: Approved
Joined: 2/16/2021(UTC) Posts: 39 Location: Fier Thanks: 25 times Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: Rob The verb should just be runas, seems like Windows assumes that means to run as admin. but it's not running as Administrator, s there any other option?
|
|
|
|
Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,360 Location: Tampa, FL Thanks: 28 times Was thanked: 421 time(s) in 357 post(s)
|
You might need to do something like this: Code:sp.RunProgram('runas', '/user:DOMAIN\\USERNAME "C:\\Windows\\Notepad.exe"', 'open', 'normal', true, false, false);
sp.Sleep(1000);
sp.SendString("mypassword");
sp.SendVKey(vk.RETURN);
|
|
|
|
StrokesPlus.net Forum
»
General Discussion
»
General Discussion
»
How to Run application with admin elevated priviledges?
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close