python 获取屏幕快照_如何获取Windows登录屏幕的屏幕快照:2个怪异技巧-程序员宅基地

技术标签: python  java  qt  linux  windows  

python 获取屏幕快照

python 获取屏幕快照

image

There are ways to run a screen capture utility – or any other program – from the welcome screen. Windows doesn’t make this easy, but it’s possible. The logon screen runs on the Winlogon desktop, an isolated Windows desktop.

有多种方法可以从欢迎屏幕运行屏幕捕获实用程序或任何其他程序。 Windows并不容易,但是有可能。 登录屏幕在Winlogon桌面(隔离的Windows桌面)上运行。

Whether you’ve set a custom logon screen background and want to show it off, need a screenshot for your tutorial, or want to capture an error message, any of these methods will work for you.

无论您是设置自定义的登录屏幕背景 ,还是想要炫耀它,为教程需要屏幕截图,还是想捕获错误消息,这些方法中的任何一种都可以为您服务。

在Winlogon桌面上启动程序 (Launch Programs on the Winlogon Desktop)

We can launch other programs on the Winlogon desktop with the PsExec command, available on Microsoft’s website. The PsExec command is part of the Sysinternals suite of utilities.

我们可以使用Microsoft网站上的PsExec命令在Winlogon桌面上启动其他程序。 PsExec命令是Sysinternals实用程序套件的一部分。

After downloading the PSTools package, place the PsExec.exe command into your path – for example, in the C:\Windows\System32 directory.

下载PSTools软件包后,将PsExec.exe命令放入路径中,例如,在C:\ Windows \ System32目录中。

image

Next, launch a Command Prompt as administrator by right-clicking the Command Prompt shortcut and selecting Run as administrator.

接下来,右键单击“命令提示符”快捷方式,然后选择“以管理员身份运行”,以管理员身份启动命令提示符。

image

From the administrator Command Prompt, run the following command to launch a command prompt window on the Winlogon desktop:

在管理员命令提示符中,运行以下命令以在Winlogon桌面上启动命令提示符窗口:

psexec -sx cmd.exe

psexec -sx cmd.exe

The s option tells psexec to launch the process as the system user account, while the x has it launch the process on the local Winlogon desktop.

s选项告诉psexec以系统用户帐户启动进程,而x则使它在本地Winlogon桌面上启动进程。

image

Lock the screen with WinKey+L and press Alt-Tab to reveal the Command Prompt running on the Winlogon desktop. You’ll also see the command prompt if you press Ctrl-Alt-Delete and Alt-Tab on the Ctrl-Alt-Delete screen, which also runs on the Winlogon desktop.

使用WinKey + L锁定屏幕,然后按Alt-Tab键显示Winlogon桌面上运行的命令提示符。 如果您同时在Winlogon桌面上运行Ctrl-Alt-Delete屏幕上按Ctrl-Alt-Delete和Alt-Tab,也会看到命令提示符。

image

Use the Command Prompt to launch screenshot utilities and other applications on the secure desktop.

使用命令提示符在安全桌面上启动屏幕快照实用程序和其他应用程序。

劫持轻松访问按钮 (Hijack the Ease of Access Button)

Windows displays an Ease of Access button at the bottom left corner of the login screen. When clicked, this button opens the Utilman.exe program, allowing you to start accessibility utilities from the login screen. You can actually replace the Utilman.exe file with another EXE file – like a screenshot utility – to easily take a screenshot of the login screen.

Windows在登录屏幕的左下角显示一个“轻松访问”按钮。 单击后,此按钮将打开Utilman.exe程序,使您可以从登录屏幕启动辅助功能实用程序。 实际上,您可以将Utilman.exe文件替换为另一个EXE文件(如屏幕截图实用程序),以轻松获取登录屏幕的屏幕截图。

You’ll find the Utilman.exe file in the %WINDIR%\System32 directory, which is C:\Windows\System32 by default.

