Is it possible to elevate specific tasks in Command Prompt?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Is it possible to elevate specific tasks in Command Prompt?

 We have CMD.exe blocked by default but ie. DISM.exe needs to be run elevated. Is this possible? Or SC.exe?

3 REPLIES 3

L7 Applicator

Hi @Erwin Van Den Born​ 

 

Yes in my understanding, it should be possible.

 

Please try the following

 

  • Please create a policy by specifying the path of DISM.exe or SC.exe
  • Define policy scope: either target machine or user groups
  • Set to “Run with Elevated Privileges”

 

Hope it helps !

Thanks for your reply!

That's the thing... DISM or SC is started from the Command Prompt and that's not started elevated. So basically the idea is to start the Command Prompt "Elevated if Necessary" and only allow specific subprocesses to be started from there.

I think I got it working, I was thinking to difficult 🙂 If you add dism.exe and/or sc.exe to a policy, these will automatically be elevated when calling them from command prompt 😖

  • 276 Views
  • 3 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!