Installed software in virtual machine

Welcome Forums General PowerShell Q&A Installed software in virtual machine

This topic contains 2 replies, has 2 voices, and was last updated by

1 year, 9 months ago.

  • Author
  • #70627

    Points: 0
    Rank: Member

    I'm looking to list down all the software installed in a virtual machine.
    I can list down all the virtual machines and then can iterate through it and can display the name of all the virtual machines ( See the code below).

    I basically looking to list name and versions of following softwares in all virtual machines if installed:

    1) OS name and version
    2) MS SQL server name and version
    3) MS office edition and version
    4) Remote desktop utility version

    Thanks in advance:

    Disconnect-VIServer * -Force -Confirm:$false
    $OutPath = @()
    $vcenter = @()
    $VMs = @()
    $VMName = @()
    $vcenter = "vcsa-01a.corp.local"
    Connect-VIServer $vcenter
    $VMs = Get-VM | Sort-Object Name

    ForEach ($VM in $VMs)

    $VMName = $VM.Name

    Write-Host "VM NAME : " $VMName


  • #70861

    Points: 1,811
    Helping HandTeam Member
    Rank: Community Hero

    Try querying Win32_Product from them.

    • #70867

      Points: 0
      Rank: Member

      Thankyou for the reply but this will not return installed programs on virtual machines, rather it will return installed programs on host machine.

The topic ‘Installed software in virtual machine’ is closed to new replies.

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort