All this effort just to auto disable looped playback in VLC.
- Open Local Security Policy
- Select Local Policies
- Select Audit Policy
- Enable Audit process tracking on Success
- Move the powershell script to a location you like.
- Open the XML file
- Change the path to the location of the powershell script
- Open task scheduler
- Click on Import Task...
- Select the customized XML file.