Jump to content

Recommended Posts

Posted

Hi guys.

I'd like to Run() another process with the following 3 rights:

- With admin rights

- Without admin rights

- Same as my process' level

Here are some basic plots of it:

- 1st case: My script is running without admin rights, but I'd like to start a process with admin rights.

- 2nd case: (Vica-verse) My script is running with admin rights, but I wouldn't like if the other process would inherit it.

- Running as the same level is a simple Run() since it does exactly what it should have.

I've got no idea how to start it, since I can't have the password for RunAs().

[This way if I'm  running in user mode, then the usual UAC would prompt if I run  the target as admin]

Posted (edited)

I like using PsExec or PaExec or scheduled tasks.

You can specify all of the above with those, but all (I should say most) will require passwords.

You can have the scheduled tasks setup, before hand, and then call them, to get around the storing of passwords.

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

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
  • Recently Browsing   0 members

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