简体   繁体   English

使用管理员权限设置自定义 shell

[英]Setting custom shell with admin privileges

I am able to set an application to launch on boot-up using custom shell in Windows 10(Powershell script) to achieve Kiosk mode.我可以使用 Windows 10(Powershell 脚本)中的自定义 shell 将应用程序设置为在启动时启动,以实现 Kiosk 模式。

I want it to run as 'Admin', for that I disabled UAC and made it elevated in application manifest file.我希望它以“管理员”身份运行,因为我禁用了 UAC 并在应用程序清单文件中将其提升。 When I start the system a black screen pops up and the application is not visible in task manager as well(it seems application not started).当我启动系统时,会弹出一个黑屏,并且在任务管理器中也看不到该应用程序(似乎应用程序未启动)。

If I set it not to run as 'Admin' then it is working fine but it will not be running as elevated.如果我将它设置为不以“管理员”身份运行,则它运行良好,但不会以提升的身份运行。

Does anybody have any idea how to launch application in admin mode using custom shell?有人知道如何使用自定义 shell 在管理模式下启动应用程序吗?

Thanks, Soma谢谢,索玛

I've had the same problem with ShellLauncher on Windows 10. The solution however is the same.我在 Windows 10 上使用 ShellLauncher 遇到了同样的问题。但是解决方案是一样的。 Turn off User Account Control (UAC).关闭用户帐户控制 (UAC)。 Then, create a VBScript file with the following content, named as, say, 'launcher.vbs':然后,创建一个包含以下内容的 VBScript 文件,命名为“launcher.vbs”:

set shell = CreateObject("wscript.shell")
cmd = "{Path to your Exe}\App.exe"
shell.run cmd,,true

And set the shell as "wscript.exe {path to your launcher}.vbs"并将外壳设置为“wscript.exe {path to your launcher}.vbs”

Were you able to resolve this problem?你能解决这个问题吗? I am facing the same issue and not able to find any solution for this.我面临同样的问题,无法为此找到任何解决方案。 Any help would be appreciated.任何帮助,将不胜感激。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 通用测试管理员权限 - Universal test for Admin privileges 如何在 Azure Devops 管道中以管理员权限运行 PowerShell 任务 - How to run PowerShell task with admin privileges in Azure Devops pipeline 以管理员权限运行PowerShell脚本并绕过执行策略 - Run PowerShell script with admin privileges and bypass execution policy 如何从当前文件夹以管理员权限运行 PowerShell? - How to run PowerShell with admin privileges from current folder? 如何在没有管理员权限的情况下使用 Powershell 或 C# 重新启动图形驱动程序 - How to restart graphics drivers with Powershell or C# without admin privileges IIS Url的Power Shell脚本重写,用于设置自定义响应操作状态代码 - Power shell scripting for IIS Url Rewrite for setting Custom Response Action Status Code 本地管理员帐户和具有管理员权限的用户之间的区别。 用于加密 GPO Bitlocker - Difference between a local admin account and a user with admin privileges. for encryption GPO Bitlocker 在远程VM上以管理员身份打开Power Shell - Open Power Shell as Admin on remote VM 启动管理外壳,然后执行多个命令 - Starting an admin shell then executing multiple commands 如何从批处理文件以管理员权限和高优先级/实时启动进程? - How can I start a process with admin privileges and in high-priority/real-time from a batch file?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM