Jump to content

Startup with Admin


DigDeep
 Share

Recommended Posts

Hi,

I have a program that should run at startup and does lots of functions to download, install, check for entries. 90% of the actions require Admin rights. But if I put #RequireAdmin then the code gets added to registry and startup, but does not run in Process. If I remove #RequireAdmin then it runs, but where it is required for admin rights those actions do not work.

I even tried to create 2 files. 1st one to hold all the Functions with Admin rights and 2nd one to get Startup part which will call the 1st part. But it does the same.

 

Any suggestions, how can I run the code in Startup and get Admin rights?

Link to comment
Share on other sites

For the scheduler, the scheduled task must ber configured with "Run with highest privileges" options and the credentials of an admin user.

Edited by jguinch
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...