Psshutdown for mac reboot windows computer

broken image
broken image

Note: For this to work, you have to import os library in the ide. system() function with the code “ shutdown /s /t 1 ”. How to remotely shutdown a computer using python, To shut down the computer/PC/laptop by using a Python script, you have to use the os. Is there a way to fully shutdown the computer? This line is a part of it : os.system('shutdown /p') It makes some sort of a shutdown but remains on the turn-on Windows control pannel (where the user can switch the computer users). Posted: I've written a Python script which should eventually shutdown the computer. How to shutdown a computer using Python, How to remotely shutdown a computer using python - This video is a simple tutorial based on Duration: 14:35