Uninstalling Software | 10 | PowerShell Tutorials with PDQ.com

Sdílet
Vložit

Komentáře • 10

  • @luksmario
    @luksmario Před 2 lety +1

    Very clean explanation and finally i found an usefull script, thanks

  • @sharankumarsharan
    @sharankumarsharan Před 3 lety +1

    how to remove windows 10 default app from all users

  • @nesuleo1779
    @nesuleo1779 Před rokem +1

    Superb! Does it work on windows 11?

    • @pdq
      @pdq  Před rokem

      Yes, the registry location that is being looked up is the same in both Windows 10 and 11. Hope that helps!

  • @abrickwo
    @abrickwo Před rokem

    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

    • @pdq
      @pdq  Před rokem +1

      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.

  • @gonzilla8818
    @gonzilla8818 Před 3 lety

    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

    • @pdq
      @pdq  Před 3 lety

      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

  • @kevinb1574
    @kevinb1574 Před 2 lety

    Do you know if this works for apps installed on the user profile, like Opera?

    • @pdq
      @pdq  Před 2 lety

      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.