Windows如何使用PowerShell进行重启和关机

使用PS重启windows

( Get-WMIObject -Query "Select * From Win32_OperatingSystem Where Primary=True" ).Reboot( )

使用PS关闭windows

( Get-WMIObject -Query "Select * From Win32_OperatingSystem Where Primary=True" ).ShutDown( )
日期:2020-04-11 23:04:34 来源:oir作者:oir