您现在的位置是:网站首页> 编程资料编程资料
PowerShell中以管理员权限启动应用程序的方法_PowerShell_
2023-05-26
324人已围观
简介 PowerShell中以管理员权限启动应用程序的方法_PowerShell_
又一个PowerShell比CMD好的地方。在CMD中用管理员权限来启动应用程序很复杂,但在PowerShell中就简单多了,如下:
复制代码 代码如下:
Start-Process notepad -Verb runas
Start-Process "$PSHOME\powershell.exe" -Verb runas
您可能感兴趣的文章:
相关内容
- PowerShell中的函数重载示例_PowerShell_
- PowerShell中获取当前运行脚本路径的方法_PowerShell_
- PowerShell中使用.NET将程序集加入全局程序集缓存_PowerShell_
- PowerShell实现参数互斥示例_PowerShell_
- PowerShell实现动态获取当前脚本运行时消耗的内存_PowerShell_
- PowerShell Continue语句使用示例_PowerShell_
- PowerShell实现按条件终止管道的方法_PowerShell_
- Powershell互斥参数使用实例_PowerShell_
- PowerShell实现统计函数嵌套深度_PowerShell_
- PowerShell在控制台输出特殊符号的方法_PowerShell_
