Add PolicyCheckModel.ps1

This commit is contained in:
2026-06-10 21:57:52 +02:00
parent 90959082a6
commit 4e350e3cdf
+24
View File
@@ -0,0 +1,24 @@
class PolicyCheckModel {
[string] $Status # OK | WARN | FEHLER | INFO
[string] $Policy
[string] $CurrentValue
[string] $Solution
[string] $RegistryPath
PolicyCheckModel([string]$status, [string]$policy, [string]$value, [string]$solution, [string]$regPath) {
$this.Status = $status
$this.Policy = $policy
$this.CurrentValue= $value
$this.Solution = $solution
$this.RegistryPath= $regPath
}
[string] StatusColor() {
switch ($this.Status) {
"FEHLER" { return "#FFCCCC" }
"WARN" { return "#FFF5CC" }
"OK" { return "#CCFFCC" }
default { return "#E8F0FF" }
}
}
}