So I have a simple 3 line ps script and it works perfect in windows but not windows kiosk mode. What I am doing is using kiosk mode to boot directly into the VMware Horizon View client, auto connect to the correct server and pass through credentials! All done via GPO and it works perfectly. However when the user logs off or closes the horizon client they are greeted with a blank screen.
So I wrote this simple script:
Start-Sleep 30 Wait-Process -Name vmware-remotemks start-process shutdown.exe -ArgumentList “/l”
It it is set as a user logon script. When I run it in windows it does what it’s suppose to do. Waits in the background for the horizon client to close or the user to log out of their virtual desktop and then logs off their device, In this case a laptop.
Now when I do the same thing on the same device but in kiosk mode the script loads, but after 30 seconds logs off the laptop even though the client is still active and running. When I check processes it shows it’s running but the script still logs the user off the laptop instead of waiting.
This is the last piece I need to make this perfect for my VDI clients. Any suggestions are welcomed!!
submitted by /u/whycantiremembermyun
[link] [comments]
The post 3 line ps, in kiosk mode win 10 appeared first on How to Code .NET.