1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Gurus

Discussion in 'Software' started by zxspectrum, Sep 25, 2016.

  1. zxspectrum

    zxspectrum Gigabyte Poster Premium Member

    1,666
    54
    139
    Any powershell gurus on here?

    Im looking at a way to list and then uninstall virtual box from a lot of pcs. Problem is when I run the command

    wmic then product get name, virtual box doesnt show, nor does it show with other commands?

    Any Ideas?

    Ed
     
    Certifications: BSc computing and information systems
    WIP: 70-680
  2. SimonD

    SimonD Terabyte Poster Moderator

    3,463
    397
    199
    You probably want to find the MSI Guid and use msiexec /x, failing that then something like....

    $app = Get-WmiObject -Class Win32_Product | Where-Object {
    $_.Name -match “Oracle VM VirtualBox”
    }

    $app.Uninstall()

    Just as a heads up I don't know if that's the application name that shows up in Add/Remove Programs but use that name as the name match.
     
    Certifications: CNA | CNE | CCNA | MCP | MCP+I | MCSE NT4 | MCSA 2003 | Security+ | MCSA:S 2003 | MCSE:S 2003 | MCTS:SCCM 2007 | MCTS:Win 7 | MCITP:EDA7 | MCITP:SA | MCITP:EA | MCTS:Hyper-V | VCP 4 | ITIL v3 Foundation | VCP 5 DCV | VCP 5 Cloud | VCP6 NV | VCP6 DCV | VCAP 5.5 DCA
    WIP: VCP6-CMA, VCAP-DCD and Linux + (and possibly VCIX-NV).
  3. zxspectrum

    zxspectrum Gigabyte Poster Premium Member

    1,666
    54
    139
    Cheers Si

    I managed a different workaround, well my mate did. Did it all through SCCM
     
    Certifications: BSc computing and information systems
    WIP: 70-680
  4. SimonD

    SimonD Terabyte Poster Moderator

    3,463
    397
    199
    Yeah that would work, just using the MSI ID and uninstalling it that way?
     
    Certifications: CNA | CNE | CCNA | MCP | MCP+I | MCSE NT4 | MCSA 2003 | Security+ | MCSA:S 2003 | MCSE:S 2003 | MCTS:SCCM 2007 | MCTS:Win 7 | MCITP:EDA7 | MCITP:SA | MCITP:EA | MCTS:Hyper-V | VCP 4 | ITIL v3 Foundation | VCP 5 DCV | VCP 5 Cloud | VCP6 NV | VCP6 DCV | VCAP 5.5 DCA
    WIP: VCP6-CMA, VCAP-DCD and Linux + (and possibly VCIX-NV).

Share This Page

Loading...