2

I want to run cmd.exe not as administrator, but as the local system account on Windows 11.

Apparently it was possible on Windows 10 using psexec. On Windows 11 with psexec v2.40 I get this error from an admin elevated cmd.exe:

C:\WINDOWS\system32>psexec64 -i -s cmd.exe

PsExec v2.4 - Execute processes remotely Copyright (C) 2001-2022 Mark Russinovich Sysinternals - www.sysinternals.com

Error creating key file on system3: Access is denied.

edit:

Tried also on one of my Windows 10 clients, and it doesn't work either anymore.

Casady
  • 131
  • 1
  • 4

1 Answers1

1

Found a solution. PsExec doesn't work anymore for this task. Downgrading to 2.20, as some forum posts suggested didn't work either.

But this freeware tools does still work. You can launch a powershell as system user:

https://www.nirsoft.net/utils/advanced_run.html

I was able to delete the 'undeletable' file this way.

Casady
  • 131
  • 1
  • 4