Creating an UI autostart service on a Server 2025 domain controller causes other processes running as SYSTEM to hang on exit

T

TuDinh

To reproduce, first promote a new Server 2025 domain controller.Create a C# Windows service with an empty form and the following code:public partial class Service1 : ServiceBase { public Service1() { InitializeComponent(); } protected override void OnStart(string[] args) { using (var f = new Form1()) { } } protected override void OnStop() { }}Install this executable on the DC as an Autostart service then restart the server.Any other programs running as SYSTEM (e.g. started via Task Scheduler, PSExec, etc.) will hang upon exit.

Continue reading...
 
Back
Top Bottom