SlowCoder74 Posted May 23, 2013 Share Posted May 23, 2013 Here's the scenario: I have a utility that we use here at work. It is executed with normal user permissions. The application is downloaded from one of our internal websites, and someone who is an administrator logs into it. When certain functionalities are run, it copies a 2nd file in the user's temp folder. Then it attempts to execute the EXE as the logged in administrative user. This works fine in XP, but in Windows 7, access to the user's temp folder by the admin user is unavailable. I would like to know if there is a way to run the EXE in the general user's temp folder, as both the admin user, and as "run as admin". No, using #RequireAdmin in the temp EXE does not work, as this is a file permissions issue and the EXE can't even be accessed for execution. I'm looking for something along the lines of RunAs, but with the option to also "run as administrator" on top. Link to comment Share on other sites More sharing options...
Neutro Posted May 23, 2013 Share Posted May 23, 2013 Hello! in Windows 7, access to the user's temp folder by the admin user is unavailable Did you check that the admin user has access to the user temp folder using Windows explorer? Because if he does not, it's not an autoit problem, it's because your admin user is not a local administrator of the workstation where your user temp folder is! Identify active network connections and change DNS server - Easily export Windows network settings Clean temporary files from Windows users profiles directories - List Active Directory Groups members Export content of an Outlook mailbox to a PST file - File patch manager - IRC chat connect example Thanks again for your help Water! Link to comment Share on other sites More sharing options...
jazzyjeff Posted May 24, 2013 Share Posted May 24, 2013 If the security group TrustedInstall is listed in this folder, the folder is using UAC. Remove this permission or add #RequireAdmin ( I know you said that's not the issue). Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now