简体   繁体   English

在 Windows 10 分配的访问权限中运行 Chrome 自助服务终端模式

[英]Run Chrome kiosk mode in windows 10 assigned access

It is a good news that Windows 10 assigned access support running Desktop Application(Win 8.1 only support running universal apps).好消息是,Windows 10 分配的访问权限支持运行桌面应用程序(Win 8.1 仅支持运行通用应用程序)。 I want to run Chrome's kiosk mode using --kiosk in command line.我想在命令行中使用 --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.但是,我对 Powershell 很陌生。 Can anyone explain谁能解释一下

  1. how to launch Chrome's kiosk mode by powershell?如何通过 powershell 启动 Chrome 的 kiosk 模式? My command line is "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe" --kiosk http://my.website.com我的命令行是“C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe”--kiosk http://my.website.com

  2. how to use the script at the bottom of the article?如何使用文章底部的脚本?

Thanks.谢谢。

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

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)

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM