If you're having issues applying new kiosk profiles on devices, it can be helpful to remove previously applied profiles as well as their remnants before re-attempting profile deployment. It can also be helpful to apply the profile using the Recast Agent Route.
To remove kiosk profiles and remnants:
1. Remove applied profiles from devices.
2. Run one of the two following scripts against the device or device collection to clean up any remnants.
NOTE: These scripts should only be run after applied kiosk profiles are removed from devices.
Script if Recast Agent or Right Click Tools is installed on the device
# Removes Remnants of previously applied kiosk profiles post profile removal
Remove-Item -Path "C:\Program Files\Recast Software\Configurator" -Force -Recurse
Remove-Item -Path "C:\Program Files\Recast Software\Shell" -Force -Recurse
Remove-Item -Path "C:\ProgramData\Recast Software\Configurator" -Force -Recurse
Remove-Item -Path "HKLM:\SOFTWARE\Recast Software\Configurator" -Force -Recurse
Remove-Item -Path "HKLM:\SOFTWARE\Recast Software\Shell" -Force -Recurse
Script if no other Recast components are on the device
# Removes Remnants of previously applied kiosk profiles post profile removal including license files
Remove-Item -Path "C:\Program Files\Recast Software\Configurator" -Force -Recurse
Remove-Item -Path "C:\Program Files\Recast Software\Shell" -Force -Recurse
Remove-Item -Path "C:\ProgramData\Recast Software\Configurator" -Force -Recurse
Remove-Item -Path "C:\ProgramData\Recast Software\Licenses" -Force -Recurse
Remove-Item -Path "HKLM:\SOFTWARE\Recast Software\Configurator" -Force -Recurse
Remove-Item -Path "HKLM:\SOFTWARE\Recast Software\Shell" -Force -Recurse