Skip to content

Commit

Permalink
modify xml tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Lea9250 committed Feb 3, 2022
1 parent fb90493 commit a2b22f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/Windows/userinstalledapps.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ foreach ($user in $users) {
# reduce duplicate entries by checking if same app already listed
$comparator = "*$appname*"
if (-Not (@($appnames) -like $comparator)) {
$xml += "<WINUSERAPP>`n"
$xml += "<USERINSTALLEDAPPS>`n"

$xml += "<USERNAME>" + $username + "</USERNAME>`n"
$xml += "<APPNAME>" + $appname + "</APPNAME>`n"

$xml += "</WINUSERAPP>`n"
$xml += "</USERINSTALLEDAPPS>`n"
}
$appnames += $appname

Expand Down

0 comments on commit a2b22f0

Please sign in to comment.