This process is used for a given room to identify devices, validate uninstall success, validate registry cleanup, and build the final reinstall collection.
Devices that fail at any validation point are written to Manual_Touch.csv for manual remediation, with a separate column sharing the fail location. After correction, Manual_Touch.csv can be used to scope the LanSchool reinstall deployment.
Devices that pass all validation steps are written to Final_Reinstall_Collection.csv and can be used to scope the LanSchool reinstall deployment.
After that, 4_Final_Cleanup.bat is used to clean up any files from the workflow.
1_Post_Uninstall_Check.bat2_RegRemoval.bat3_Post_RegRemoval_Check.bat4_Final_Cleanup.bat
All reporting files are written to:
\fileserver\share\LanSchoolReporting%REPORT_NAME%.csv
Uninstall_Success.csvFinal_Reinstall_Collection.csv
Manual_Touch.csv
Run the LanSchool uninstall against the scoped room collection.
This is to validate whether LanSchool artifacts are still present. Scope that same room collection used earlier in step 1.
This script checks for the following LanSchool artifacts:
C:\Program Files (x86)\LanSchool\Teacher.exe [Teacher install file]
C:\Program Files (x86)\LanSchool\Student.exe [Student install file]
-
If either artifact still exists:
- the device is written to
Manual_Touch.csv FailLocationis set toLanSchool App Uninstall
- the device is written to
-
If neither artifact exists:
- the device is written to
Uninstall_Success.csv
- the device is written to
This step confirms whether the application uninstall actually removed the LanSchool install artifacts.
Use the devices listed in:
\fileserver\share\LanSchoolReporting\Uninstall_Success.csv
Build an SCCM collection from those devices and scope 2_RegRemoval.bat to that collection.
This script deletes the LanSchool installer and application registry keys.
HKLM\SOFTWARE\Classes\Installer\Products\BABAE78ECF4207D47A4E62323550704A
HKCU\SOFTWARE\Classes\Installer\Products\BABAE78ECF4207D47A4E62323550704A
HKLM\SOFTWARE\LanSchool
HKLM\SOFTWARE\WOW6432Node\LanSchool
It also targets both 32-bit and 64-bit views where applicable.
This step clears remaining LanSchool registry presence before reinstall.
Use the devices listed in:
\fileserver\share\LanSchoolReporting\Uninstall_Success.csv
Use that same SCCM collection from those devices and scope 3_Post_RegRemoval_Check.bat to that collection.
This script validates whether the following registry keys still exist:
HKLM\SOFTWARE\Classes\Installer\Products\BABAE78ECF4207D47A4E62323550704A
HKCU\SOFTWARE\Classes\Installer\Products\BABAE78ECF4207D47A4E62323550704A
HKLM\SOFTWARE\LanSchool
HKLM\SOFTWARE\WOW6432Node\LanSchool
-
If the registry keys do not exist:
- the device is written to
Final_Reinstall_Collection.csv
- the device is written to
-
If any registry key still exists:
- the device is written to
Manual_Touch.csv FailLocationis set toRegistry Removal
- the device is written to
This step confirms whether registry cleanup succeeded.
These devices:
- successfully uninstalled LanSchool
- successfully cleared the LanSchool registry presence
- are ready to be used as the SCCM collection for reinstall
These devices failed somewhere in the process and require manual remediation before being used to scope the new reinstall.
Possible failure locations:
LanSchool App UninstallRegistry Removal
Removes these files after update completes:
Manual_Touch.csv
Uninstall_Success.csv
Final_Reinstall_Collection.csv
- Run LanSchool uninstall for the target room.
- Run
1_Post_Uninstall_Check.bat.- If LanSchool artifacts still exist, device goes to
Manual_Touch.csv. - If uninstall looks clean, device goes to
Uninstall_Success.csv.
- If LanSchool artifacts still exist, device goes to
- Build an SCCM collection from
Uninstall_Success.csv. - Run
2_RegRemoval.batagainst that collection to remove registry keys. - Run
3_Post_RegRemoval_Check.batagainst that same scoped set.- If registry is cleared, device goes to
Final_Reinstall_Collection.csv. - If registry remains, device goes to
Manual_Touch.csv.
- If registry is cleared, device goes to
- Use
Final_Reinstall_Collection.csvto build the final reinstall collection and install the new version. - Manually remediate anything listed in
Manual_Touch.csvand then, after resolution, add that list to the new final reinstall collection. - Run
4_Final_Cleanup.batto remove the reporting files so the workflow is cleaned up for future LanSchool update runs.
Manual_Touch.csvis the catch-all list for devices that fail validation.Final_Reinstall_Collection.csvis the final clean set for reinstall targeting.Uninstall_Success.csvis only the intermediate collection used between uninstall validation and registry cleanup.