seems to work fine Ok, trying everything and keep failed, and ended up on this guy who use bat file. And it works..! It is so weird and still don't know why it works. For now...who cares :)...later when I have spare time I will try to figure it out.
I wish this helpful for you If you could simply override system protections just by using Java, that would be a big security flaw! I'm surprised you can do this on Windows. Anyway, it can only be done if you have administrative access to your machine to set the program in a certain group which has the rights to shutdown/restart. Otherwise, you can't just do that.
how to shutdown-restart-hibernate-stand by-log off computer using Process.Start()?
Hope that helps Im making a client-server application so i need to shutdown the remote pc Silently .. i've read about shutdown arguments in Commands Prompt shutdown/? .. but i still don't know the right arguments to do the commands below. shutdown restart hibernate stand by log off lock (switch user) , Try this:
How to make a python script which can logoff, shutdown, and restart a computer?