You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you tried and the problem that is occurring
The ADForestProperties resource does not currently allow the ServicePrincipalNameSuffix and UserPrincipalNameSuffix to be cleared.
Verbose logs showing the problem
PS> (Get-ADForest).UpnSuffixes
fabrikam.com
PS>Invoke-DscResource-Name ADForestProperties -ModuleName ActiveDirectoryDsc -Method Set `-Property @{ForestName='contoso.com';UserPrincipalNameSuffix=@('')} -Verbose
VERBOSE: Perform operation 'Invoke CimMethod' with following parameters,''methodName' = Resourceset,'className' =MSFT_DSCLocalConfigurationManager,'namespaceName' = root/Microsoft/Windows/DesiredStateConfiguration'.
VERBOSE: An LCM method call arrived from computer DC01-2019 with user sid
S-1-5-21-3553084080-2500667019-4197401787-500.
VERBOSE: [DC01-2019]: LCM: [ StartSet ] [[ADForestProperties]DirectResourceAccess]
VERBOSE: [DC01-2019]: LCM: [ EndSet ] [[ADForestProperties]DirectResourceAccess] in1.3440 seconds.
VERBOSE: [DC01-2019]: LCM: [ EndSet ] in2.6720 seconds.
VERBOSE: Operation 'Invoke CimMethod' complete.
PS> (Get-ADForest).UpnSuffixes
fabrikam.com
Suggested solution to the issue
Modify the code to check for empty ServicePrincipalNameSuffix and UserPrincipalNameSuffix parameters and set the relevant Set-AdForest parameter to $null.
The operating system the target node is running
OsName : Microsoft Windows Server 2019 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture : 64-bit
WindowsVersion : 1809
WindowsBuildLabEx : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
Details of the scenario you tried and the problem that is occurring
The ADForestProperties resource does not currently allow the
ServicePrincipalNameSuffix
andUserPrincipalNameSuffix
to be cleared.Verbose logs showing the problem
Suggested solution to the issue
Modify the code to check for empty
ServicePrincipalNameSuffix
andUserPrincipalNameSuffix
parameters and set the relevantSet-AdForest
parameter to$null
.The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used
5.0.0
The text was updated successfully, but these errors were encountered: