File tree Expand file tree Collapse file tree 2 files changed +41
-2
lines changed
templates/AppLockerProject Expand file tree Collapse file tree 2 files changed +41
-2
lines changed Original file line number Diff line number Diff line change 2
2
param
3
3
(
4
4
[string ]
5
- $SourcePath = ( Resolve-Path " $PSScriptRoot \..\configurationdata" ).Path ,
5
+ $SourcePath = " $PSScriptRoot \..\configurationdata" ,
6
6
7
7
[string ]
8
- $OutputPath = ( Resolve-Path " $PSScriptRoot \..\output" ).Path ,
8
+ $OutputPath = " $PSScriptRoot \..\output" ,
9
9
10
10
[switch ]
11
11
$IncludeRsop
12
12
)
13
13
14
+ $SourcePath = Resolve-Path - Path $SourcePath - ErrorAction Stop
15
+ $OutputPath = if (-not (Resolve-Path - Path $OutputPath - ErrorAction SilentlyContinue))
16
+ {
17
+ (New-Item - Path $OutputPath - ItemType Directory - Force).FullName
18
+ }
19
+ else
20
+ {
21
+ Resolve-Path - Path $OutputPath
22
+ }
23
+
14
24
$rsopPath = Join-Path - Path $OutputPath - ChildPath rsop
15
25
$policyPath = Join-Path - Path $OutputPath - ChildPath policies
16
26
if (-not (Test-Path - Path $rsopPath ))
@@ -23,6 +33,11 @@ if (-not (Test-Path -Path $policyPath))
23
33
$null = New-Item - Path $policyPath - ItemType Directory - Force
24
34
}
25
35
36
+ if (Get-DatumRsopCache )
37
+ {
38
+ Clear-DatumRsopCache
39
+ }
40
+
26
41
$datum = New-DatumStructure - DefinitionFile (Join-Path $SourcePath Datum.yml)
27
42
$rsops = Get-DatumRsop $datum (Get-DatumNodesRecursive - AllDatumNodes $Datum.AllNodes )
28
43
$rsops | Export-AlfXml - Path $policyPath
Original file line number Diff line number Diff line change @@ -24,20 +24,44 @@ lookup_options:
24
24
merge_options :
25
25
tuple_keys :
26
26
- Name
27
+ RuleCollections\Exe\Rules\Exceptions :
28
+ merge_basetype_array : Unique
27
29
RuleCollections\Msi :
28
30
merge_hash : deep
29
31
RuleCollections\Msi\Rules :
30
32
merge_hash_array : UniqueKeyValTuples
31
33
merge_options :
32
34
tuple_keys :
33
35
- Name
36
+ RuleCollections\Msi\Rules\Exceptions :
37
+ merge_basetype_array : Unique
34
38
RuleCollections\Dll :
35
39
merge_hash : deep
36
40
RuleCollections\Dll\Rules :
37
41
merge_hash_array : UniqueKeyValTuples
38
42
merge_options :
39
43
tuple_keys :
40
44
- Name
45
+ RuleCollections\Dll\Rules\Exceptions :
46
+ merge_basetype_array : Unique
47
+ RuleCollections\Script :
48
+ merge_hash : deep
49
+ RuleCollections\Script\Rules :
50
+ merge_hash_array : UniqueKeyValTuples
51
+ merge_options :
52
+ tuple_keys :
53
+ - Name
54
+ RuleCollections\Script\Rules\Exceptions :
55
+ merge_basetype_array : Unique
56
+ RuleCollections\Appx :
57
+ merge_hash : deep
58
+ RuleCollections\Appx\Rules :
59
+ merge_hash_array : UniqueKeyValTuples
60
+ merge_options :
61
+ tuple_keys :
62
+ - Name
63
+ RuleCollections\Appx\Rules\Exceptions :
64
+ merge_basetype_array : Unique
41
65
42
66
DatumStructure :
43
67
- StoreName : AllNodes
You can’t perform that action at this time.
0 commit comments