Unable to reset IIS server with iisreset command using CMD in Administrator privilege.

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

Unable to reset IIS server with iisreset command using CMD in Administrator privilege.

L1 Bithead

We already have Elevetage privilege in CMD and checked the child process and upon opening cmd, it opens with administrator privilege. But We are not able to perform iisreset command through cmd. The error message is "Access denied, you must be an administrator of the remote computer to use this command. Either have your account added to the administrator local group of the remote computer or to the domain administrator global group."

 

Field_Content_versions_oct20__068Ht00000Vf2S9IAJ.pngAttached is a screenshot for reference.

The reason to restart the server using cmd is that sometimes we get an error from the IIS console while resetting. Attached is an image for reference.

Field_Content_versions_oct20__068Ht00000Vf2SPIAZ.png 

1 accepted solution

Accepted Solutions

L5 Sessionator

If you go into explorer.exe and go to the IISRESET.exe and right click and run as admin, simple it should appear as an event in the epm console and then add it to policy that way? then you can probably run it from an elevated cmd or non elevated cmd even. Try both.

View solution in original post

5 REPLIES 5

L7 Applicator

Hi @Kailash Bohara​ 

 

Providing admin access on the CMD will allow users to run any commands, which would be not be the best practice. You may need to create an elevation policy for the iisreset command to run in EPM.

 

Hope it helps !

L5 Sessionator

If you go into explorer.exe and go to the IISRESET.exe and right click and run as admin, simple it should appear as an event in the epm console and then add it to policy that way? then you can probably run it from an elevated cmd or non elevated cmd even. Try both.

L4 Transporter

If you go into explorer.exe and go to the IISRESET.exe and right click and run as admin, simple it should appear as an event in the epm console and then add it to policy that way? then you can probably run it from an elevated cmd or non elevated cmd even. Try both.

L4 Transporter

Hi @Kailash Bohara​ 

 

Since several community members answered your question, could you kindly share if any of these solutions resolved your issue?

If so, could you please mark the appropriate answer as "Select as Best" to assist other community members.

 

If the issue is still relevant, I would advise raising a ticket with our Support team for further assistance.

 

Thank you, Liad

Thanks.

  • 1 accepted solution
  • 605 Views
  • 5 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!