This is more than the server side of user management, but I really like to use Cassia
Another option is to do it
System.Diagnostics.Process.Start("shutdown.exe", String.Format(@"/l /f /m \\{1}", remoteComputerName));
/l- output. /f- power. /m \\computername- the name of the remote computer to perform the operation. If you are not in a domain and the user on whom the application is running does not have domain administrator rights, I can not guarantee that the above command will work.
Third option: get PsExec , then run the shutdown command on the remote computer with it ( shutdown.exe /l /f)
source
share