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

智能推荐

matlab编程控制舵机,船舶航向控制器设计(MATLAB,附仿真程序)-程序员宅基地

文章浏览阅读1.1k次。船舶航向控制器设计(MATLAB,附仿真程序)(课题申报表,任务书,开题报告,中期检查表,外文翻译,论文15400字,仿真程序,答辩PPT)摘 要本文对反向递推(Backstepping)设计方法在非线性船舶航向控制器中的应用进行了研究。Backstepping设计方法是近几年兴起的一种基于Lyapunov稳定性理论的比较先进的非线性控制方法。因此,本文首先对目前常见的非线性控制方法进行了概述,简..._舵机模型matlab程序

营销系统优惠券模板设计_优惠劵表结构设置-程序员宅基地

文章浏览阅读819次。目录券模板基础信息定义优惠券类型优惠券门槛优惠券面值/折扣率,折扣金额上限有效期自定义使用限定使用时间限定可用商品限定可用门店限定券模板设计类似于商品SKU,定义了一个券模板后,发券操作可以基于同一个券模板实现发放同一种优惠券给多个不同的用户。券模板基础信息定义一张优惠券的基础信息,例如常规的名称,类型,面值等等。下面罗列一些有逻辑含义的字段。优惠券类型立减券: 无门槛或有门槛的满减券,达到使用门槛后可以立减指定金额。 折扣券:按商品价格减免指_优惠劵表结构设置

(深度学习快速入门)人工智能、机器学习和深度学习总体概述_人工智能与深度学习 简明教程-程序员宅基地

文章浏览阅读3k次,点赞15次,收藏67次。线性回归:线性回归假设输出变量是若干输入变量的线性组合,并根据这一关系求解线性组合中的最优系数。具体来说,线性回归的作用是求得一组参数wi,i=0.1.,,,.nwi​,i=0.1.,,,.n,使预测输出可以表示为以这组参数为权重的实例属性的线性组合,引入常量x0=1x_{0}=1x0​=1,线性回归试图学习的模型就是当实例只有一个属性时,输入和输出之间的关系就是二维平面上的一条直线;_人工智能与深度学习 简明教程

python读取串口速度跟不上_串口读取数据很慢,怎么解决-程序员宅基地

文章浏览阅读1.9k次。byte[] reb = new byte[0x400];reb = myCom.Read(0x400);就是这个读取串口数据的函数public byte[] Read(int NumBytes){byte[] lpBuffer = new byte[NumBytes];if (this.hComm == -1){throw new ApplicationException("串口没有打开");}..._python读取串口速度跟不上

浏览器工作原理详解_在线浏览原理图-程序员宅基地

文章浏览阅读3.9w次,点赞47次,收藏283次。这是一篇全面介绍 Webkit 和 Gecko 内部操作的入门文章,是以色列开发人员塔利·加希尔大量研究的成果。在过去的几年中,她查阅了所有公开发布的关于浏览器内部机制的数据,并花了很多时间来研读网络浏览器的源代码。她写道: 在 IE 占据 90%市场份额的年代,我们除了把浏览器当成一个“黑箱”,什么也做不了。但是现在,开放源代码的浏览器拥有了过半的市场份额,因此,是时候来揭开神秘的面纱,一探网_在线浏览原理图

机器学习-Anomaly Detection_根据f1值或者查准率与查全率的比例来选择ε-程序员宅基地

文章浏览阅读347次。Problem Motivation异常检测(Anomaly detection)是机器学习算法的一个常见应用。这种算法的一个有趣之处在于:它虽然主要用于非监督学习问题,但从某些角度看,它又类似于一些监督学习问题。假想你是一个飞机引擎制造商,当你生产的飞机引擎从生产线上流出时,你需要进行 QA(质量控制测试),而作为这个测试的一部分,你测量了飞机引擎的一些特征变量,比如引擎运转时产生的热量,..._根据f1值或者查准率与查全率的比例来选择ε

随便推点

Shiro与Spring结合时报Configuration error: No realms have been configured! One or more realms must be……_configuration error: no realms have been configure-程序员宅基地

文章浏览阅读2.4k次,点赞2次,收藏7次。最近在跟着网上的教学视频学习Shiro安全框架,使用Shiro可以方便的做验证、授权等,其中在谈到使用多realm做验证,授权时,报了个缺少realm配置的错误。Configuration error: No realms have been configured! One or more realms must be present to execute an authorization o..._configuration error: no realms have been configured! one or more realms must

疟原虫感染治疗癌症,灵感竟然来源于地图-程序员宅基地

文章浏览阅读909次。2月9日,央视一套《新闻30分》节目向全球宣布了陈小平科学研究团队的重大发明《疟原虫感染免疫疗法治疗晚期癌症》。“疟原虫可成为抗癌生力军”迅速占据新闻热搜榜,引发民众热议。为何引发疟疾带来痛苦的疟原虫可以抗癌?这背后有什么样的故事?1985年,在陈小平教授还在中山医科大学读研究生的时候,有一天老师讲疟疾的流行病学时,挂出一张地图,与下图很像——疟疾主要流行在非洲、赤道附近,可以理解为:蚊子多的...

PAT乙级C语言1005 继续(3n+1)思想_pat1005继续 c语言-程序员宅基地

文章浏览阅读95次。#include<stdio.h>void da(int*b,int r);int main(){ //输入数据 int n; scanf("%d",&n); int a[999]; for(int i=0;i<n;i++){ scanf("%d",&a[i]); } //记录重复的数的下标 int t=0; int b[999]; int p; for(int i=0;i<n;i++){ p=a[i]; for(int._pat1005继续 c语言

【啃书】《智能优化算法及其MATLAB实例》例5.1蚁群算法求解TSP问题_蚁群算法 约束优化 matlab-程序员宅基地

文章浏览阅读905次,点赞3次,收藏13次。文章目录问题描述仿真过程matlab源码问题描述仿真过程matlab源码%20201012lu注:该matlab代码成功在matlabR2019a运行%%%%%%%%%%%%%%%%%%%%蚁群算法解决TSP问题%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%初始化%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%clear all; %清除所有变量close all; _蚁群算法 约束优化 matlab

WPF页面切换之Page与Window_wpf window page-程序员宅基地

文章浏览阅读2.3k次。先从基础背景知识说起:一、Page与Window介绍1.应用程序GUI的所有内容都是包含在Window中的,想要显示东西?必须先创建一个Window或者一个Window的子类;2.Window下面可以直接写内容,写布局,但是这些内容和布局写完后只能是固定的、不可变的,这里是不可变是指Window的内容不会发生变化了,因为元素和布局是写死的了;3.在Window下面插入Frame作为容器,再用该Frame包含你的某个Page(***注意:所有的Page都需要容器包含,否则无法进行页面之间的跳转和导航!_wpf window page

C++抽象数据类型(ADT)表示和实现--链队列(Queue)_c++数据结构adt怎么写-程序员宅基地

文章浏览阅读1.5k次。先放上ADT的解释和预定义常量。抽象数据类型(ADT)是指一个数学模型以及定义在该模型上的一组操作。抽象数据类型的定义仅取决于它的一组逻辑特性,而与其在计算机内部如何表示和实现无关,即不论其内部结构如何变化,只要它的数学特性不变,都不影响其外部的使用。以下是队列的抽象数据类型定义。_c++数据结构adt怎么写