您可以在%WINDIR%\ System32目录中找到Utilman.exe文件,该目录默认为C:\ Windows \ System32。

image

We’ll need to rename the Utilman.exe file so we can replace it with another EXE file, but we can’t rename it until we take ownership of it. To take ownership of this file, right-click it and open its Properties window.

我们需要重命名Utilman.exe文件,以便可以将其替换为另一个EXE文件,但是直到获得所有权后才能重命名。 要获得此文件的所有权,请右键单击它,然后打开其“属性”窗口。

image

Select the Security tab in the Properties window and click the Advanced button to access its advanced settings.

在“属性”窗口中选择“安全性”选项卡,然后单击“高级”按钮以访问其高级设置。

image

Select the Owner tab in the Advanced Security Settings window and click the Edit button. I’ve already taken ownership of the file here – by default, it’s owned by TrustedInstaller.

在“高级安全设置”窗口中选择“所有者”选项卡,然后单击“编辑”按钮。 我已经在这里拥有了文件的所有权–默认情况下,它是由TrustedInstaller拥有的。

image

Select your administrator account and click OK to take ownership.

选择您的管理员帐户,然后单击“确定”以取得所有权。

image

After you’ve taken ownership of the file, you can rename it to something like Utilman_backup.exe

取得文件所有权后,可以将其重命名为Utilman_backup.exe

image

You’ll need a screenshot utility to put in Utilman.exe’s place. I tested Win 7 Logon Screen Capture, which worked well. Put the file in Utilman.exe’s place.

您将需要一个屏幕截图实用程序来放置Utilman.exe的位置。 我测试了Win 7登录屏幕捕获,效果很好。 将文件放在Utilman.exe的位置。

image

After it’s installed, go back to the logon screen (WinKey+L) and click the Utilman.exe file to take your screenshot. Clicking the button will bring up a save dialog if you’re using Win 7 Logon Screen Capture.

安装完成后,返回登录屏幕(WinKey + L)并单击Utilman.exe文件以截取屏幕截图。 如果您使用的是Win 7 Logon Screen Capture,则单击该按钮将弹出一个保存对话框。

image

使用虚拟机 (Use a Virtual Machine)

Most screenshots of the Windows logon screen you see online were taken using virtual machine software. This is the simplest way to take these screenshots, as the virtual machine software displays the guest operating system’s logon screen in a window on your desktop.

您在线看到的Windows登录屏幕的大多数屏幕截图是使用虚拟机软件拍摄的。 这是获取这些屏幕截图的最简单方法,因为虚拟机软件会在桌面上的窗口中显示来宾操作系统的登录屏幕。

To get started with virtual machines, check out our list of articles for learning virtual machines.

要开始使用虚拟机,请查看我们的学习虚拟机的文章列表。

翻译自: https://www.howtogeek.com/113267/how-to-take-screenshots-of-the-windows-logon-screen-2-geeky-tricks/

python 获取屏幕快照

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/culul01313/article/details/108837773

智能推荐

python编码问题之encode、decode、codecs模块_python中encode在什么模块-程序员宅基地

文章浏览阅读2.1k次。原文链接先说说编解码问题编码转换时,通常需要以unicode作为中间编码,即先将其他编码的字符串解码(decode)成unicode,再从unicode编码(encode)成另一种编码。 Eg:str1.decode('gb2312') #将gb2312编码的字符串转换成unicode编码str2.encode('gb2312') #将unicode编码..._python中encode在什么模块

Java数据流-程序员宅基地

文章浏览阅读949次,点赞21次,收藏15次。本文介绍了Java中的数据输入流(DataInputStream)和数据输出流(DataOutputStream)的使用方法。

ie浏览器无法兼容的问题汇总_ie 浏览器 newdate-程序员宅基地

文章浏览阅读111次。ie无法兼容_ie 浏览器 newdate

想用K8s,还得先会Docker吗?其实完全没必要-程序员宅基地

