windows – 如何使用当前文件夹的管理员权限运行PowerShell?
发布时间:2020-12-14 02:13:43 所属栏目:Windows 来源:网络整理
导读:如何从具有管理员权限的当前文件夹中的上下文菜单(按住Shift键)运行Power Shell?有没有比在 Windows注册表中输入任何代码更简单的方法? 解决方法 我最近遇到了同样的问题.不幸的是,答案并不明显且容易找到.互联网上有一些脚本但是我已经工作了. 下面我将向
如何从具有管理员权限的当前文件夹中的上下文菜单(按住Shift键)运行Power
Shell?有没有比在
Windows注册表中输入任何代码更简单的方法?
解决方法
我最近遇到了同样的问题.不幸的是,答案并不明显且容易找到.互联网上有一些脚本但是我已经工作了.
下面我将向您呈现您可以粘贴到任何带有reg扩展名并运行的文件的脚本.之后,您将能够使用当前打开文件夹的管理员权限运行powershell(您必须按住shift,然后右键单击文件夹中的空白区域. 码: Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOTDirectoryBackgroundshellPowerShellAsAdmin] @="Open PowerShell window here as administrator" "Extended"="" "HasLUAShield"="" "Icon"="powershell.exe" [HKEY_CLASSES_ROOTDirectoryBackgroundshellPowerShellAsAdmincommand] @="C:Windowssystem32WindowsPowerShellv1.0powershell.exe -windowstyle hidden -Command "Start-Process powershell -ArgumentList '-NoExit','-Command cd %V' -Verb runAs"" 上下文菜单视图: (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- windows – 自动输入工具进行QA测试?播放按键和鼠标点击
- winapi – 有没有办法找出win32信号量的当前计数?
- windows – 如何通过WSUS安装PowerShell 3.0或4.0
- windows server 2012配置php环境教程
- winapi – Windows中的Hook系统电源按钮
- ViewMinder方向与Windows Phone 7芒果PhotoCamera
- 在Windows中叠加图标
- Windows Server 2008 R2备份登录失败
- entity-framework – 使用Entity Framework Code First Mig
- windows-server-2008-r2 – 针对Windows Server 2008的Apac
推荐文章
站长推荐
- 在Windows上打印源代码
- 获取Microsoft 10 Edge浏览器Mime类型php
- dll中的c-std :: unique_ptr pimpl生成C4251与vi
- Windows Azure网站上的JSON存储?
- windows-server-2008 – 什么原因导致将受信任的
- 以编程方式将Access(.mdb)文件读入R中,用于Windo
- Windows – Application.Current在ElementHost为
- windows-7 – 通过GP添加快捷方式 – 程序文件与
- Windows计划任务的实用替代方案(小商店)
- windows-server-2008 – 将Windows Server 2008
热点阅读