Sign in to follow this  
Followers 0
Crash

Get full rights without calling UAC

3 posts in this topic

#1 ·  Posted (edited)

I am creating a program and make itin such a way so that every user can run the program will full admin rights without having to call UAC and enter the password.

I have think of letting the admin type his/her username and password and my program will save it inside the computer.

Whenever my program needs to execute another exe (my program got many exe files), it will use RunAs() function and include the username and password. But this is all too risky.

What I need to know is that:

-When I attempt to delete a file in my HomeDrive (c:) using AutoIt, the file is sometimes deleted and sometimes not. (Mostly not)

FileDelete("C:\lalala.txt")

Is there a way to delete the file without elevating UAC? Antiviruses program can even delete a file (virus) from system directories without permission granted.

P.S. If you say that AV programs are able to delete viruses because viruses are not protection by the system; then why is my innocent (and useless) TXT file protected?

P.P.S. If there a way to edit registry keys without UAC elevating too?

Many thanks if solutions or ideas are provided.

Edited by Crash

JPGRARMouse Lock | My website | Thanks so much for your help! ❤️

Share this post


Link to post
Share on other sites



I am creating a program and make itin such a way so that every user can run the program will full admin rights without having to call UAC and enter the password.

I have think of letting the admin type his/her username and password and my program will save it inside the computer.

Whenever my program needs to execute another exe (my program got many exe files), it will use RunAs() function and include the username and password. But this is all too risky.

What I need to know is that:

-When I attempt to delete a file in my HomeDrive (c:) using AutoIt, the file is sometimes deleted and sometimes not. (Mostly not)

FileDelete("C:\lalala.txt")

Is there a way to delete the file without elevating UAC? Antiviruses program can even delete a file (virus) from system directories without permission granted.

If UAC is enabled then no. AV is run with all permissions.

P.S. If you say that AV programs are able to delete viruses because viruses are not protection by the system; then why is my innocent (and useless) TXT file protected?

Location of that file is important. Location of your executable can be important too.

AVs run with full privileges (you/administrator gave them that right).

Run your script that way and you will be able to do whatever you want to.

P.P.S. If there a way to edit registry keys without UAC elevating too?

That would depend what registry key and what system. On pre-Vista systems you can do whatever you want with registry. For others all depends on your permissions. For example HKLM can be read but not changed without running in elevated mode.

Many thanks if solutions or ideas are provided.

Sure ;)

♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

By default normal users only have rights to their profile directory and all ones under that so you would need admin rights for root. The registry I believe you can view it without admin rights but I don't think modify it. Now is this a computer on the domain which from the looks it seems like it is. So assuming it is why do you need a program that a user is using to modify files on the home drive or to mess with the registery? If its on a domain you could setup a GPO to modify the registry to how you need it or have a script ran at system startup that could change stuff on the hard drive for you.

Edited by Onichan

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  
Followers 0