Batch Script

Hi,

I'm getting an error message when trying to run bat script:
"The requested operation requires elevation <Run as administrator>
I need to run the script via task scheduler so I can use "run as administrator option"

Any ideas?
compx_itAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

QuinnDexCommented:
here is a way to elevate .bat permissions

https://sites.google.com/site/eneerge/home/BatchGotAdmin
0
Gerwin Jansen, EE MVETopic Advisor Commented:
@compx_it - I can imagine you want the batch file to run in the background as it is a scheduled job - it this the case? If so then the suggestion above from QuinnDex is not working as it is prompting for administrative rights (UAC / GUI).
0
Gerwin Jansen, EE MVETopic Advisor Commented:
For which Windows version is your question btw?

<edit>

Adding a task (in this case regedt32.exe) specified with 'Run with highest ...' does not give me the UAC popup:

Test with Regedit
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
QuinnDexCommented:
alternatively convert the .bat to a .exe this will eliminate the need to run as administrator

http://www.abyssmedia.com/quickbfc/
0
Gerwin Jansen, EE MVETopic Advisor Commented:
May I ask why the B-grade?

You can read about grading here:
http://support.experts-exchange.com/customer/portal/articles/481419

Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.