Details of the scenario you tried and the problem that is occurring
Install Exchange 2016 -> works
Configure DAG -> not working
Configure DAGNetwork -> not working
Configure Exchange license -> not working
Verbose logs showing the problem
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Entering function
'Test-TargetResource'. Notable parameters: Name = 'DEV2CHHST-EDG31'
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Importing the xExchange
Remote PowerShell Module.
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Checking if setup is
partially complete
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Checking values at key
'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\CafeRole'
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Checking values at key
'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\ClientAccessRole'
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Checking values at key
'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\FrontendTransportRole'
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Checking values at key
'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\HubTransportRole'
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Checking values at key
'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\MailboxRole'
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Checking values at key
'HKLM:\SOFTWARE\Microsoft\ExchangeServer\v15\UnifiedMessagingRole'
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Exchange is present and
setup is detected as being fully complete.
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Creating new Remote
PowerShell session to Exchange
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Perform operation
'Enumerate CimInstances' with following parameters, ''namespaceName' = root\cimv2,'className' = Win32_ComputerSystem'.
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Operation 'Enumerate
CimInstances' complete.
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Connecting to
dev2chhst-emh31.dev2.swisscom-mcc.local.
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Loading module from path
'C:\Windows\TEMP\DSCExchangeModule\DSCExchangeModule.psm1'.
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] No need to remove
parameters
The term 'Get-DatabaseAvailabilityGroup' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (Get-DatabaseAvailabilityGroup:) [], CimException
+ FullyQualifiedErrorId : CommandNotFoundException
+ PSComputerName : localhost
VERBOSE: [DEV2CHHST-EMH31]: [[xExchDatabaseAvailabilityGroup]DAG] Unable to retrieve
Database Availability Group settings
VERBOSE: [DEV2CHHST-EMH31]: LCM: [ End Test ] [[xExchDatabaseAvailabilityGroup]DAG] in 7.5310 seconds.
The PowerShell DSC resource '[xExchDatabaseAvailabilityGroup]DAG' with SourceInfo 'C:\DSC\psf_TestConfig\ExchangeAutom
tion\applicationConfiguration_EX_WS_New.ps1::457::17::xExchDatabaseAvailabilityGroup' threw one or more
non-terminating errors while running the Test-TargetResource functionality. These errors are logged to the ETW channel
called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
VERBOSE: [DEV2CHHST-EMH31]: LCM: [ Start Resource ] [[xExchClientAccessServer]CAS]
VERBOSE: [DEV2CHHST-EMH31]: LCM: [ Start Test ] [[xExchClientAccessServer]CAS]
VERBOSE: [DEV2CHHST-EMH31]: [[xExchClientAccessServer]CAS] Entering function
'Test-TargetResource'. Notable parameters: Identity = 'dev2chhst-emh31'
VERBOSE: [DEV2CHHST-EMH31]: [[xExchClientAccessServer]CAS] Reusing existing Remote
PowerShell Session to Exchange
VERBOSE: [DEV2CHHST-EMH31]: [[xExchClientAccessServer]CAS] Importing the xExchange Remote
PowerShell Module.
VERBOSE: [DEV2CHHST-EMH31]: [[xExchClientAccessServer]CAS] Loading module from path
'C:\Windows\TEMP\DSCExchangeModule\DSCExchangeModule.psm1'.
The term 'Get-ClientAccessService' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (Get-ClientAccessService:) [], CimException
+ FullyQualifiedErrorId : CommandNotFoundException
+ PSComputerName : localhost
Unable to retrieve Client Access Server settings for server
+ CategoryInfo : NotSpecified: (:) [], CimException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Test-TargetResource
+ PSComputerName : localhost
VERBOSE: [DEV2CHHST-EMH31]: LCM: [ End Test ] [[xExchClientAccessServer]CAS] in 0.0780 seconds.
The PowerShell DSC resource '[xExchClientAccessServer]CAS' with SourceInfo
'C:\DSC\psf_TestConfig\ExchangeAutomation\applicationConfiguration_EX_WS_New.ps1::562::13::xExchClientAccessServer'
threw one or more non-terminating errors while running the Test-TargetResource functionality. These errors are logged
to the ETW channel called Microsoft-Windows-DSC/Operational. Refer to this channel for more details.
+ CategoryInfo : InvalidOperation: (:) [], CimException
+ FullyQualifiedErrorId : NonTerminatingErrorFromProvider
+ PSComputerName : localhost
VERBOSE: [DEV2CHHST-EMH31]: LCM: [ Start Resource ] [[xExchExchangeServer]EXServerLicense]
VERBOSE: [DEV2CHHST-EMH31]: LCM: [ Start Test ] [[xExchExchangeServer]EXServerLicense]
VERBOSE: [DEV2CHHST-EMH31]: [[xExchExchangeServer]EXServerLicense] Entering function
'Test-TargetResource'. Notable parameters: Identity = 'dev2chhst-emh31'
VERBOSE: [DEV2CHHST-EMH31]: [[xExchExchangeServer]EXServerLicense] Reusing existing Remote
PowerShell Session to Exchange
VERBOSE: [DEV2CHHST-EMH31]: [[xExchExchangeServer]EXServerLicense] Importing the xExchange
Remote PowerShell Module.
VERBOSE: [DEV2CHHST-EMH31]: [[xExchExchangeServer]EXServerLicense] Loading module from path
'C:\Windows\TEMP\DSCExchangeModule\DSCExchangeModule.psm1'.
The term 'Get-ExchangeServer' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
+ CategoryInfo : ObjectNotFound: (Get-ExchangeServer:) [], CimException
+ FullyQualifiedErrorId : CommandNotFoundException
+ PSComputerName : localhost
Suggested solution to the issue
Unknown.
I tried to run the start-dscconfiguration directly from a Exchange Powershell Session and still get the same errors
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# Create the DAG
xExchDatabaseAvailabilityGroup DAG
{
Name = $DAGName
Credential = $ExchangeInstallCredential
DatacenterActivationMode = $DAGActivationMode
AutoDagTotalNumberOfServers = 4
ManualDagNetworkConfiguration = $DAGManualDAGNetConfig
ReplayLagManagerEnabled = $DAGReplayLagManagerEnabled
SkipDagValidation = $true
WitnessDirectory = $DAGWitNessDirectory
WitnessServer = $DAGWitnessServer
Filesystem = $DAGFileSystem
NetworkCompression = $DAGNetcompression
NetworkEncryption = $DAGNetencryption
#SkipDagValidation = $DAGSkipValidation
DatabaseAvailabilityGroupIPAddresses = $DAGIPAddresses
DependsOn = '[Script]RebootAfterExchangeInstall'
}
$FinalStatusDependencies += "[xExchDatabaseAvailabilityGroup]DAG"
# This section licenses the server
xExchExchangeServer EXServerLicense
{
Identity = $node.computername
Credential = $ExchangeInstallCredential
ProductKey = '7WJV6-H9RMH-F4267-3R2KG-F6PBY'
AllowServiceRestart = $true
DependsOn = '[Script]RebootAfterExchangeInstall'
}
$FinalStatusDependencies += "[xExchExchangeServer]EXServerLicense"
Exchange Server edition and version the target node is running
Exchange 2016 CU19
The operating system the target node is running
OsName : Microsoft Windows Server 2012 R2 Standard
OsOperatingSystemSKU : StandardServerEdition
OsArchitecture : 64-bit
WindowsBuildLabEx : 9600.19067.amd64fre.winblue_ltsb_escrow.180619-2033
OsLanguage : en-US
OsMuiLanguages : {en-US}
Version and build of PowerShell the target node is running
Name Value
---- -----
PSVersion 5.1.14409.1012
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.14409.1012
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
Version of the DSC module that was used
Name Version Path
---- ------- ----
xExchange 1.32.0 C:\Program Files\WindowsPowerShell\Modules\xExchange\1.32.0\xExchange.psd1
Details of the scenario you tried and the problem that is occurring
Install Exchange 2016 -> works
Configure DAG -> not working
Configure DAGNetwork -> not working
Configure Exchange license -> not working
Verbose logs showing the problem
Suggested solution to the issue
Unknown.
I tried to run the start-dscconfiguration directly from a Exchange Powershell Session and still get the same errors
The DSC configuration that is used to reproduce the issue (as detailed as possible)
Exchange Server edition and version the target node is running
Exchange 2016 CU19
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