question

BurtsevDmitriyMOCS-7321 avatar image
0 Votes"
BurtsevDmitriyMOCS-7321 asked DSPatrick commented

shutdown.exe Access is denied.(5)

Hello All

I am a local admin on the server.
Windows Server 2019 Version 1809 OS Build 17763.2114
shutdown.exe /s /t 600 /c "Script Done" /d p:0:0
Access is denied.(5)

I am running the script locally on the server. The script should shut down the server when done.
Get Access is denied.(5)
I try to run shutdown.exe locally from command prompt - Access is denied.(5)

windows-server
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
1 Vote"
DSPatrick answered DSPatrick commented

Try again but running with elevated credentials.

--please don't forget to Accept as answer if the reply is helpful--



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just checking if there's any progress or updates?

--please don't forget to upvote and Accept as answer if the reply is helpful--



0 Votes 0 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hello,

Thank you for your question.

Other Note, are trying shutdown remotely ? if yes then you might need to adjust Local GPO settings as below

You need to have “Force shutdown from remote computer” permissions for your account on the computer you’re trying to restart.

Go to run -> type in: secpol.msc -> local policies -> User Rights Assignment -> force shutdown from a remote system, add your account to it…this works best if you’re attached to a domain so that both computers know what the account is.



If the reply was helpful, please don’t forget to upvote or accept as answer.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.