cleanup comments
This commit is contained in:
@@ -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
|
||||
$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 Write-LineToFile {
|
||||
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
|
||||
If ( $installed -or $uninstalled ) { Write-Output "Application changed detected" }
|
||||
|
||||
# Export $I_FILE
|
||||
# Display installed apps
|
||||
If ( $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 ) {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user