Sometimes you can’t logoff a (disconnected) session in a Windows server. If you try to logoff you may get access denied error. This post will go through how to run Task manager with Administrator in GUI mode. Unlike other apps, executing Task manager with admin privilege is not straight forward.
To logoff, you need to run Task manager with Administrator privileges. By default, Task manager would not start with Administrator privileges. To do, first open Task manager (Task bar -> Right click and open Task manager) and then right click the Task manager in the Task bar and select “Pin this program to Taskbar”. Now close the Task manager.
Once done, again right click the Task manager icon -> Right click “Windows Task Manager” -> Select Run as Administrator.
Now you can run Task manager with Admin privileges.