在 Windows 10 分配的访问权限中运行 Chrome 自助服务终端模式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33157169/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Run Chrome kiosk mode in windows 10 assigned access
提问by NewComer
It is a good news that Windows 10 assigned access support running Desktop Application(Win 8.1 only support running universal apps). I want to run Chrome's kiosk mode using --kiosk in command line.
好消息是,Windows 10 分配的访问权限支持运行桌面应用程序(Win 8.1 仅支持运行通用应用程序)。我想在命令行中使用 --kiosk 运行 Chrome 的 kiosk 模式。
The bottom of this article have a tutorial. https://technet.microsoft.com/en-us/library/mt219051(v=vs.85).aspx
本文底部有教程。 https://technet.microsoft.com/en-us/library/mt219051(v=vs.85).aspx
However, I am very new to Powershell. Can anyone explain
但是,我对 Powershell 很陌生。谁能解释一下
how to launch Chrome's kiosk mode by powershell? My command line is "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --kiosk http://my.website.com
how to use the script at the bottom of the article?
如何通过 powershell 启动 Chrome 的 kiosk 模式?我的命令行是“C:\Program Files (x86)\Google\Chrome\Application\chrome.exe”--kiosk http://my.website.com
如何使用文章底部的脚本?
Thanks.
谢谢。
回答by p4gs
This worked for me, but I had to change this line:
这对我有用,但我不得不改变这一行:
"`nEnabled is set to " + $DefaultShellObject.IsEnabled()
To this:
对此:
"`nEnabled is set to " + $DefaultShellObject.Shell
回答by Peg
I know this is months after you asked but I just did this and it is working. Your line should look like this:
我知道这是在您提出要求后的几个月,但我刚刚这样做并且它正在起作用。您的行应如下所示:
$ShellLauncherClass.SetCustomShell($KioskUser_SID, "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe --kiosk http://my.website.com", ($null), ($null), $restart_shell)