Mastering PowerShell: Uninstalling Software Made Easy

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

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

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

    this is really great.. showing all in terminal :) and yet make it look simple to follow .. .great resource .. keep up the good work. :)

  • @user-jc2tm5yy1q
    @user-jc2tm5yy1q 10 месяцев назад +1

    What if the software is not shown in the list. Where would I find it and would I still use the same command line if the software is on the computer but not in the list?

  • @a.useronly2266
    @a.useronly2266 Год назад

    Thanks , this is very helpful

  • @ytpremott2221
    @ytpremott2221 3 месяца назад

    Bro use registry path instead of wmi win32 object

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

    Yep. Great, but also you didn't mentioned the "winget" command. It almost like "apt" or "yum" in linux. Much simpler to use.

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

      I didn’t mention it because in Linux you can change package manager and it presents on both desktop and server, sadly Winget is only on desktop.
      If you need to manage both desktop and servers, chocolatey is still a better option.

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

    Great!

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

    how would you do this for multiple apps you want to uninstall? for example, i got new dell laptops, i want to uninstall all the bloatware (dell apps, microsoft apps, etc

    • @TipsForITPros
      @TipsForITPros  11 месяцев назад

      An easy option could be to set an array with the software you want to remove and pipe that into foreach-object, as uninstall can only run concurrent anyway.

    • @nhtathinfbntb2746
      @nhtathinfbntb2746 11 месяцев назад

      @@TipsForITPros I ended up just using BCU. A lot of the apps im trying to uninstall cant be done quietly, so any script that i run it just errors out. Im uninstalling microsoft and dell apps from new laptops.

  • @JamesRoyCoronel
    @JamesRoyCoronel 5 месяцев назад

    Hi Sir, Good day ! How about uninstalling a specific software to multiple machines is that possible ?

    • @Traxano
      @Traxano 2 месяца назад

      $computers = @("PC1", "PC2", "PC3")
      $software = "NameOfSoftware"
      function Invoke-RemoteCommand {
      param (
      [string]$computerName,
      [string]$software
      )
      try {
      Invoke-Command -ComputerName $computerName -ScriptBlock {
      param ($software)
      # insert uninstall Code Here
      } -ArgumentList $software
      } catch {
      Write-Error "Operation failed on computer $computerName: $_"
      }
      }
      # foreach Computer and use the function
      foreach ($computer in $computers) {
      Invoke-RemoteCommand -computerName $computer -software $software
      }