Powershell script to export all software information installed in a domain system

Vibin Raj Nadakkal 61 Reputation points
2020-10-23T06:50:18.413+00:00

Hi,

Please help if any Powershell script to export all the software information installed in a domain system

Regards,
Vibin Raj

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

{count} vote
Answer accepted by question author
  1. Udara Peiris 701 Reputation points Volunteer Moderator
    2020-10-23T08:12:40.96+00:00

    Try following command.

    Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate | Format-Table –AutoSize > C:\InstalledApps.txt
    

    You can change location. this command will save a txt(InstalledApps.txt) file in disk C:

    7 people found this answer helpful.

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2020-10-23T09:37:32.11+00:00

    Hi,
    This script can do that for you. Assume computer names in your domain are computername1, computername2 and computername3:

    $computernames = "computername1","computername2","computername3"  
    $array = @()  
    foreach($computername in $computernames){  
        #Define the variable to hold the location of Currently Installed Programs  
        $UninstallKey=”SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall”   
        #Create an instance of the Registry Object and open the HKLM base key  
        $reg=[microsoft.win32.registrykey]::OpenRemoteBaseKey(‘LocalMachine’,$computername)   
        #Drill down into the Uninstall key using the OpenSubKey Method  
        $regkey=$reg.OpenSubKey($UninstallKey)   
        #Retrieve an array of string that contain all the subkey names  
        $subkeys=$regkey.GetSubKeyNames()   
        #Open each Subkey and use GetValue Method to return the required values for each  
        foreach($key in $subkeys){  
            $thisKey=$UninstallKey+”\\”+$key   
            $thisSubKey=$reg.OpenSubKey($thisKey)   
            $obj = New-Object PSObject  
            $obj | Add-Member -MemberType NoteProperty -Name “ComputerName” -Value $computername  
            $obj | Add-Member -MemberType NoteProperty -Name “DisplayName” -Value $($thisSubKey.GetValue(“DisplayName”))  
            $obj | Add-Member -MemberType NoteProperty -Name “DisplayVersion” -Value $($thisSubKey.GetValue(“DisplayVersion”))  
            $obj | Add-Member -MemberType NoteProperty -Name “InstallLocation” -Value $($thisSubKey.GetValue(“InstallLocation”))  
            $obj | Add-Member -MemberType NoteProperty -Name “Publisher” -Value $($thisSubKey.GetValue(“Publisher”))  
            $array += $obj  
        }   
    }  
    $array | Where-Object { $_.DisplayName } | select ComputerName, DisplayName, DisplayVersion, Publisher | ft -auto  
    

    Use PowerShell to Quickly Find Installed Software
    https://devblogs.microsoft.com/scripting/use-powershell-to-quickly-find-installed-software/

    Best Regards,
    Ian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.
  2. js2010 191 Reputation points
    2020-10-25T15:51:56.107+00:00
    get-package
    
    0 comments No comments
  3. fochoao 0 Reputation points
    2024-08-15T11:30:06.98+00:00

    To get the full Modules of Your Powershell Environment and Computer applications:

    Piping all results to memory then to the final form with the character ">" makes You free of hassles.

    The filename is a variable, name it however you want.

    Raise Your privileges for writing in C:\

    Powrshelle.

    Get-Package > C:\Powrshell_Modules.txt
    
    

    Computer applications.

    Get-ItemProperty HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion, Publisher, InstallDate > C:\Computer_Applications.txt
    
    0 comments No comments
  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more