Skip to content

Commit e996d1a

Browse files
Merge pull request #55 from ActiveDirectoryManagementFramework/January24
1.13.100
2 parents d28627a + 36c9961 commit e996d1a

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

ADMF/ADMF.psd1

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
RootModule = 'ADMF.psm1'
44

55
# Version number of this module.
6-
ModuleVersion = '1.13.98'
6+
ModuleVersion = '1.13.100'
77

88
# ID used to uniquely identify this module
99
GUID = '43f2a890-942f-4dd7-bad0-b774b44ea849'
@@ -26,15 +26,15 @@
2626
# Modules that must be imported into the global environment prior to importing
2727
# this module
2828
RequiredModules = @(
29-
@{ ModuleName = 'PSFramework'; ModuleVersion = '1.7.270' }
30-
@{ ModuleName = 'ADSec'; ModuleVersion = '1.0.0' }
29+
@{ ModuleName = 'PSFramework'; ModuleVersion = '1.10.318' }
30+
@{ ModuleName = 'ADSec'; ModuleVersion = '1.0.1' }
3131
@{ ModuleName = 'string'; ModuleVersion = '1.1.3' }
3232
@{ ModuleName = 'ResolveString'; ModuleVersion = '1.0.0' }
3333
@{ ModuleName = 'Principal'; ModuleVersion = '1.0.0' }
3434
@{ ModuleName = 'ADMF.Core'; ModuleVersion = '1.1.9' }
3535
@{ ModuleName = 'DCManagement'; ModuleVersion = '1.2.25' }
36-
@{ ModuleName = 'DomainManagement'; ModuleVersion = '1.8.199' }
37-
@{ ModuleName = 'ForestManagement'; ModuleVersion = '1.5.66' }
36+
@{ ModuleName = 'DomainManagement'; ModuleVersion = '1.8.202' }
37+
@{ ModuleName = 'ForestManagement'; ModuleVersion = '1.5.73' }
3838
)
3939

4040
# Assemblies that must be loaded prior to importing this module

ADMF/changelog.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 1.13.100 (2024-01-12)
4+
5+
- Fix: Group Policy - does not respect "MayModify"
6+
- Fix: Export-AdmfGpo - incorrect type validation
7+
38
## 1.13.98 (2023-09-27)
49

510
- Upd: Set-AdmfContext - added context name to Certificate component

ADMF/functions/Set-AdmfContext.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@
362362
$file = Get-Item $exportDataPath
363363
Write-PSFMessage -Level Debug -String 'Set-AdmfContext.Context.Loading' -StringValues $ContextObject.Name, 'Group Policy', $file.FullName
364364
try {
365-
$dataSet = Import-PSFPowerShellDataFile -LiteralPath $file.FullName -Unsafe -ErrorAction Stop | ConvertTo-PSFHashtable -Include DisplayName, Description, ID, ExportID, WMiFilter
365+
$dataSet = Import-PSFPowerShellDataFile -LiteralPath $file.FullName -Unsafe -ErrorAction Stop | ConvertTo-PSFHashtable -Include DisplayName, Description, ID, ExportID, WMiFilter, MayModify
366366
foreach ($policyEntry in $dataSet) {
367367
Register-DMGroupPolicy @policyEntry -Path "$($ContextObject.Path)\domain\grouppolicies\$($policyEntry.ID)" -ContextName $ContextObject.Name
368368
}

ADMF/internal/scriptblocks/scriptblocks.ps1

+1-4
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@ Set-PSFScriptblock -Name 'ADMF.ScriptBlockName' -Scriptblock {
1212
#>
1313
Set-PSFScriptblock -Name 'ADMF.Validate.Type.Gpo' -Scriptblock {
1414
foreach ($item in $_) {
15-
if (
16-
-not ($item -is [Microsoft.GroupPolicy.Gpo]) -or
17-
($item.PSObject.TypeNames -contains 'Microsoft.GroupPolicy.Gpo')
18-
) { return $false }
15+
if ($item.PSObject.TypeNames -notcontains 'Microsoft.GroupPolicy.Gpo') { return $false }
1916
}
2017
$true
2118
}

0 commit comments

Comments
 (0)