Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Sunday, May 21, 2017 8:57 AM
Hi,
Let me start with my setup. In File explorer I have a library called "Start up" . This contains 2 paths:
Path 1
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
and Path 2
C:\Users\AJ ANNING\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
I know the library is setup correct, I've used it for a long time with other .bat files.
(Note: all screen shots are .jpg files attached and/or at
http://www.aanning.com/ajissues/Windows_errors/bat_file_startup/
ss1.jpg is the shortcut in the library; ss2.jpg is the literaly .bat file
)
currently Path 1 is empty Path 2 contains a .bat shortcut called AOLSTART.BAT
Which points to ""E:\Google Drive\APPS\BatchJobs\AOLSTART.BAT""
As seen in ss1.jpg, this short cut is set to "run as administrator"
The file AOLSTART.BAT is at E:\Google Drive\APPS\BatchJobs\ containing the below:
cd /
cd "C:\Users\AJ ANNING\AppData\Local\AOLDesktop"
start Update.exe --processStart AolDesktop.exe
timeout 2
start outlook
The issue is when I reboot, nothing happens, the shortcut AOLSTART.BAT does not work.
If I use file explorer and navigate to my startup library and double click AOLSTART.BAT it works fine.
(Initnally I had to right click, run as adminstrator, else it did nothing, so in
the properties I set it to run as admin...as seen in ss1.jpg).
I have tried to go directly to AOLSTART.BAT in E:\Google Drive\APPS\BatchJobs\ to set it up
to run as administrator...this is not an option here? (see ss2.jpg)
I'm guessing during reboot is may need the shortcut AND the .bar file as "run as administrator"
even though insticnt tells me, if the shortcut is set up to default run as administrator
that should cover it ? This may not be the issue, all I want is AOLSTART.BAT to run, please advise.
thanks AJ
AJ Anning
All replies (3)
Monday, May 22, 2017 1:37 AM âś…Answered
Dear AJ,
Your analysis is reasonable, if we want to execute the .bat file during boot, we need to use Administrator permission to run it.
In my opinion, we could try to use Computer Startup Scripts to check result, Startup scripts are run under the Local System account, and they have the full rights that are associated with being able to run under the Local System account.
For detailed steps, please refer to this link
https://technet.microsoft.com/en-us/library/cc770556(v=ws.11).aspx
Regards
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].
Monday, May 22, 2017 1:50 AM | 1 vote
Hi,
I just realized, I put my post in a server thread and not in windows 10 pro. However, I believe this would work for me in win 10 too. It also shed light on other possibilities and uses, for this I thank you!.
I ended up using task scheduler which does the job for my issue, but, again I can use this on other projects!
Thanks
AJ Anning
Monday, May 22, 2017 2:24 AM
Very well, task scheduler is also a good way to deal with permission issue, I am happy to assist you with question, you are welcome.
Please remember to mark the replies as answers if they help.
If you have feedback for TechNet Subscriber Support, contact [email protected].