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

智能推荐

spring-boot3-程序员宅基地

文章浏览阅读112次。更多的配置:# ===================================================================# COMMON SPRING BOOT PROPERTIES## This sample file is provided as a guideline. Do NOT copy it in its# entire..._call: services/json/configure/testconnection -------------------------------

基于ssm+vue的校园驿站管理系统+(源码+部署说明+演示视频+源码介绍)-程序员宅基地

文章浏览阅读1k次,点赞14次,收藏10次。基于ssm+vue的校园驿站管理系统+(源码+部署说明+演示视频+源码介绍).zip

div内容超出容器宽度,超出显示省略号且鼠标悬浮显示全部内容_div设置省略号-程序员宅基地

文章浏览阅读946次,点赞8次,收藏10次。div内容超出容器宽度,超出部分显示省略号且鼠标悬浮显示全部内容_div设置省略号

Python类的重写和私有变量_重写方法其中的self变量怎么写-程序员宅基地

文章浏览阅读293次。1)类的重写# 如果子类想实现父类构造器中的方法,然后自己再写自己特殊的方法,便需要调用父类的__init__()方法class parent(object): # 定义父类的时候,一定要写继承object类,否则会报错 name = 'parent' sex = 'F' def __init__(self,address,age): self._重写方法其中的self变量怎么写

「Python」提取json数据为txt格式成功_python接口返回json数据是text格式-程序员宅基地

文章浏览阅读3k次,点赞2次,收藏10次。步骤1、你要检查json文件利用专门的解析json文件的网站校验进行https://www.sojson.com/2、不符合JSON语法格式的会报错,这时需要修改,直到正确3、Python读取一、JSON 语法规则数据在名称/值对中数据由逗号分隔花括号保存对象方括号保存数组举例问题:它报错说逗号有问题,其实不是,问题出在缺少中括号。在最外层补充中括号,JSON文件就没问题了。二、Python读取json数据完整正确的代码:import jsonfile=r'中国合作t_python接口返回json数据是text格式

编码规范_源代码 编码规范 调研表-程序员宅基地

文章浏览阅读924次。1.4.B 编码规范——如何写出简洁优美的代码 下面是来自两位C语言程序员的实现相同功能的两段代码: l 月薪1000元的程序员的代码: #include int main() { FILE *Wenjian; char Str[100]; Wenjian = fopen("test.txt","w"); do_源代码 编码规范 调研表

随便推点

jdk1.6环境下使用springboot的配置-程序员宅基地

文章浏览阅读774次。2019独角兽企业重金招聘Python工程师标准>>> ..._springboot配置jdk1.6

解决‘error_code‘: 110, ‘error_msg‘: ‘Access token invalid or no longer valid(百度智能云使用方法)-程序员宅基地

文章浏览阅读1.2w次,点赞2次,收藏6次。解决’error_code’: 110, ‘error_msg’: 'Access token invalid or no longer valid(百度智能云使用方法)出现上述错误,是因为没有将例子中的access token的结果进行正确替换。具体做法如下:搜索百度智能云,注册登录以车牌识别为例:产品>汽车场景文字识别>立即使用>创建应用(归属选个人,免费)>查看详细信息(生成AD AK SK,将其复制)>使用方式>API文档获取accrss token_access token invalid or no longer valid

AES加密_aes加密 csdn-程序员宅基地

文章浏览阅读339次,点赞5次,收藏10次。密钥交换算法是指在不安全的通道上,通过某种算法交换一个密钥,常用的有Diffie-Hellman(DH)算法、椭圆曲线Diffie-Hellman(ECDH)算法等。消息摘要算法是一种单向加密算法,将任意长度的数据转换成固定长度的输出,常用的有MD5、SHA-1、SHA-2等。数字签名算法是将消息或数据进行哈希计算,然后用私钥签名,验证签名时使用公钥进行验证,常用的有RSA、DSA等。非对称加密算法使用一对密钥(公钥和私钥)对数据进行加密和解密,常用的有RSA、DSA、ECC等。3、确保数据的完整性。_aes加密 csdn

电脑C盘缓存清理全攻略:手把手教你如何安全有效地释放系统空间_qindows清理c盘最终版-程序员宅基地

文章浏览阅读561次,点赞3次,收藏3次。随着计算机使用时间的增长,C盘(系统盘)中的临时文件、系统缓存和日志等数据会逐渐累积,占用大量磁盘空间,导致系统运行速度减慢。定期对C盘进行缓存清理是保持系统健康与高效的重要维护工作。本文将详细介绍如何安全且有效地清理C盘中的各类缓存,帮助用户释放宝贵的存储资源。_qindows清理c盘最终版

python中怎么获取js的输出值_使用Python中的BeautifulSoup在HTML源代码中获取JS var值(Get JS var value in HTML source using Be...-程序员宅基地

文章浏览阅读1.2k次。使用Python中的BeautifulSoup在HTML源代码中获取JS var值(Get JS var value in HTML source using BeautifulSoup in Python)我正在尝试使用BeautifulSoup从HTML源代码中获取JavaScript var值。例如我有:[other code]var my = 'hello';var name = 'hi'..._python 取得js返回值

LVGL 移植记录(2)_keil5编译lvgl失败-程序员宅基地

文章浏览阅读1.9k次,点赞2次,收藏11次。准备代码之前clone下来的3份代码说明如下修改lv_conf.h和lv_ex_conf.h1.把lvgl目录下lv_conf_template.h和lv_examples目录下lv_ex_conf_template.h复制到如下路径并去掉文件名的_template2.把这2个文件中的#if 0改成#if 1lv_conf.h是对lvgl组件进行配置lv_ex_conf.h是对lvgl提供的例子进行配置,不是很重要其中lv_conf.h需要配置如下设置屏幕尺寸#define LV_HO_keil5编译lvgl失败