### ## Powershell Application List ## Author: Software2 ### # ERROR REPORTING ALL Set-ExecutionPolicy RemoteSigned # Import the Powershell CMDlets for Configuration Manager Import-Module "C:\Program Files (x86)\Microsoft Configuration Manager\AdminConsole\bin\ConfigurationManager.psd1" # Use a temp folder for the output $tempDir = $env:TEMP $tempFolderName= 'S2HubPS' $outputLoc = "$tempDir\$tempFolderName\" # Create the temp folder if it doesn't exist if(!(Test-Path -Path $outputLoc )){ New-Item -ItemType directory -Path $outputLoc } CD LDS:\ # Define some styles for the output $htmlHead = "" # Get the app list from SCCM Get-CMApplication | Select @{name="Title";expression={$_.LocalizedDisplayName}}, @{name="Application ID";expression={$_.ModelName}}, @{name="Revision ID";expression={$_.CIVersion}} | ConvertTo-Html -head $htmlHead -body "

Application Information

" | Out-File "$outputLoc\s2hub_sccm_applist.html" # Open the output file Invoke-Item "$outputLoc\s2hub_sccm_applist.html"