Domanda

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?

È stato utile?

Soluzione

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.

Altri suggerimenti

In my case, I was attempting to debug a web application using Visual Studio. Running Visual Studio using psexec -s -i didn't work for me, because the SYSTEM account did not have IIS Express configured.

What did work for me, however, was to rebuild my app (in debug mode), publish it to my local folder (in debug mode) where my IIS web app was pointing to it and then configure the apppool to run as the LocalSystem account.

enter image description here

I then launched the web application to initialize the web process. After initializing the web process, I would attach my Visual Studio debugger to the process:

Debug -> Attach to Process (Ctrl + Alt + P) -> Show processes from all users (checkbox)

Then select and attach to the process:

enter image description here

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top