【发布时间】:2020-11-26 19:13:40
【问题描述】:
我想使用 PowerShell 将等效的 ALT_CTRL_END 发送到远程计算机:
Invoke-Command -ComputerName RemoteComputer -ScriptBlock {(New-Object -ComObject shell.application).WindowsSecurity()}
这无法在远程计算机上执行操作。这是为什么呢?
【问题讨论】:
标签: powershell
我想使用 PowerShell 将等效的 ALT_CTRL_END 发送到远程计算机:
Invoke-Command -ComputerName RemoteComputer -ScriptBlock {(New-Object -ComObject shell.application).WindowsSecurity()}
这无法在远程计算机上执行操作。这是为什么呢?
【问题讨论】:
标签: powershell
https://docs.microsoft.com/en-us/windows/win32/shell/shell-windowssecurity 发送 CTRL+ALT+DEL 而不是 CTRL+ALT+END 以及
只有在通过终端会话连接到 Microsoft 终端服务器时才能使用此方法。
如果您需要 CTRL+ALT+DEL,那么 .NET Simulate Ctrl+Alt+Del Sendkeys 应该会有所帮助。
【讨论】: