I'm trying to shutdown a remote system using the Win32_ShutdownTracker method in WMI. I'm using this in VS 2022.
When I run VS 2022 in admin mode, the remote system shuts down perfectly, whereas when I try to run in a normal user mode, a privilege error occurs.
I have used the following code from MSDN: How to Shut Down the System, but it produces the same result, is this correct?