Skip to content

Commit 3c815d5

Browse files
author
Zia Jalali
committed
Add a new parameter (Entries)
1 parent 46d0d9f commit 3c815d5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

GPRegistryPolicyResource.psm1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ class RegistryPolicy {
1010
[DscProperty(Key)]
1111
[String] $Path;
1212

13+
[DscProperty()]
14+
[String[]] $Entries = @("Software\Policies");
15+
1316
[void] Set()
1417
{
1518
Import-GPRegistryPolicy -Path $this.Path -LocalMachine
@@ -19,14 +22,15 @@ class RegistryPolicy {
1922
{
2023
[bool] $Result = $false
2124

22-
$Result = Test-GPRegistryPolicy -Path $this.Path -LocalMachine
25+
$Result = Test-GPRegistryPolicy -Path $this.Path -LocalMachine -Entries $this.Entries
2326

2427
return $Result
2528
}
2629

2730
[RegistryPolicy] Get()
2831
{
2932
$this.Path = $null
33+
$this.Entries = @("Software\Policies");
3034

3135
return $this
3236
}

0 commit comments

Comments
 (0)