How To Remotely Uninstall A Program using PowerShell | Uninstall Software using powershell

Поделиться
HTML-код
  • Опубликовано: 4 ноя 2024

Комментарии • 49

  • @Kelvglobal
    @Kelvglobal  3 года назад +1

    Looking to elevate your IT skills to the next level? Check out this amazing course on Mastering IT Systems Administration & Azure Cloud Engineering by Udemy! www.udemy.com/course/mastering-it-systems-administration-azure-cloud-engineering/?referralCode=81DA57AB02F994FFEFA2

    • @BDrumev001
      @BDrumev001 Год назад +1

      Best way to master Win11 is to uninstall, lol gottem

  • @wajayenseporelmundo4588
    @wajayenseporelmundo4588 Год назад

    Hey.. I have bought Become a professional IT System Engineer course. Thanks a lot sir.

    • @Kelvglobal
      @Kelvglobal  Год назад

      Thanks for your support. I appreciate you.

  • @melindarichardson9163
    @melindarichardson9163 2 года назад +1

    Hi. This is awesome for a single machine or two but what if you have a list of computers that need the same software uninstalled. How can I use a list of machines and use psexec to connect to them all?

    • @Kelvglobal
      @Kelvglobal  2 года назад +2

      Hi Melinda, that is a good question. I have been using Psexec for a long time, I only use to connect to just 1 device. To uninstall software on multiple device in my company, we use SCCM, Microsoft Intune or you could use group Policy script.

    • @melindarichardson9163
      @melindarichardson9163 2 года назад

      @@Kelvglobal Thank you for your response. I think I'm going to have to reach out to our engineering department to see if it could be done via SCCM.

    • @johannaileka3701
      @johannaileka3701 2 года назад

      @@Kelvglobal Hello, i would like to find out, can i uninstall an application via Microsoft Intune that was manually deployed/installed?

  • @domuseuropa
    @domuseuropa Год назад +1

    Thank you. Do you know why some Apps wont show Get-WmiObject -Class Win32_Product | Select-Object -Property Name ?

    • @Kelvglobal
      @Kelvglobal  Год назад +2

      Hi, are these apps installed from Microsoft Store? These apps will not display using Get-WmiObject. To display installed store apps use the following command: get-appxpackage

    • @domuseuropa
      @domuseuropa Год назад

      @@Kelvglobal Thank you Bro. nothey are not from MS Store. For example I am trying to get-rid of all the p2p apps installed on corporate laptops.
      Back to gt-appxpackage = How would you pass the uninstall parameters to get-packages ?

    • @Kelvglobal
      @Kelvglobal  Год назад +2

      @@domuseuropa For example, let say we want to uninstall camera app because it is not functioning well.
      You can run the following command Get-AppxPackage -allusers | Select Name, PackageFullName > C:\temp\applist.txt
      This will get all the apps on your device and pipe all the info into applist.txt
      Check the above list applist.txt and find camera in the list
      We can now use the below command to uninstall camera app
      get-appxpackage *Microsoft.WindowsCamera* | remove-appxpackage

    • @domuseuropa
      @domuseuropa Год назад

      @@Kelvglobal My Issue here, non of the Peer to peer apps are not showing on get-appxpackage . the only way I can see them get-package. this is why I wanted to run get-package to uninstall.

  • @Brawn18Bauer
    @Brawn18Bauer 2 года назад

    What are connecting to device, if you only computer, are connecting to your single computer?

  • @sisirasaseendran6474
    @sisirasaseendran6474 2 года назад +1

    how to uninstall programs which starts with name Java ( for example if i have more than program which starts with the name java and i want to uninstall it in a single command) kindly help

    • @Kelvglobal
      @Kelvglobal  2 года назад

      Hi Sisira, Are you trying to uninstall the software from the a specific device or multiple device. Is this a company computer? if this is a company computer, your company could use tools like Microsoft Intune, Sccm or other 3rd party tool to uninstall software on multiple devices.

  • @lotso6155
    @lotso6155 Год назад

    I tried to execute this command with Microsoft Visio Professional 2013 however the application is still there does this work for .msi files? or is there something in my environment possibly prohibiting this from executing?

  • @Wesker83
    @Wesker83 Год назад +1

    What if I don't see the program which I want to remove on the list? f. ex. I can't see Foxit reader when i type: "Get-WmiObject -Class Win32_Product | Select-Object -Property Name"

    • @Kelvglobal
      @Kelvglobal  Год назад

      When you go to Program & Features, is Foxit there? Are you sure the program is still installed on your device?

    • @Wesker83
      @Wesker83 Год назад

      @@Kelvglobal Yes, it is
      zapodaj.net/e461a19e8bbc0.jpg.html

    • @Kelvglobal
      @Kelvglobal  Год назад

      Do you have Admin right on the computer?, But it seems you don´t have admin right on the device

    • @Wesker83
      @Wesker83 Год назад

      @@Kelvglobal Yes I have. I can uninstall other programs, only not Foxit.

  • @mohamedhussien6925
    @mohamedhussien6925 2 года назад

    Where I can put it to run this script automatically by group policy I want to uninstall eset from 2400 pc

  • @RJ-lp3mi
    @RJ-lp3mi Год назад +1

    Thank you so much bro!!

  • @babydhruv5711
    @babydhruv5711 Год назад +1

    Can we use this script to uninstall a particular version of app?

    • @Kelvglobal
      @Kelvglobal  Год назад

      Hello. Yes, you can use the script to uninstall a particular version of app.
      You will need to find the name of the software you want to uninstall and pipe it to a variable
      Find all installed app on your device
      Get-WmiObject -Class Win32_Product | Select-Object -Property Name
      If for example, you want to uninstall java 8 update 311, you will need to invoke the name into the variable of $MyApp.
      $MyApp = Get-WmiObject -Class Win32_Product | Where-Object{$_.Name -eq "Java 8 Update 311 (64-bit)"}
      With the below you can uninstall the application by invoking the variable
      $MyApp.Uninstall()

  • @kwagmier82
    @kwagmier82 2 года назад +2

    This works great, anyone with PowerShell know how can make it a remote execution command by adding the Computer Name and a credential with admin access on that remote computer.
    (Get-WMIObject -Class Win32_Product -ComputerName -Credential $(Get-Credential) | ? Name -eq "").Uninstall()

    • @mnjk218
      @mnjk218 2 года назад

      Even i want to know.......Pleas suggest..

  • @chamirasithmal218
    @chamirasithmal218 3 года назад

    This works id PsExec installed in remote pc right ?

    • @Kelvglobal
      @Kelvglobal  3 года назад +1

      Hi Chamira, You don´t need to install PsExec on the remote device you are trying to connect to.
      You will only need PsExec on the main device you are using.

    • @chamirasithmal218
      @chamirasithmal218 3 года назад

      @@Kelvglobal That's cool. Thanks man

  • @sidharths4096
    @sidharths4096 2 года назад +1

    How did you create a connection to remote machine

    • @Kelvglobal
      @Kelvglobal  2 года назад +2

      Hi, thanks for watching my video. I used Psexec to remotely connect to the device powershell. It can also be used to connect to the command prompt of the device. See tutorial on how to use Psexec to connect to remote devices. ruclips.net/video/NTqTUXbk_Mk/видео.html

    • @sidharths4096
      @sidharths4096 2 года назад

      @@Kelvglobal thank you. What about user credentials while connecting?

  • @Dextermorga
    @Dextermorga Год назад +1

    Thank you 👍

    • @Kelvglobal
      @Kelvglobal  Год назад

      Thanks for your feedback, I appreciate you.

  • @espringer1035
    @espringer1035 3 года назад +2

    This appears to be local and not remotely

    • @redadz9105
      @redadz9105 2 года назад

      No, it was remotely, check the title of Console Window.

  • @wajayenseporelmundo4588
    @wajayenseporelmundo4588 Год назад +1

    Thakns Sir

    • @Kelvglobal
      @Kelvglobal  Год назад +1

      Thanks for your feedback, Please don´t forget to like and subscribe to my channel

    • @wajayenseporelmundo4588
      @wajayenseporelmundo4588 Год назад +1

      @@Kelvglobal Sir, excuse my english. Bu i am not only am I a subscriber, but I want to buy your courses. You're saving my job.

  • @madnotez
    @madnotez Год назад

    I found this to hard to follow and not very good directions at times it's a language barrier 🚧 but mostly the bouncy fast talk and lack of percisive directions

    • @Kelvglobal
      @Kelvglobal  Год назад +1

      I apologize if the video did not meet your expectation. Naturally, I am a very fast speaker and creating videos for the general public should be indeed different. I have being doing my best to improve and talk more slowly and articulate when creating content.

    • @madnotez
      @madnotez Год назад

      I believe you can succeed and you have a lot of knowledge that people will benefit from. maybe try to outline each chapter on paper for yourself to follow 1st.& parts your going to cover. Like the very basics if that's your targeted audience. Example:CMD stands for brief: (summary 1),
      brief: (summary 2)and you can do many things with CMD/PowerShell. In part1 you'll cover 1-7 basics or advance operations etc etc. Bless you brother keep trying & you'll get better and better also I can tell you have the tough skin it takes to make it. The way you handled and responded to the comments says a lot about your character. Real stand up individual you could teach some on how to listen and not be so overly sensitive. Peace love & much respect brotha.

    • @Kelvglobal
      @Kelvglobal  Год назад

      Thanks a lot for your feedback. I receive a lot of positive comment on my channel, but comment like this make me improve and keeps me on the right part to succeed on RUclips. It should not always be positive, I believe you speak the truth and I definitely should listen when someone tried to correct me. I will surely do my best to start putting my chapters on papers which I started doing recently. Thanks a lot for your encouragement and feedback. I appreciate you.