cleanup comments

This commit is contained in:
2023-08-11 11:25:57 -04:00
parent e3db5cb6e7
commit 6d77d8fab4
+4 -10
View File
@@ -7,12 +7,6 @@ $P_FILE = "${WORK_DIR}\InstalledSoftware_Previous.csv"
# Specify the name of the current generation file to compare with the previous generation file # Specify the name of the current generation file to compare with the previous generation file
$C_FILE = "${WORK_DIR}\InstalledSoftware_Current.csv" $C_FILE = "${WORK_DIR}\InstalledSoftware_Current.csv"
# Specify the name of the file showing installed software
#$I_FILE = "${WORK_DIR}\Difference_Installed.csv"
# Specify the name of the file showing uninstalled software
#$U_FILE = "${WORK_DIR}\Difference_Uninstalled.csv"
# Function to append a line to a file # Function to append a line to a file
Function Write-LineToFile { Function Write-LineToFile {
param([Parameter(Mandatory=$true)][string]$Path,[Parameter(Mandatory=$true)][string]$Line) param([Parameter(Mandatory=$true)][string]$Path,[Parameter(Mandatory=$true)][string]$Line)
@@ -130,16 +124,16 @@ If ( (Test-Path $C_FILE) -and (Test-Path $P_FILE) ) {
# Alert trigger for Atera # Alert trigger for Atera
If ( $installed -or $uninstalled ) { Write-Output "Application changed detected" } If ( $installed -or $uninstalled ) { Write-Output "Application changed detected" }
# Export $I_FILE # Display installed apps
If ( $installed ) { If ( $installed ) {
Write-Output "Applications recently installed:" Write-Output "Applications recently installed:"
$installed | Select-Object * -ExcludeProperty SideIndicator #| Export-Csv -Path $I_FILE -Encoding UTF8 -NoTypeInformation $installed | Select-Object * -ExcludeProperty SideIndicator
} }
# Export $U_FILE # Display uninstalled apps
If ( $uninstalled ) { If ( $uninstalled ) {
Write-Output "Applications recently uninstalled:" Write-Output "Applications recently uninstalled:"
$uninstalled | Select-Object * -ExcludeProperty UninstallString,ModifyPath,SideIndicator #| Export-Csv -Path $U_FILE -Encoding UTF8 -NoTypeInformation $uninstalled | Select-Object * -ExcludeProperty UninstallString,ModifyPath,SideIndicator
} }
} }