diff --git a/Track-InstalledSoftware.ps1 b/Track-InstalledSoftware.ps1 index 70f2269..2c5c218 100644 --- a/Track-InstalledSoftware.ps1 +++ b/Track-InstalledSoftware.ps1 @@ -83,10 +83,6 @@ Function Get-ItemPropertyInfo { # Create $WORK_DIR if it doesn't exist If ( -not (Test-Path $WORK_DIR) ) { New-Item -Path $WORK_DIR -ItemType Directory -Force } -# Delete the diff files if they exist -If ( Test-Path $I_FILE ) { Remove-Item -Path $I_FILE -Force } -If ( Test-Path $U_FILE ) { Remove-Item -Path $U_FILE -Force } - # Create $C_FILE if it doesn't exist If ( -not (Test-Path $C_FILE) ) { # Write the headers to the output file @@ -126,13 +122,13 @@ If ( (Test-Path $C_FILE) -and (Test-Path $P_FILE) ) { # Display installed apps If ( $installed ) { - Write-Output "Applications recently installed:" + Write-Output "`nAPPLICATIONS RECENTLY INSTALLED:" $installed | Select-Object * -ExcludeProperty SideIndicator } # Display uninstalled apps If ( $uninstalled ) { - Write-Output "Applications recently uninstalled:" + Write-Output "`nAPPLICATIONS RECENTLY UNINSTALLED:" $uninstalled | Select-Object * -ExcludeProperty UninstallString,ModifyPath,SideIndicator } }