当Windows被锁定时运行powershell?

时间:2016-08-02 16:17:21

标签: powershell-v2.0

窗口锁定时是否可以运行电源外壳?

while (Get-Process | Where-Object { $_.Name -eq 'LogonUI' }) {
    Write-Host "Windows locked out"
}

0 个答案:

没有答案