ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Anyone have any Powershell to remove quicktime

    Scheduled Pinned Locked Moved IT Discussion
    16 Posts 5 Posters 3.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Alex Sage
      last edited by

      I only found it on one computer, so I just removed it by hand 🙂

      1 Reply Last reply Reply Quote 0
      • RojoLocoR
        RojoLoco
        last edited by

        @DustinB3403 said in Anyone have any Powershell to remove quicktime:

        So here's the solution.

        $quicktime = Get-WmiObject -Class Win32_Product | Where-object { $_.name -match 'Quicktime'}
        $quicktime.Uninstall()
        

        Thanks for the assist @coliver

        After I run that, I'm getting an error: "You cannot call a method on a null-valued expression."

        Any ideas? I know less than jack shit about PS, I'm sure I'm missing something painfully obvious.

        coliverC 1 Reply Last reply Reply Quote 0
        • coliverC
          coliver @RojoLoco
          last edited by

          @RojoLoco said in Anyone have any Powershell to remove quicktime:

          @DustinB3403 said in Anyone have any Powershell to remove quicktime:

          So here's the solution.

          $quicktime = Get-WmiObject -Class Win32_Product | Where-object { $_.name -match 'Quicktime'}
          $quicktime.Uninstall()
          

          Thanks for the assist @coliver

          After I run that, I'm getting an error: "You cannot call a method on a null-valued expression."

          Any ideas? I know less than jack shit about PS, I'm sure I'm missing something painfully obvious.

          It probably didn't find an object named Quicktime would be my guess. Run the first command by itself to see it returns anything.

          RojoLocoR 1 Reply Last reply Reply Quote 1
          • DustinB3403D
            DustinB3403
            last edited by

            It appears to only work when run locally, which if you're attempting to remotely push it, might not work.

            I'm looking at other solutions as well.

            coliverC 1 Reply Last reply Reply Quote 0
            • coliverC
              coliver @DustinB3403
              last edited by

              @DustinB3403 said in Anyone have any Powershell to remove quicktime:

              It appears to only work when run locally, which if you're attempting to remotely push it, might not work.

              I'm looking at other solutions as well.

              Was there an error? Should work remotely as well.

              1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403
                last edited by

                No output on my co-workers system from his side, the application just remained.

                1 Reply Last reply Reply Quote 0
                • RojoLocoR
                  RojoLoco @coliver
                  last edited by

                  @coliver said in Anyone have any Powershell to remove quicktime:

                  @RojoLoco said in Anyone have any Powershell to remove quicktime:

                  @DustinB3403 said in Anyone have any Powershell to remove quicktime:

                  So here's the solution.

                  $quicktime = Get-WmiObject -Class Win32_Product | Where-object { $_.name -match 'Quicktime'}
                  $quicktime.Uninstall()
                  

                  Thanks for the assist @coliver

                  After I run that, I'm getting an error: "You cannot call a method on a null-valued expression."

                  Any ideas? I know less than jack shit about PS, I'm sure I'm missing something painfully obvious.

                  It probably didn't find an object named Quicktime would be my guess. Run the first command by itself to see it returns anything.

                  After running the first part, it just goes back to the prompt, so I guess it's all gone. I would have sworn that the boss wouldn't have gotten around to uninstalling it yet (used PDQ inventory last week to find all the quicktime. I manually uninstalled 3, the boss was #4.)

                  coliverC 1 Reply Last reply Reply Quote 0
                  • coliverC
                    coliver @RojoLoco
                    last edited by

                    @RojoLoco said in Anyone have any Powershell to remove quicktime:

                    @coliver said in Anyone have any Powershell to remove quicktime:

                    @RojoLoco said in Anyone have any Powershell to remove quicktime:

                    @DustinB3403 said in Anyone have any Powershell to remove quicktime:

                    So here's the solution.

                    $quicktime = Get-WmiObject -Class Win32_Product | Where-object { $_.name -match 'Quicktime'}
                    $quicktime.Uninstall()
                    

                    Thanks for the assist @coliver

                    After I run that, I'm getting an error: "You cannot call a method on a null-valued expression."

                    Any ideas? I know less than jack shit about PS, I'm sure I'm missing something painfully obvious.

                    It probably didn't find an object named Quicktime would be my guess. Run the first command by itself to see it returns anything.

                    After running the first part, it just goes back to the prompt, so I guess it's all gone. I would have sworn that the boss wouldn't have gotten around to uninstalling it yet (used PDQ inventory last week to find all the quicktime. I manually uninstalled 3, the boss was #4.)

                    Or that it was installed with a different name. That's the function of the -match switch. It must be exactly 'Quicktime' or it won't assign anything.

                    1 Reply Last reply Reply Quote 0
                    • wrx7mW
                      wrx7m
                      last edited by

                      If you are working remotely, you can try using WMI to get the actual name (and uninstall the application for that matter).

                      https://community.spiceworks.com/how_to/179-using-a-command-line-to-uninstall-software-on-remote-pcs

                      They actually deal with Quicktime as an example on that walk-through.

                      1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403
                        last edited by DustinB3403

                        OK so the powershell method does work remotely, when you kill the quicktime process.

                        Updated PS1.

                        Stop-Process -name QuickTimePlayer
                        $quicktime = Get-WmiObject -Class Win32_Product | Where-object { $_.name -match 'Quicktime 7'}
                        $quicktime.Uninstall()
                        
                        1 Reply Last reply Reply Quote 4
                        • 1 / 1
                        • First post
                          Last post