Войти
  • 15406Просмотров
  • 3 года назадОпубликованоSwapnil Infotech

PowerShell Remotely Uninstall Software from Multiple Computers

In this video you will be able to uninstall software remotely from multiple computer, We are using here "Get-Package" to get the application name and then we are using "uninstall-Package" to uninstall the selected package from first command. You dont have to specify the full name of the software, you can use few starting words and then "*" sign so it will match your name with installed software and then uninstall it. I am giving script here so you can use it, please let me know if you are facing any issue. ============================================================ $Servers = Get-content "C:\Scripts\ " Foreach ($Server in $Servers){ Invoke-Command -ComputerName $Server -ScriptBlock { (Get-Package -Name "adobe acrobat reader*" | Uninstall-Package -ErrorAction SilentlyContinue) , (Get-Package -Name "7-Zip*" | Uninstall-Package -ErrorAction SilentlyContinue) }} ============================================================ You can watch below Videos to learn PowerShell Scripts. PowerShell Search Specific KB Status on Remote Computers PowerShell Script to Connect Multiple Server's Remote Session PowerCLI Script to power ON dedicated VMs listed in a text file PowerCLI Script to power Off dedicated VMs listed in a text file Delete Snapshot's from Multiple Virtual Machines Create Snapshot on Multiple Virtual Machine How can I check if a port is open remotely Installing software remotely on Multiple "Workgroup" Computers PowerShell Installing software remotely on Multiple Computers Unable to move OU in Active Directory (Access is denied) PowerShell Installing software remotely on Multiple Computers Get Multiple Services Status Remotely | Remotely Start or Stop Services Get Date and Time from Multiple Remote Computers PowerCLI - How to get HA restarted VM's List Get-Childitem - Search file on Local and Remote Computers Remotely Create Update Delete Registry Key on Multiple Computers Get service status from remote server's using PowerShell