Run Chrome kiosk mode in windows 10 assigned access

夙愿已清 提交于 2020-01-13 02:56:31

问题


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.

The bottom of this article have a tutorial. https://technet.microsoft.com/en-us/library/mt219051(v=vs.85).aspx

However, I am very new to Powershell. Can anyone explain

  1. 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

  2. how to use the script at the bottom of the article?

Thanks.


回答1:


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



回答2:


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)


来源:https://stackoverflow.com/questions/33157169/run-chrome-kiosk-mode-in-windows-10-assigned-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!