uac管理员程序_在Windows 10中创建没有UAC提示的管理员模式快捷方式-程序员宅基地

技术标签: python  java  linux  操作系统  windows  

uac管理员程序

uac管理员程序

Windows 10 hero image

User Access Control (UAC) prompts in Windows 10 can be annoying, especially when you often run a program that requires Administrator permissions. Thankfully, there’s a way to create a shortcut that doesn’t prompt you for UAC.

Windows 10中的用户访问控制(UAC)提示可能很烦人,尤其是当您经常运行需要管理员权限的程序时。 幸运的是,有一种方法可以创建不会提示您输入UAC的快捷方式。

This trick works by setting up a scheduled task to run the target application in Administrator mode for you. You can then create a desktop shortcut that tells the task to run, which will bypass the UAC prompt the next time you click the shortcut.

此技巧通过设置计划任务以在管理员模式下为您运行目标应用程序而起作用。 然后,您可以创建一个告诉任务运行的桌面快捷方式,下次您单击该快捷方式时,它将绕过UAC提示。

While you can technically disable UAC prompts altogether, that’s an inherently bad idea as it opens up your computer’s security to potential threats and malicious code.

从技术上来说,您可以完全禁用UAC提示,但这是一个固有的坏主意,因为它使计算机的安全性不受潜在威胁和恶意代码的影响。

Because running Task Scheduler requires you to click through a UAC prompt that gives Administrator privileges to set up a task, this trick isn’t really a security loophole.

因为运行Task Scheduler需要您单击UAC提示符,该提示符为管理员提供了设置任务的特权,所以该技巧实际上并不是安全漏洞。

如何创建计划任务 (How to Create a Scheduled Task)

To launch the Task Scheduler, click Start, type Task Scheduler into the search bar, and then select the Task Scheduler icon in the search results.

要启动任务计划程序,请单击“开始”,在搜索栏中键入“ Task Scheduler ”,然后在搜索结果中选择“任务计划程序”图标。

Run Task Scheduler.

When Task Scheduler opens, click on “Create Task” from the pane on the right side of the window.

当“任务计划程序”打开时,从窗口右侧的窗格中单击“创建任务”。

Click "Create task" to create a new task.

Give the task a simple name—preferably without any spaces—that’s easy to remember and then tick the box next to “Run with Highest Privileges.” You can even give it a brief description if you want, but it isn’t necessary.

给任务起一个简单的名字-最好不要有空格-这样容易记住,然后在“以最高特权运行”旁边的框内打钩。 如果需要,您甚至可以对其进行简短描述,但这不是必需的。

Give it a memorable name and tick the box next to "Run with highest privileges."

By default, if you’re setting up this task on a laptop, Task Scheduler won’t run the task unless your computer is connected to AC power. If you don’t disable this option, when you click on the shortcut, the task won’t initiate the program and stick in a “Queued” state until you plug in the AC power.

默认情况下,如果您要在笔记本电脑上设置此任务,除非您的计算机连接到交流电源,否则“任务计划程序”将不会运行该任务。 如果不禁用此选项,则在单击快捷方式时,该任务将不会启动程序,并且在插入交流电源之前不会停留在“排队”状态。

Click the “Conditions” tab and untick the box next to “Start the Task Only If the Computer Is on AC Power.”

单击“条件”选项卡,然后取消选中“仅当计算机使用交流电源时才启动任务”旁边的框。

Untick the box next to "Start the task only if the computer is on AC power."

Next, switch to the “Actions” tab and then click the “New” button to create a new action for the task.

接下来,切换到“动作”选项卡,然后单击“新建”按钮为任务创建一个新动作。

Switch to the Actions tab and click "New" to create an action for the task.

Now, click “Browse” to search for the application to run when you start the task.

现在,单击“浏览”以搜索启动任务时要运行的应用程序。

Click "Browse."

Locate the application you want to start and then click “Open” after selecting it in File Explorer.

