Forum Discussion

StudyHack12's avatar
StudyHack12
Copper Contributor
Nov 15, 2021

Can someone create a batch file for me please

 
 

How do I create a batch file that listens to a process and once it"s ended, it logs the user out of the guest user account?

In windows 10 Pro edition

 

Basically I have set up a guest user account with standard user privileges that has a custom user interface - "shell"- called Playnite which is a game library.

Tested if it works, works perfectly. However, I need a batch file that would listen to the process (Playnite.exe) and kick the user out of the guest account once the process (Playnite.exe) has ended.

 

 

Can someone help me with this please?

 

 

Edit: Ideally somehow the cmd prompt pop-up part of the batch file would be invisible so to speak so the user wouldn"t see it before he"s kicked out of the guest account.

No RepliesBe the first to reply

Resources