[英]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.