@@ -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.2
12
+ Version: 2.4.0
13
13
14
14
. DESCRIPTION
15
15
@@ -115,7 +115,6 @@ function Get-GPPPassword {
115
115
116
116
try {
117
117
118
- # $FileObject = Get-ChildItem $File
119
118
$Filename = Split-Path $File - Leaf
120
119
[xml ] $Xml = Get-Content ($File )
121
120
@@ -157,8 +156,20 @@ function Get-GPPPassword {
157
156
$UserName += , $Xml | Select-Xml " /DataSources/DataSource/Properties/@username" | Select-Object - Expand Node | ForEach-Object {$_.Value }
158
157
$Changed += , $Xml | Select-Xml " /DataSources/DataSource/@changed" | Select-Object - Expand Node | ForEach-Object {$_.Value }
159
158
}
159
+
160
+ ' Printers.xml' {
161
+ $Cpassword += , $Xml | Select-Xml " /Printers/SharedPrinter/Properties/@cpassword" | Select-Object - Expand Node | ForEach-Object {$_.Value }
162
+ $UserName += , $Xml | Select-Xml " /Printers/SharedPrinter/Properties/@username" | Select-Object - Expand Node | ForEach-Object {$_.Value }
163
+ $Changed += , $Xml | Select-Xml " /Printers/SharedPrinter/@changed" | Select-Object - Expand Node | ForEach-Object {$_.Value }
164
+ }
165
+
166
+ ' Drives.xml' {
167
+ $Cpassword += , $Xml | Select-Xml " /Drives/Drive/Properties/@cpassword" | Select-Object - Expand Node | ForEach-Object {$_.Value }
168
+ $UserName += , $Xml | Select-Xml " /Drives/Drive/Properties/@username" | Select-Object - Expand Node | ForEach-Object {$_.Value }
169
+ $Changed += , $Xml | Select-Xml " /Drives/Drive/@changed" | Select-Object - Expand Node | ForEach-Object {$_.Value }
170
+ }
160
171
}
161
- }
172
+ }
162
173
163
174
foreach ($Pass in $Cpassword ) {
164
175
Write-Verbose " Decrypting $Pass "
0 commit comments