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

智能推荐

在ubuntu 8.04下安装Oracle 11g二-程序员宅基地

文章浏览阅读408次。 在ubuntu 8.04下安装Oracle 11g2008年05月22日 星期四 11:02oracle 11g 数据库虽然提供了linux x86的版本,但是支持的linux版本只有Red Hat,Novell and Solaris 这几个,debian 和 ubuntu 不在支持之列,所以在ubuntu下安装就相对麻烦一些,请照着下文的方法一步一步的安装,不

初一计算机知识点下册,初一英语下册语法知识点全汇总-程序员宅基地

文章浏览阅读166次。新东方在线中考网整理了《初一英语下册语法知识点全汇总》,供同学们参考。一. 情态动词can的用法can+动词原形,它不随主语的人称和数而变化。1. 含有can的肯定句:主语+can+谓语动词的原形+其他。2. 含有can的否定句:主语+can't+动词的原形+其他。3. 变一般疑问句时,把can提前:Can+主语+动词原形+其他? 肯定回答:Yes,主语+can。否定回答:No,主语+can't...._七年级下册计算机知识点

NX/UG二次开发—其他—UFUN函数调用Grip程序_uf调用grip-程序员宅基地

文章浏览阅读3k次。在平时开发中,可能会遇到UFUN函数没有的功能,比如创建PTP的加工程序(我目前没找到,哪位大神可以指点一下),可以使用Grip创建PTP,然后用UFUN函数UF_call_grip调用Grip程序。具体如下截图(左侧UFUN,右侧Grip程序):..._uf调用grip

Android RatingBar的基本使用和自定义样式,kotlin中文教程_ratingbar样式修改-程序员宅基地

文章浏览阅读156次。第一个:原生普通样式(随着主题不同,样式会变)第二个:原生普通样式-小icon第三个:自定义RatingBar 颜色第四个:自定义RatingBar DrawableRatingBar 各样式实现===============原生样式原生样式其实没什么好说的,使用系统提供的style 即可<RatingBarstyle="?android:attr/ratingBarStyleIndicator"android:layout_width=“wrap_cont.._ratingbar样式修改

OpenGL环境搭建:vs2017+glfw3.2.1+glad4.5_vs2017的opengl环境搭建(完整篇)-程序员宅基地

文章浏览阅读4.6k次,点赞6次,收藏11次。安装vs2017:参考vs2017下载和安装。安装cmake3.12.3:cmake是一个工程文件生成工具。用户可以使用预定义好的cmake脚本,根据自己的选择(像是Visual Studio, Code::Blocks, Eclipse)生成不同IDE的工程文件。可以从它官方网站的下载页上获取。这里我选择的是Win32安装程序,如图所示:然后就是运行安装程序进行安装就行。配置glfw3...._vs2017的opengl环境搭建(完整篇)

在linux-4.19.78中使用UBIFS_ubifs warning-程序员宅基地

文章浏览阅读976次。MLC NAND,UBIFS_ubifs warning

随便推点

计算机系统内存储器介绍,计算机系统的两种存储器形式介绍-程序员宅基地

文章浏览阅读2.2k次。计算机系统的两种存储器形式介绍时间:2016-1-6计算机系统的存储器一般应包括两个部分;一个是包含在计算机主机中的主存储器,简称内存,它直接和运算器,控制器及输入输出设备联系,容量小,但存取速度快,一般只存放那些急需要处理的数据或正在运行的程序;另一个是包含在外设中的外存储器,简称外存,它间接和运算器,控制器联系,存取速度虽然慢,但存储容量大,是用来存放大量暂时还不用的数据和程序,一旦要用时,就..._计算机存储器系统采用的是主辅结构,主存速度快、容量相对较小,用于 1 分 程序,外

西门子PLC的编程工具是什么?_西门子plc编程软件-程序员宅基地

文章浏览阅读5.6k次。1. STEP 7(Simatic Manager):STEP 7或者Simatic Manager是西门子PLC编程最常用的软件开发环境。4. STEP 7 MicroWin:STEP 7 MicroWn是一款专门针对微型PLC(S7-200系列PLC)的编程软件,是Simatic Manager的简化版。如果需要与PLC系统配合使用,则需要与PLC编程工具进行配合使用。除了上述软件之外,西门子还提供了一些配套软件和工具,如PLC模拟器、硬件调试工具等,以帮助PLC编程人员快速地进行调试和测试。_西门子plc编程软件

HashMap扩容_hashma扩容-程序员宅基地

文章浏览阅读36次。【代码】HashMap扩容。_hashma扩容

Eclipse maven项目中依赖包不全,如何重新加载?_maven资源加载不全,怎么重新加载-程序员宅基地

文章浏览阅读2.9k次。1mvn dependency:copy-dependencies2 项目右键 -> Maven -> Disable Maven Nature3 项目右键 -> Configure -> Convert to Maven Project_maven资源加载不全,怎么重新加载

mysql dml全称中文_MySQL语言分类——DML-程序员宅基地

文章浏览阅读527次。DMLDML的全称是Database management Language,数据库管理语言。主要包括以下操作:insert、delete、update、optimize。本篇对其逐一介绍INSERT数据库表插入数据的方式:1、insert的完整语法:(做项目的过程中将字段名全写上,这样比较容易看懂)单条记录插入语法:insert into table_name (column_name1,......_dml的全称是

【小工匠聊Modbus】04-调试工具-程序员宅基地

文章浏览阅读136次。可以参考: http://git.oschina.net/jrain-group/ 组织下的Java Modbus支持库Modbus-系列文章1、虚拟成对串口(1)下载虚拟串口软件VSPD(可在百度中搜索)image.png(2)打开软件,添加虚拟串口。在设备管理中,看到如下表示添加成功。..._最好用的 modebus调试工具

推荐文章

热门文章

相关标签