Frigo42
Contributor
Contributor

Set-VMKeystrokes / PutUsbScanCodes support for holding the Print Screen key

Jump to solution

Today when calling the PutUsbScanCodes to inject keystrokes, there is a specific set of "modifier" keys referenced here.

It allows to press and hold the control and alt key for example, before sending the keystroke for the delete key.

Similarly to Control+Alt+Del, on Linux machines there is the "Magic SysRq" combination that allows to perform some recovery actions such as the REISUB sequence.

For this, one need to hold the Alt+PrintScreen keys, then press one key (like F to trigger the OOM killer on the box, or B to reboot, etc.)

Triggering these Magic SysRq commands could be interesting to recover frozen Linux machines, however it is not made possible today as the PrintScreen key is not part of the list of modifiers supported by PutUsbScanCodes. On Linux, changing the magic sysrq to another key requires to recompile your kernel so it's not really an option if you expect vendor support.

Can you please support holding PrintScreen as a property of UsbScanCodeSpecModifierType object?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

This is more an RFC than a question for help in a user forum.
I suggest you contact your TAM to help you create an RFC.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership

This is more an RFC than a question for help in a user forum.
I suggest you contact your TAM to help you create an RFC.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

View solution in original post

0 Kudos
Frigo42
Contributor
Contributor

ok. thanks

0 Kudos