where can we download the script to use and thanks this is extremely helpful , also Get-Package at the end is not working for me example NotePad ++ as a test , Also now running the Registry uninstall with silent Switch app is removed but the reg key still shows from $unins
We have an article that includes a removal script here: help.pdq.com/hc/en-us/articles/360043283251-Uninstalling-software-based-on-the-program-name It sounds like the uninstaller for the application didn't remove the registry keys, so you'll need to remove those yourself.
The first thing I would recommend is using the flash uninstaller, this just works and does not care if the uninstall string is an exe or an msi. If you are wanting to do this with powershell a lot of this would be the same. The following to lines would search in both machine locations and find if flash is installed or not. $Path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall","HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall" Get-ChildItem -Path $Path -ErrorAction SilentlyContinue | Get-ItemProperty | Where-Object {$_.DisplayName -like "*Adobe Flash*"} Depending on how it was installed the uninstall would be the MSI silent params, if it is an EXE you would need to supply different silent params. If you are looking for the OCX specifically the idea is the same, It can be in either syswow64 or system32 so the following command will return the directory and filename of each ocx found on the machine. Get-ChildItem "C:\Windows\*\Macromed\Flash\*.ocx" | select Directory, Name
If the user is currently logged on, it should. The third hive it is loading is for applications installed for the user profile. If nobody is logged on to the computer then it will not catch them.
Very clean explanation and finally i found an usefull script, thanks
how to remove windows 10 default app from all users
Superb! Does it work on windows 11?
Yes, the registry location that is being looked up is the same in both Windows 10 and 11. Hope that helps!
where can we download the script to use and thanks this is extremely helpful , also Get-Package at the end is not working for me example NotePad ++ as a test , Also now running the Registry uninstall with silent Switch app is removed but the reg key still shows from $unins
We have an article that includes a removal script here: help.pdq.com/hc/en-us/articles/360043283251-Uninstalling-software-based-on-the-program-name
It sounds like the uninstaller for the application didn't remove the registry keys, so you'll need to remove those yourself.
Do you have one for Adobe flash? I know there is a KB for it, but I trying to find or do one to look for .ocx
The first thing I would recommend is using the flash uninstaller, this just works and does not care if the uninstall string is an exe or an msi.
If you are wanting to do this with powershell a lot of this would be the same. The following to lines would search in both machine locations and find if flash is installed or not.
$Path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall","HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
Get-ChildItem -Path $Path -ErrorAction SilentlyContinue | Get-ItemProperty | Where-Object {$_.DisplayName -like "*Adobe Flash*"}
Depending on how it was installed the uninstall would be the MSI silent params, if it is an EXE you would need to supply different silent params.
If you are looking for the OCX specifically the idea is the same, It can be in either syswow64 or system32 so the following command will return the directory and filename of each ocx found on the machine.
Get-ChildItem "C:\Windows\*\Macromed\Flash\*.ocx" | select Directory, Name
Do you know if this works for apps installed on the user profile, like Opera?
If the user is currently logged on, it should. The third hive it is loading is for applications installed for the user profile. If nobody is logged on to the computer then it will not catch them.