PowerShell Remotely Uninstall Google Chrome on Multiple Remote Computers

Поделиться
HTML-код
  • Опубликовано: 7 апр 2023
  • In This Video, You can see how to identify Google Chrome Version from Registry and use the version information to uninstall it from computer remotely. Please use the script and let me know if you have any query.
    ============================================
    Please add "Null" at the end of uninstall command to avoid error as shown in Video.
    ==================Script here====================
    $Servers = Get-content "C:\Scripts\livePCs.txt"
    Foreach ($Server in $Servers) {
    invoke-command $Server -ScriptBlock {
    $Reg32Key = Get-ItemProperty -path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome" -name "Version" -ErrorAction SilentlyContinue
    $Ver32Path = $Reg32Key.Version
    $Reg64Key = Get-ItemProperty -path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Google Chrome' -name "Version" -ErrorAction SilentlyContinue
    $Ver64Path = $Reg64Key.Version
    If ($Ver32Path) {
    $Result = &cmd /c "C:\Program Files (x86)\Google\Chrome\Application\$Ver32Path\Installer\setup.exe" --uninstall --multi-install --chrome --system-level --force-uninstall
    Write-Host $using:Server Uninstalled Google Chrome Version $Ver32Path
    }
    If ($Ver64Path){
    $Result = &cmd /c "C:\Program Files\Google\Chrome\Application\$Ver64Path\Installer\setup.exe" --uninstall --multi-install --chrome --system-level --force-uninstall
    Write-Host $using:Server Uninstalled Google Chrome Version $Ver64Path
    }}}
    ================Script End=================
    PowerShell Uninstall WinRAR Software Silently on Multiple Remote Computers
    • PowerShell Uninstall W...
    Find the Current User Logged on Remote Computer and Take Action
    • Find the Current User ...
    Remove User Account or Group from Local Groups on Remote Computers
    • Remove User Account or...
    Automate The Creation of Virtual Machines in VMWare
    • Automate The Creation ...
    PowerCLI Exclude List of VM's From Script Deleting Snapshots in VMware
    • PowerCLI Exclude List ...
    PowerCLI Power On a Suspended VMware Virtual Machine
    • PowerCLI Power On a Su...
    PowerShell Installing software remotely on Multiple Computers
    • PowerShell Installing ...
    PowerShell Send Email if Windows Service is in Stopped State
    • PowerShell Send Email ...
    PowerShell Send email if windows service is not running
    • PowerShell Send email ...
    Get Local Group Members From Remote computers
    • Get Local Group Member...
    Powershell Script To Change Service Account or Update Password
    • Powershell Script To C...
    Powershell How To Change Remote Computer (Workgroup) Local Account Password
    • Powershell How To Chan...
    Delete Virtual Machine Snapshots Older Than Specific Days
    • Delete Multiple Virtua...
    How To Create File Selection Dialog Box in PowerShell
    • How To Create File Sel...
    Add User/Group To The Local Administrators/RDP Group On Multiple Computers
    • Add User/Group To The ...
    Get Windows Updates list from Remote Computer
    • Get Windows Updates li...
    PowerShell Remotely Uninstall Software from Multiple Computers
    • PowerShell Remotely Un...
    PowerShell Search Specific KB Status on Remote Computers
    • PowerShell Search Inst...
    PowerShell Script to Connect Multiple Server's Remote Session
    • PowerShell Script to C...
    PowerCLI Script to power ON dedicated VMs listed in a text file
    • PowerCLI Script to pow...
    PowerCLI Script to power Off dedicated VMs listed in a text file
    • PowerCLI Script to pow...
    Delete Snapshot's from Multiple Virtual Machines
    • Delete Snapshot's from...
    Create Snapshot on Multiple Virtual Machine
    • Create Snapshot on Mul...
    How can I check if a port is open remotely
    • Identify if Windows TC...
    Installing software remotely on Multiple "Workgroup" Computers
    • Installing software re...
    PowerShell Installing software remotely on Multiple Computers
    • PowerShell Installing ...
    Unable to move OU in Active Directory (Access is denied)
    • Unable to move OU in A...
    PowerShell Installing software remotely on Multiple Computers
    • PowerShell Installing ...
    Get Multiple Services Status Remotely | Remotely Start or Stop Services
    • Get Multiple Services ...
    Get Date and Time from Multiple Remote Computers
    • Get Date and Time from...
    PowerCLI - How to get HA restarted VM's List
    • PowerCLI - How to get ...
    Get-Childitem - Search file on Local and Remote Computers
    • Get-Childitem - Search...
    Remotely Create Update Delete Registry Key on Multiple Computers
    • Remotely Create Update...
    Get service status from remote server's using PowerShell
    • Get service status fro...
  • НаукаНаука

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

  • @scottyfhf
    @scottyfhf 9 месяцев назад +2

    This is exactly what I needed, tested and working. Thanks

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

    I want to uninstall all the c plus plus are remote computer.
    Is that possible?

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

    Superrrrr.waiting for ur video 😊

  • @kannar6189
    @kannar6189 11 месяцев назад +1

    Hi, thanks for your video.. i got error a positional parameter cannot be found that accept argument '$null'. where to add null please help, thanks.

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

      Can you please paste the script you are using and complete error msg after running the script

  • @abuubakryali6067
    @abuubakryali6067 9 месяцев назад

    Can you kindly share how to uninstall using multi hop remoting?