msd1994 Posted March 29, 2015 Posted March 29, 2015 (edited) Hi all, I was wondering why even with a shortcut in the startup folder %APPDATA%MicrosoftWindowsStart MenuProgramsStartup of a few scripts I'd like to start with windows that I compiled to EXE's, they don't start with admin privilleges. The scripts aren't kept on the same drive as the boot drive, though both are internal drives, and other programs on the same drive as my compiled scripts start up with windows using the same method. Is there any alternative method I could try or any way to fix this issue? I do need them to run with admin privilleges. Thank you! Edited March 29, 2015 by msd1994
JohnOne Posted March 29, 2015 Posted March 29, 2015 (edited) Do your "other programs" start with admin? Does you account have admin rights? Edited March 29, 2015 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
msd1994 Posted March 29, 2015 Author Posted March 29, 2015 Do your "other programs" start with admin? Does you account have admin rights? yes they do and it does have admin rights. try changing startup things in msconfig.exe I have checked msconfig and they are both enabled there as well.
SadBunny Posted March 29, 2015 Posted March 29, 2015 What version of Windows? Roses are FF0000, violets are 0000FF... All my base are belong to you.
JohnOne Posted March 29, 2015 Posted March 29, 2015 Also, as a start to debugging, in one of your scripts, add Sleep(1000 * 60) at top to wait 1 minute before it would normally start. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
msd1994 Posted March 29, 2015 Author Posted March 29, 2015 What version of Windows? windows 7 x64 Also, as a start to debugging, in one of your scripts, add Sleep(1000 * 60) at top to wait 1 minute before it would normally start. Okay I'll try this, but why would it need to wait a minute to start before trying to open just because of admin rights? If I make it so it doesn't need admin rights, it starts up just fine without any delay to when it starts.
JohnOne Posted March 29, 2015 Posted March 29, 2015 windows 7 x64 Okay I'll try this, but why would it need to wait a minute to start before trying to open just because of admin rights? If I make it so it doesn't need admin rights, it starts up just fine without any delay to when it starts. I don't know, but debugging can be a process of elimination sometimes. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
msd1994 Posted April 15, 2015 Author Posted April 15, 2015 Still haven't found a solution for this, does anyone have an idea to what else could be preventing them from auto-starting?
Chimaera Posted April 16, 2015 Posted April 16, 2015 Is your antivirus interfering with them and blocking them? If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices()
msd1994 Posted August 13, 2015 Author Posted August 13, 2015 Found a workaround. Just added entries to task scheduler to start each script with highest permissions and run automatically when I log into my user. Still not sure why startup folder or registry entries weren't working though.
AdamUL Posted August 13, 2015 Posted August 13, 2015 Are you using and of the following at the top of your script before you compile it?#AutoIt3Wrapper_Res_requestedExecutionLevel=requireAdministratoror#pragma compile(ExecLevel, requireAdministrator)Windows will not allow an executable to run at startup that has a manifest that request elevation.Try using the following at the top of the script.#RequireAdmin #pragma compile(ExecLevel, asInvoker)or #RequireAdmin #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvokerThe #RequireAdmin directive causes the script to re-execute, requesting the Admin privilege. Adam
kaisies Posted August 13, 2015 Posted August 13, 2015 Interesting to know Adam, I was scratching my head on this one because I use #requireadmin and it works just fine for me. Wonder if he's using something else
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