找到您要启动的应用程序,然后在“文件资源管理器”中选择它后单击“打开”。

Locate the application you want to run and click "Open."

Click “OK” to save the changes.

单击“确定”保存更改。

Click "OK."

Click “OK” one more time to finish the task creation process.

再单击一次“确定”以完成任务创建过程。

Click "OK" to save changes.

After you create the task, that’s all you need to do for this part. If you want to make sure the task runs as expected, select the “Task Scheduler Library,” right-click on the task in the list, and then click “Run” from the context menu.

创建任务之后,这就是您要做的所有事情。 如果要确保任务按预期运行,请选择“任务计划程序库”,右键单击列表中的任务,然后从上下文菜单中单击“运行”。

Find the task, right-click on it, and click "Run" to test that it works.

Once all systems are go, close Task Scheduler, taking note of the name you used for the task.

所有系统运行完毕后,关闭Task Scheduler,并记下您用于该任务的名称。

如何创建快捷方式以启动任务 (How to Create the Shortcut to Start the Task)

Now that you’ve successfully made the task that will open the application, it’s time to create a shortcut that will run the task.

现在您已经成功完成了将打开应用程序的任务,现在该创建一个可以运行该任务的快捷方式了。

Right-click an empty spot on the Desktop and then select New > Shortcut from the context menu.

右键单击桌面上的空白处,然后从上下文菜单中选择“新建”>“快捷方式”。

Create a new Shortcut on the desktop.

In the window that appears, we need to type in the command that runs the scheduled task, replacing <taskName> with the task name we used from earlier. Be sure to keep the quotations around the name. It should look like this:

在出现的窗口中,我们需要输入运行计划任务的命令,将<taskName>替换为之前使用的任务名称。 确保在名称周围使用引号。 它看起来应该像这样:

schtasks /run /tn "<taskName>"

Click “Next” after you enter the command.

输入命令后,单击“下一步”。

Type in the following command, making sure to use the name of the task you created earlier.

Give the new shortcut a useful name and click “Finish” to create it.

给新的快捷方式起一个有用的名称,然后单击“完成”以创建它。

Give the shortcut a name and click "Finish."

Now, the desktop has a shortcut icon that will run the task that launches the application in Administrator mode—without a UAC prompt—when you double-click on it.

现在,桌面上有一个快捷方式图标,当您双击它时,该图标将运行在管理员模式下启动应用程序的任务(没有UAC提示)。

Voila! A new shortcut that opens the application.

However, the fun doesn’t end here. If you want to tweak it a bit more, right-click the shortcut and then select “Properties” from the context menu.

但是,乐趣并没有就此结束。 如果您想对其进行更多调整,请右键单击该快捷方式,然后从上下文菜单中选择“属性”。

Open the Properties menu to tweak the shortcut even further.

Because the shortcut runs a command to start the task, Command Prompt will open for an instance, run the schtasks command, and then close before the application opens. If you want, you can set it to minimize when you open the shortcut, so Command Prompt doesn’t flash on the screen.

由于快捷方式运行命令来启动任务,因此命令提示符将为实例打开,运行schtasks命令,然后在应用程序打开之前关闭。 如果需要,可以在打开快捷方式时将其设置为最小,这样命令提示符不会在屏幕上闪烁。

Click the drop-down menu next to “Run” and choose “Minimized” from the list below.

单击“运行”旁边的下拉菜单,然后从下面的列表中选择“最小化”。

Change the value next to "Run" to "Minimized" so that Command Prompt doesn't flash on the screen when run.

Next, click “Change Icon” to personalize the shortcut’s icon.

接下来,单击“更改图标”以个性化快捷方式的图标。

Next, change the icon.

If you receive this message, don’t worry, just click “OK” to continue.

如果您收到此消息,请不要担心,只需单击“确定”继续。

Click "OK" if you receive this warning.

Now, you can either scroll through the suggested icons or click “Browse” and locate the application that you’re opening with the task. Select “Open” to see its icons.

