Why can't I run admin commands in cmd even with Elevated Permissions?

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

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Why can't I run admin commands in cmd even with Elevated Permissions?

L2 Linker

When I assign a policy with Elevated Permissions to cmd, it starts with admin rights, as indicated by the EPM popup before starting. However, I can't execute admin commands and receive the message: "You must be an administrator running a console session in order to use the sfc utility." Additionally, I keep getting EPM popups indicating cmd is started with elevation, possibly causing all background processes to start with elevated permissions. This suggests it isn't working correctly.

 

When I use "Elevated if necessary," I need to click "Run as administrator" for cmd to start with admin rights. There are no popups from EPM or Windows, and the user is system32 or the admin user. However, when I run a cmd command that requires admin rights, such as 

sfc /scannow, I get the same message: "You must be an administrator running a console session in order to use the sfc utility."

 

When I use JIT, elevation works fine. I get a Windows UAC and after giving my credential, I can use my admin priviliges.

1 accepted solution

Accepted Solutions

L4 Transporter

Have you included child processes?

View solution in original post

2 REPLIES 2

L4 Transporter

Have you included child processes?

Thank you, that solved it.

  • 1 accepted solution
  • 506 Views
  • 2 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!