Search code examples
visual-studio-2013impersonationvisual-studio-debugging

How to debug as NT AUTHORITY\SYSTEM in Visual Studio?


I'm trying to debug as NT AUTHORITY\SYSTEM. I've tried to use the methods described in the following question: RunAs A different user when debugging in Visual Studio

Yet, what credentials do I need to use in order to pass through authentication?


Solution

  • runas cannot start as System/Local Service/Network Service etc. But psexec -s can start a process as System.

    -s Run the remote process in the System account.