1、使用快捷键win+r,打开运行程序
2、输入代码 Shutdown -s -t(此处输入时间:单位秒)如输入Shutdown -s -t 3600,表示3600秒后自动关机。
3、如要取消自动关机,只需输入Shutdown -a