@@ -9,7 +9,7 @@ function Get-GPPPassword {
9
9
License: BSD 3-Clause
10
10
Required Dependencies: None
11
11
Optional Dependencies: None
12
- Version: 2.3.0
12
+ Version: 2.3.1
13
13
14
14
. DESCRIPTION
15
15
@@ -124,10 +124,10 @@ function Get-GPPPassword {
124
124
If (! ($Count )) {$Count = 1 }
125
125
ForEach ($Number in 0 .. ($Count - 1 )){
126
126
If ($Count -eq 1 ) {$Replace = ' User' } else {$Replace = " User[$Number ]" }
127
- $Cpassword += , $Xml.Groups.User [ $Number ] .Properties.cpassword
128
- $UserName += , $Xml.Groups.User [ $Number ] .Properties.userName
129
- $NewName += , $Xml.Groups.User [ $Number ] .Properties.newName
130
- $Changed += , $Xml.Groups.User [ $Number ] .changed
127
+ $Cpassword += , $Xml.Groups.User . $Replace .Properties.cpassword
128
+ $UserName += , $Xml.Groups.User . $Replace .Properties.userName
129
+ $NewName += , $Xml.Groups.User . $Replace .Properties.newName
130
+ $Changed += , $Xml.Groups.User . $Replace .changed
131
131
}
132
132
}
133
133
@@ -136,9 +136,9 @@ function Get-GPPPassword {
136
136
If (! ($Count )) {$Count = 1 }
137
137
ForEach ($Number in 0 .. ($Count - 1 )){
138
138
If ($Count -eq 1 ) {$Replace = ' NTService' } else {$Replace = " NTService[$Number ]" }
139
- $Cpassword += , $Xml.NTServices.NTService [ $Number ] .Properties.cpassword
140
- $UserName += , $Xml.NTServices.NTService [ $Number ] .Properties.accountName
141
- $Changed += , $Xml.NTServices.NTService [ $Number ] .changed
139
+ $Cpassword += , $Xml.NTServices.NTService . $Replace .Properties.cpassword
140
+ $UserName += , $Xml.NTServices.NTService . $Replace .Properties.accountName
141
+ $Changed += , $Xml.NTServices.NTService . $Replace .changed
142
142
}
143
143
}
144
144
@@ -147,9 +147,9 @@ function Get-GPPPassword {
147
147
If (! ($Count )) {$Count = 1 }
148
148
ForEach ($Number in 0 .. ($Count - 1 )){
149
149
If ($Count -eq 1 ) {$Replace = ' Task' } else {$Replace = " Task[$Number ]" }
150
- $Cpassword += , $Xml.ScheduledTasks.Task [ $Number ] .Properties.cpassword
151
- $UserName += , $Xml.ScheduledTasks.Task [ $Number ] .Properties.runAs
152
- $Changed += , $Xml.ScheduledTasks.Task [ $Number ] .changed
150
+ $Cpassword += , $Xml.ScheduledTasks.Task . $Replace .Properties.cpassword
151
+ $UserName += , $Xml.ScheduledTasks.Task . $Replace .Properties.runAs
152
+ $Changed += , $Xml.ScheduledTasks.Task . $Replace .changed
153
153
}
154
154
}
155
155
@@ -217,4 +217,4 @@ function Get-GPPPassword {
217
217
}
218
218
219
219
catch {Write-Error $Error [0 ]}
220
- }
220
+ }
0 commit comments