- }
-
-
-
-
+
+ x is { Version: Enums.LAPSVersion.v1, IsCurrent: true }))>
+
+
+ x is { Version: Enums.LAPSVersion.v2, IsCurrent: true }))>
+
+
+ x is { Version: Enums.LAPSVersion.v2, IsCurrent: false }))>
+
+
+
+
Account
+
Password
+
Date set
+
+
+
+ @foreach (LapsInformation entry in computer.LapsInformations!.Where(x => x is { IsCurrent: false, Version: Enums.LAPSVersion.v2 }))
+ {
+
+
+ @entry.Account
+
+
+ @entry.Password
+
+
+ @entry.PasswordSetDate
+
+
+ }
+
+
+
+
}
else
{
-
- No permission to retrieve LAPS Password or no LAPS Password set!
-
+
+ No permission to retrieve LAPS Password or no LAPS Password set!
+
}
- }
- else
- {
-