HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/ec2/get-console-screenshot.rst
**To retrieve a screenshot of a running instance**

The following ``get-console-screenshot`` example retrieves a screenshot of the specified instance in .jpg format. The screenshot is returned as a Base64-encoded string. ::

    aws ec2 get-console-screenshot \
        --instance-id i-1234567890abcdef0

Output::

    {
        "ImageData": "997987/8kgj49ikjhewkwwe0008084EXAMPLE",
        "InstanceId": "i-1234567890abcdef0"
    }