Jump to content
Sign in to follow this  
ddr4lyfe

Running a Program as an Administrator

Recommended Posts

ddr4lyfe

Is there a way I can create a script that runs a program as an administrator even though I don't know the administrator's password? Thanks in advance.

Share this post


Link to post
Share on other sites
ChrisL
Uten

That would really make it simple for the hackers don't you think?..:shocked:

On the other hand you can run your script by a service tool like xyntservice.

Share this post


Link to post
Share on other sites
PsaltyDS

Is there a way I can create a script that runs a program as an administrator even though I don't know the administrator's password? Thanks in advance.

Remove all firewalls and connect your Windows box directly to the internet.

You'll get a working demo within minutes...

:shocked:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
ddr4lyfe

Hmm...you all were quick in responding... Thanks. So there's no way in AutoIt to even possibly emulate administrator privileges to run a program?

Share this post


Link to post
Share on other sites
Jos

Hmm...you all were quick in responding... Thanks. So there's no way in AutoIt to even possibly emulate administrator privileges to run a program?

What about stopping to ask stupid questions?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
GEOSoft

Hmmm

I wonder why Windows would even bother to set passwords for administrator accounts.

They certainly are a nuisance to someone who may have nefarious intent.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites
DarthVega

Hmm...you all were quick in responding... Thanks. So there's no way in AutoIt to even possibly emulate administrator privileges to run a program?

If IsAdmin() Then
     MsgBox(0, "", "Success")
Else
     MsgBox(0, "", "Sorry")
EndIf
Edited by DarthVega

Share this post


Link to post
Share on other sites
Uten

Hmm...you all were quick in responding... Thanks. So there's no way in AutoIt to even possibly emulate administrator privileges to run a program?

RunAsSet but you will obviously need the password.

Share this post


Link to post
Share on other sites
Bert

Is there a way I can create a script that runs a program as an administrator even though I don't know the administrator's password? Thanks in advance.

why, and what do you plan to do? let me guess...you want to do something along the following..
  • you want to run something on the school PC, but you can't
  • you want to pull a prank on a friend's PC, but you can't
  • you want to do soemthing to a work PC, but you can't
  • you want to get something from a PC you are not supposed to be using
  • you want to run something the admin doesn't want you to run
it is usually one of these, so we get upset if it is. If I'm wrong, I have no problem being humble. Could you explain yourself? It would be very helpful.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×