Forum Discussion
AB21805
Apr 07, 2022Bronze Contributor
how to remove Lenovo Welcome app via intune
Hi all, I want to remove Lenovo Welcome software on all devices via intune Any ideas on how when I go into HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall I cant seem to find Lenov...
- Apr 07, 2022Create a script that runs the uninstall.ps1, like a uninstall.cmd, with powershell.exe -executionpolicy bypass -file "C:\ProgramData\Lenovo\ImController\Plugins\LenovoFirstRunExperiencePackage\x86)\uninstall.ps1" Add that together with an empty install.cmd in a folder and create a package from that with a detection on the uninstall.ps1 file
Apr 08, 2022
You marked my response as solution, does it work now?
AB21805
Apr 08, 2022Bronze Contributor
I havent tried the extra line though - exit 0
- Apr 08, 2022The exit 0 should be on a new line, not on the same line as the uninstall.ps1 command (Perhaphs it's the formatting of the forum, but it needs to be on a seperate line)
Proactive Remidiation will keep on checking, so it will remove it and when a user would install it again it will uninstall it again etc. If you add a PowerShell script to Endpoint Manager.. (https://endpoint.microsoft.com/#blade/Microsoft_Intune_DeviceSettings/DevicesMenu/powershell) It will only run once when it's successfull and never run again. - AB21805Apr 08, 2022Bronze ContributorThey will be all new devices, okay so if I do this as a script:
powershell.exe -executionpolicy bypass -file "C:\ProgramData\Lenovo\ImController\Plugins\LenovoFirstRunExperiencePackage\x86)\uninstall.ps exit 0
Would this stop the error? (have I included the exit 0 correctly)
When it comes to proactive remediation why would this be used instead of scripts? - Apr 08, 2022But won't there be any new Lenovo laptops with the software installed? Do you order them with a clean Windows 10/11 installation or is that no option when ordering?
Otherwise you can create a Proactive Remediation for it if you have Windows 10/11 Enterprise, something like this
Detection
if (test-path "C:\ProgramData\Lenovo\ImController\Plugins\LenovoFirstRunExperiencePackage\x86\uninstall.ps1") {
write-Host Lenovo Welcome found
exit 1
}
Else {
Write-Host No Lenovo welcome found
exit 0
}
Remediation script:
powershell.exe -executionpolicy bypass -file "C:\ProgramData\Lenovo\ImController\Plugins\LenovoFirstRunExperiencePackage\x86\uninstall.ps1 "