现在,您可以滚动浏览建议的图标,或单击“浏览”并找到要通过任务打开的应用程序。 选择“打开”以查看其图标。

Locate the application file and click "Open" to see a list of its icons.

Select the application’s icon and click “OK” to save the changes.

选择应用程序的图标,然后单击“确定”以保存更改。

Choose an icon from the list and click "OK" when done.

Select “OK” one more time to save all changes and return to the desktop.

再选择一次“确定”保存所有更改并返回桌面。

Click "OK" to save changes and close the Properties menu.

Now you have a shortcut that looks nice—even resembling the application you’re opening—and doesn’t have a pesky UAC prompt to get in your way.

现在,您有了一个看起来不错的快捷方式-甚至类似于您正在打开的应用程序-并且没有烦人的UAC提示妨碍您前进。

Look at that beautiful icon. It resembles the regular application's icon exactly.

That’s all there is to it. Repeat this process for any other applications you regularly use to bypass the UAC prompts.

这里的所有都是它的。 对您经常用来绕过UAC提示的任何其他应用程序重复此过程。

翻译自: https://www.howtogeek.com/638652/create-administrator-mode-shortcuts-without-uac-prompts-in-windows-10/

uac管理员程序

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

智能推荐

稀疏编码的数学基础与理论分析-程序员宅基地

文章浏览阅读290次,点赞8次,收藏10次。1.背景介绍稀疏编码是一种用于处理稀疏数据的编码技术,其主要应用于信息传输、存储和处理等领域。稀疏数据是指数据中大部分元素为零或近似于零的数据,例如文本、图像、音频、视频等。稀疏编码的核心思想是将稀疏数据表示为非零元素和它们对应的位置信息,从而减少存储空间和计算复杂度。稀疏编码的研究起源于1990年代,随着大数据时代的到来,稀疏编码技术的应用范围和影响力不断扩大。目前,稀疏编码已经成为计算...

EasyGBS国标流媒体服务器GB28181国标方案安装使用文档-程序员宅基地

文章浏览阅读217次。EasyGBS - GB28181 国标方案安装使用文档下载安装包下载,正式使用需商业授权, 功能一致在线演示在线API架构图EasySIPCMSSIP 中心信令服务, 单节点, 自带一个 Redis Server, 随 EasySIPCMS 自启动, 不需要手动运行EasySIPSMSSIP 流媒体服务, 根..._easygbs-windows-2.6.0-23042316使用文档

【Web】记录巅峰极客2023 BabyURL题目复现——Jackson原生链_原生jackson 反序列化链子-程序员宅基地

文章浏览阅读1.2k次,点赞27次,收藏7次。2023巅峰极客 BabyURL之前AliyunCTF Bypassit I这题考查了这样一条链子:其实就是Jackson的原生反序列化利用今天复现的这题也是大同小异,一起来整一下。_原生jackson 反序列化链子

一文搞懂SpringCloud,详解干货,做好笔记_spring cloud-程序员宅基地

文章浏览阅读734次,点赞9次,收藏7次。微服务架构简单的说就是将单体应用进一步拆分,拆分成更小的服务,每个服务都是一个可以独立运行的项目。这么多小服务,如何管理他们?(服务治理 注册中心[服务注册 发现 剔除])这么多小服务,他们之间如何通讯?这么多小服务,客户端怎么访问他们?(网关)这么多小服务,一旦出现问题了,应该如何自处理?(容错)这么多小服务,一旦出现问题了,应该如何排错?(链路追踪)对于上面的问题,是任何一个微服务设计者都不能绕过去的,因此大部分的微服务产品都针对每一个问题提供了相应的组件来解决它们。_spring cloud

Js实现图片点击切换与轮播-程序员宅基地

文章浏览阅读5.9k次,点赞6次,收藏20次。Js实现图片点击切换与轮播图片点击切换<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <script type="text/ja..._点击图片进行轮播图切换

