We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46d0d9f commit 3c815d5Copy full SHA for 3c815d5
GPRegistryPolicyResource.psm1
@@ -10,6 +10,9 @@ class RegistryPolicy {
10
[DscProperty(Key)]
11
[String] $Path;
12
13
+ [DscProperty()]
14
+ [String[]] $Entries = @("Software\Policies");
15
+
16
[void] Set()
17
{
18
Import-GPRegistryPolicy -Path $this.Path -LocalMachine
@@ -19,14 +22,15 @@ class RegistryPolicy {
19
22
20
23
[bool] $Result = $false
21
24
- $Result = Test-GPRegistryPolicy -Path $this.Path -LocalMachine
25
+ $Result = Test-GPRegistryPolicy -Path $this.Path -LocalMachine -Entries $this.Entries
26
27
return $Result
28
}
29
30
[RegistryPolicy] Get()
31
32
$this.Path = $null
33
+ $this.Entries = @("Software\Policies");
34
35
return $this
36
0 commit comments