-1

I want to send the equivalent of ALT_CTRL_END to a remote computer using PowerShell:

Invoke-Command -ComputerName RemoteComputer -ScriptBlock {(New-Object -ComObject shell.application).WindowsSecurity()} 

This fails to perform the action on the remote computer. Why is that?

Avshalom
  • 8,657
  • 1
  • 25
  • 43
IanB
  • 271
  • 3
  • 13

1 Answers1

1

https://learn.microsoft.com/en-us/windows/win32/shell/shell-windowssecurity Sends CTRL+ALT+DEL not CTRL+ALT+END and also

This method can be used only when connected by a terminal session to Microsoft Terminal Server.

If you need CTRL+ALT+DEL then .NET Simulate Ctrl+Alt+Del Sendkeys should help.

Ultimate Luki
  • 224
  • 1
  • 6