tensorflow-gpu版本安装教程(过程详细)_tensorflow gpu版本安装-程序员宅基地

文章浏览阅读10w+次,点赞245次,收藏1.5k次。在开始安装前,如果你的电脑装过tensorflow,请先把他们卸载干净,包括依赖的包(tensorflow-estimator、tensorboard、tensorflow、keras-applications、keras-preprocessing),不然后续安装了tensorflow-gpu可能会出现找不到cuda的问题。cuda、cudnn。..._tensorflow gpu版本安装

随便推点

物联网时代 权限滥用漏洞的攻击及防御-程序员宅基地

文章浏览阅读243次。0x00 简介权限滥用漏洞一般归类于逻辑问题,是指服务端功能开放过多或权限限制不严格,导致攻击者可以通过直接或间接调用的方式达到攻击效果。随着物联网时代的到来,这种漏洞已经屡见不鲜,各种漏洞组合利用也是千奇百怪、五花八门,这里总结漏洞是为了更好地应对和预防,如有不妥之处还请业内人士多多指教。0x01 背景2014年4月,在比特币飞涨的时代某网站曾经..._使用物联网漏洞的使用者

Visual Odometry and Depth Calculation--Epipolar Geometry--Direct Method--PnP_normalized plane coordinates-程序员宅基地

文章浏览阅读786次。A. Epipolar geometry and triangulationThe epipolar geometry mainly adopts the feature point method, such as SIFT, SURF and ORB, etc. to obtain the feature points corresponding to two frames of images. As shown in Figure 1, let the first image be ​ and th_normalized plane coordinates

开放信息抽取(OIE)系统(三)-- 第二代开放信息抽取系统(人工规则, rule-based, 先抽取关系)_语义角色增强的关系抽取-程序员宅基地

文章浏览阅读708次,点赞2次,收藏3次。开放信息抽取(OIE)系统(三)-- 第二代开放信息抽取系统(人工规则, rule-based, 先关系再实体)一.第二代开放信息抽取系统背景​ 第一代开放信息抽取系统(Open Information Extraction, OIE, learning-based, 自学习, 先抽取实体)通常抽取大量冗余信息,为了消除这些冗余信息,诞生了第二代开放信息抽取系统。二.第二代开放信息抽取系统历史第二代开放信息抽取系统着眼于解决第一代系统的三大问题: 大量非信息性提取(即省略关键信息的提取)、_语义角色增强的关系抽取

10个顶尖响应式HTML5网页_html欢迎页面-程序员宅基地

文章浏览阅读1.1w次,点赞6次,收藏51次。快速完成网页设计,10个顶尖响应式HTML5网页模板助你一臂之力为了寻找一个优质的网页模板,网页设计师和开发者往往可能会花上大半天的时间。不过幸运的是,现在的网页设计师和开发人员已经开始共享HTML5,Bootstrap和CSS3中的免费网页模板资源。鉴于网站模板的灵活性和强大的功能,现在广大设计师和开发者对html5网站的实际需求日益增长。为了造福大众,Mockplus的小伙伴整理了2018年最..._html欢迎页面

计算机二级 考试科目,2018全国计算机等级考试调整,一、二级都增加了考试科目...-程序员宅基地

文章浏览阅读282次。原标题:2018全国计算机等级考试调整,一、二级都增加了考试科目全国计算机等级考试将于9月15-17日举行。在备考的最后冲刺阶段,小编为大家整理了今年新公布的全国计算机等级考试调整方案,希望对备考的小伙伴有所帮助,快随小编往下看吧!从2018年3月开始,全国计算机等级考试实施2018版考试大纲,并按新体系开考各个考试级别。具体调整内容如下:一、考试级别及科目1.一级新增“网络安全素质教育”科目(代..._计算机二级增报科目什么意思

conan简单使用_apt install conan-程序员宅基地

文章浏览阅读240次。conan简单使用。_apt install conan