Microsoft KB Archive/888851

= You try to use the PRINT SCREEN key to capture the screen of a guest operating system, but the host operating system receives the request =

Article ID: 888851

Article Last Modified on 11/2/2007

-

APPLIES TO


 * Microsoft Virtual Server 2005 Standard Edition

-





SYMPTOMS
When you try to use the PRINT SCREEN key to capture the screen of a guest operating system that is running in Microsoft Virtual Server 2005, the host operating system receives the request instead of the guest operating system.



RESOLUTION
To resolve this issue, run a script that uses the Microsoft Component Object Model (COM) interface. Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. The following example script includes the COM interface that must be used to issue the ALT+PRINT SCREEN request to the guest computer that is running on Virtual Server 2005: ‘---

‘ This script will send the Alt+PrintScreen keyboard shortcut to a guest

‘---

Set vso = CreateObject(&quot;VirtualServer.Application&quot;,&quot;yourhostname&quot;)

Set vm = vso.FindVirtualMachine(&quot;your-VMname-here&quot;)

vm.keyboard.TypeKeySequence(&quot;DOWN,Key_LeftAlt,DOWN,Key_SysReq,UP,Key_LeftAlt,UP,Key_SysReq&quot;)

You can change the print screen keyboard shortcut, depending on the type of screen capture that you want. For additional information about Print Screen key sequences, click the following article number to view the article in the Microsoft Knowledge Base:

173884 How to capture screen shots in Windows using the PRINT SCREEN key

For additional information about writing scripts by using the Virtual Server 2005 COM interface, see the &quot;Microsoft Virtual Server 2005 COM Interface&quot; topic in Virtual Server Programmer's Guide.

To view Virtual Server Programmer's Guide on the computer that is running Virtual Server 2005, click Start, point to All Programs, point to Microsoft Virtual Server, and then click Virtual Server Programmer's Guide.

Keywords: kbtshoot kbscript kbprb KB888851

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.