templates/exchange.template.yaml [2066:2237]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                  - '''"'
              waitAfterCompletion: forever
            b-join-domain:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Join-Domain.ps1 -DomainName
                    '
                  - !Ref DomainDNSName
                  - ''' -ADAdminSecParam '''
                  - !Ref ExchangeAdminSecrets
                  - '''"'
              waitAfterCompletion: forever
            c-install-windows-failover-clustering:
              command: powershell.exe -Command "C:\cfn\scripts\Install-WindowsFailoverClustering.ps1"
              waitAfterCompletion: '0'
            d-install-exchange-prerequisites:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-ExchPrerequisites.ps1
                    -ExchangeServerVersion '
                  - !Ref ExchangeServerVersion
                  - '''"'
              waitAfterCompletion: forever
            e-enable-credssp:
              command: powershell.exe -ExecutionPolicy RemoteSigned -Command "C:\cfn\scripts\Enable-CredSSP.ps1"
              waitAfterCompletion: '0'
            f-disable-uac:
              command: powershell.exe -ExecutionPolicy RemoteSigned -Command "C:\cfn\scripts\Configure-UAC.ps1
                -status Disable"
              waitAfterCompletion: '0'
            g-reboot:
              command: powershell.exe -Command "C:\cfn\scripts\Restart-Computer.ps1"
              waitAfterCompletion: forever
            h-initializedisks:
              command:
                !If
                - UseReFSDataVolumes
                - powershell.exe -command "C:\cfn\scripts\Initialize-Disks.ps1" -EnableReFSVolumes $true
                - powershell.exe -command "C:\cfn\scripts\Initialize-Disks.ps1" -EnableReFSVolumes $false
              waitAfterCompletion: '0'
            i-download-exchange-kit:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-PreRequisites.ps1 -source '''
                  - !If
                    - Exchange2016Selected
                    - !Ref Exchange2016Source
                    - !Ref Exchange2019Source
                  - '''"'
              waitAfterCompletion: '0'
            j-expand-exchange-kit:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Expand-Exchange.ps1 -ExchangeServerVersion '''
                  - !Ref ExchangeServerVersion
                  - ''' -ExchangeDownloadLink '''
                  - !If
                    - Exchange2016Selected
                    - !Ref Exchange2016Source
                    - !Ref Exchange2019Source
                  - '''"'
              waitAfterCompletion: '0'
            k-download-ucmaruntime:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-PreRequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - UCMA
                    - ALL
                  - '''"'
              waitAfterCompletion: '0'
            l-download-visualcruntime:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-Prerequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - VisualCRuntime
                    - 2013x64
                  - '''"'
              waitAfterCompletion: '0'
            m-download-netframework:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-Prerequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - NetFramework
                    - v48
                  - '''"'
              waitAfterCompletion: '0'
            n-install-visualcruntime:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-VisualCRuntime.ps1
                    -DomainNetBIOSName '
                  - !Ref DomainNetBIOSName
                  - ''' -DomainAdminUser '''
                  - !Ref DomainAdminUser
                  - ''' -ExUserSecParam '''
                  - !Ref ExchangeAdminSecrets
                  - ''' -VisualCRuntimeLink '''
                  - !FindInMap
                    - MediaLinksMapper
                    - VisualCRuntime
                    - 2013x64
                  - '''"'
            o-install-netframework:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-NetFramework.ps1
                    -DomainNetBIOSName '
                  - !Ref DomainNetBIOSName
                  - ''' -DomainAdminUser '''
                  - !Ref DomainAdminUser
                  - ''' -ExUserSecParam '''
                  - !Ref ExchangeAdminSecrets
                  - ''' -NetFrameworkDownloadLink '''
                  - !FindInMap
                    - MediaLinksMapper
                    - NetFramework
                    - v48
                  - '''"'
            p-download-visualcruntime2012:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-Prerequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - VisualCRuntime
                    - 2012x64
                  - '''"'
            q-install-visualcruntime2012:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-VisualCRuntime.ps1
                    -DomainNetBIOSName '
                  - !Ref DomainNetBIOSName
                  - ''' -DomainAdminUser '''
                  - !Ref DomainAdminUser
                  - ''' -ExUserSecParam '''
                  - !Ref ExchangeAdminSecrets
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/exchange.template.yaml [3351:3522]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                  - '''"'
              waitAfterCompletion: forever
            b-join-domain:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Join-Domain.ps1 -DomainName
                    '
                  - !Ref DomainDNSName
                  - ''' -ADAdminSecParam '''
                  - !Ref ExchangeAdminSecrets
                  - '''"'
              waitAfterCompletion: forever
            c-install-windows-failover-clustering:
              command: powershell.exe -Command "C:\cfn\scripts\Install-WindowsFailoverClustering.ps1"
              waitAfterCompletion: '0'
            d-install-exchange-prerequisites:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-ExchPrerequisites.ps1
                    -ExchangeServerVersion '
                  - !Ref ExchangeServerVersion
                  - '''"'
              waitAfterCompletion: forever
            e-enable-credssp:
              command: powershell.exe -ExecutionPolicy RemoteSigned -Command "C:\cfn\scripts\Enable-CredSSP.ps1"
              waitAfterCompletion: '0'
            f-disable-uac:
              command: powershell.exe -ExecutionPolicy RemoteSigned -Command "C:\cfn\scripts\Configure-UAC.ps1
                -status Disable"
              waitAfterCompletion: '0'
            g-reboot:
              command: powershell.exe -Command "C:\cfn\scripts\Restart-Computer.ps1"
              waitAfterCompletion: forever
            h-initializedisks:
              command:
                !If
                - UseReFSDataVolumes
                - powershell.exe -command "C:\cfn\scripts\Initialize-Disks.ps1" -EnableReFSVolumes $true
                - powershell.exe -command "C:\cfn\scripts\Initialize-Disks.ps1" -EnableReFSVolumes $false
              waitAfterCompletion: '0'
            i-download-exchange-kit:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-PreRequisites.ps1 -source '''
                  - !If
                    - Exchange2016Selected
                    - !Ref Exchange2016Source
                    - !Ref Exchange2019Source
                  - '''"'
              waitAfterCompletion: '0'
            j-expand-exchange-kit:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Expand-Exchange.ps1 -ExchangeServerVersion '''
                  - !Ref ExchangeServerVersion
                  - ''' -ExchangeDownloadLink '''
                  - !If
                    - Exchange2016Selected
                    - !Ref Exchange2016Source
                    - !Ref Exchange2019Source
                  - '''"'
              waitAfterCompletion: '0'
            k-download-ucmaruntime:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-PreRequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - UCMA
                    - ALL
                  - '''"'
              waitAfterCompletion: '0'
            l-download-visualcruntime:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-Prerequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - VisualCRuntime
                    - 2013x64
                  - '''"'
              waitAfterCompletion: '0'
            m-download-netframework:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-Prerequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - NetFramework
                    - v48
                  - '''"'
              waitAfterCompletion: '0'
            n-install-visualcruntime:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-VisualCRuntime.ps1
                    -DomainNetBIOSName '
                  - !Ref DomainNetBIOSName
                  - ''' -DomainAdminUser '''
                  - !Ref DomainAdminUser
                  - ''' -ExUserSecParam '''
                  - !Ref ExchangeAdminSecrets
                  - ''' -VisualCRuntimeLink '''
                  - !FindInMap
                    - MediaLinksMapper
                    - VisualCRuntime
                    - 2013x64
                  - '''"'
            o-install-netframework:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-NetFramework.ps1
                    -DomainNetBIOSName '
                  - !Ref DomainNetBIOSName
                  - ''' -DomainAdminUser '''
                  - !Ref DomainAdminUser
                  - ''' -ExUserSecParam '''
                  - !Ref ExchangeAdminSecrets
                  - ''' -NetFrameworkDownloadLink '''
                  - !FindInMap
                    - MediaLinksMapper
                    - NetFramework
                    - v48
                  - '''"'
            p-download-visualcruntime2012:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-Prerequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - VisualCRuntime
                    - 2012x64
                  - '''"'
            q-install-visualcruntime2012:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-VisualCRuntime.ps1
                    -DomainNetBIOSName '
                  - !Ref DomainNetBIOSName
                  - ''' -DomainAdminUser '''
                  - !Ref DomainAdminUser
                  - ''' -ExUserSecParam '''
                  - !Ref ExchangeAdminSecrets
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



