I have a windows Service always running once PC started, how would i detect using .NET 3.5 or WMI, when the user or some other application/process has requested a shutdown o
Win32.SessionEnded event gets fired when the system is being shut down. You should attach to this in your program.