Gurus

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

  1. zxspectrum

    zxspectrum Terabyte Poster Forum Leader Gold Member

    2,092
    216
    244
    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
    Honorary Member

    SimonD Terabyte Poster

    3,681
    440
    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
  3. zxspectrum

    zxspectrum Terabyte Poster Forum Leader Gold Member

    2,092
    216
    244
    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
    Honorary Member

    SimonD Terabyte Poster

    3,681
    440
    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

Share This Page

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.