文章浏览阅读239次。这篇文章把 Docker 和 K8s 的关系给大家做了一个解答,希望还在迟疑自己现有的知识储备能不能直接学 K8s 的,赶紧行动起来,K8s 是典型的入门有点难,后面越用越香。

ADI中文手册获取方法_adi 如何查看数据手册-程序员宅基地

文章浏览阅读561次。ADI中文手册获取方法_adi 如何查看数据手册

React 分页-程序员宅基地

文章浏览阅读1k次,点赞4次,收藏3次。React 获取接口数据实现分页效果以拼多多接口为例实现思路加载前 加载动画加载后 判断有内容的时候 无内容的时候用到的知识点1、动画效果(用在加载前,加载之后就隐藏或关闭,用开关效果即可)2、axios请求3、map渲染页面4、分页插件(antd)代码实现import React, { Component } from 'react';//引入axiosimport axios from 'axios';//引入antd插件import { Pagination }_react 分页

随便推点

关于使用CryPtopp库进行RSA签名与验签的一些说明_cryptopp 签名-程序员宅基地

文章浏览阅读449次,点赞9次,收藏7次。这个变量与验签过程中的SignatureVerificationFilter::PUT_MESSAGE这个宏是对应的,SignatureVerificationFilter::PUT_MESSAGE,如果在签名过程中putMessage设置为true,则在验签过程中需要添加SignatureVerificationFilter::PUT_MESSAGE。项目中使用到了CryPtopp库进行RSA签名与验签,但是在使用过程中反复提示无效的数字签名。否则就会出现文章开头出现的数字签名无效。_cryptopp 签名

新闻稿的写作格式_新闻稿时间应该放在什么位置-程序员宅基地

文章浏览阅读848次。新闻稿是新闻从业者经常使用的一种文体,它的格式与内容都有着一定的规范。本文将从新闻稿的格式和范文两个方面进行介绍,以帮助读者更好地了解新闻稿的写作_新闻稿时间应该放在什么位置

Java中的转换器设计模式_java转换器模式-程序员宅基地

文章浏览阅读1.7k次。Java中的转换器设计模式 在这篇文章中,我们将讨论 Java / J2EE项目中最常用的 Converter Design Pattern。由于Java8 功能不仅提供了相应类型之间的通用双向转换方式,而且还提供了转换相同类型对象集合的常用方法,从而将样板代码减少到绝对最小值。我们使用Java8 功能编写了..._java转换器模式

应用k8s入门-程序员宅基地

文章浏览阅读150次。1,kubectl run创建pods[root@master ~]# kubectl run nginx-deploy --image=nginx:1.14-alpine --port=80 --replicas=1[root@master ~]# kubectl get podsNAME READY STATUS REST...

PAT菜鸡进化史_乙级_1003_1003 pat乙级 最优-程序员宅基地

文章浏览阅读128次。PAT菜鸡进化史_乙级_1003“答案正确”是自动判题系统给出的最令人欢喜的回复。本题属于 PAT 的“答案正确”大派送 —— 只要读入的字符串满足下列条件,系统就输出“答案正确”,否则输出“答案错误”。得到“答案正确”的条件是: 1. 字符串中必须仅有 P、 A、 T这三种字符,不可以包含其它字符; 2. 任意形如 xPATx 的字符串都可以获得“答案正确”,其中 x 或者是空字符串,或..._1003 pat乙级 最优

CH340与Android串口通信_340串口小板 安卓给安卓发指令-程序员宅基地

文章浏览阅读5.6k次。CH340与Android串口通信为何要将CH340的ATD+Eclipse上的安卓工程移植到AndroidStudio移植的具体步骤CH340串口通信驱动函数通信过程中重难点还存在的问题为何要将CH340的ATD+Eclipse上的安卓工程移植到AndroidStudio为了在这个工程基础上进行改动,验证串口的数据和配置串口的参数,我首先在Eclipse上配置了安卓开发环境,注意在配置环境是..._340串口小板 安卓给安卓发指令