templates/exchange.template.yaml [688:793]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                  - '''"'
              waitAfterCompletion: forever
            b-set-DnsSuffix:
              command:
                !Join
                - ''
                - - powershell.exe -command "c:\cfn\scripts\Set-PrimaryDNSSuffix.ps1
                    -Suffix '
                  - !Ref DomainDNSName
                  - '''"'
              waitAfterCompletion: forever
            c-install-edge-prerequisites:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-EdgePrerequisites.ps1
                    -ExchangeServerVersion '
                  - !Ref ExchangeServerVersion
                  - '''"'
              waitAfterCompletion: '0'
            d-reset-local-admin:
              command:
                !Join
                - ''
                - - powershell.exe -command C:\cfn\scripts\Reset-LocalAdminPassword.ps1
                    -ADAdminSecParam '
                  - !Ref ExchangeAdminSecrets
                  - ''''
              waitAfterCompletion: '0'
            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-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'
            i-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'
            j-configure-wsmantrustedhost:
              command: !Sub |
                powershell.exe -command "Set-Item WSMan:\localhost\Client\TrustedHosts -value '${ADServer1PrivateIP}' -Force"
              waitAfterCompletion: '0'
            k-download-visualcruntime:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-Prerequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - VisualCRuntime
                    - 2012x64
                  - '''"'
              waitAfterCompletion: '0'
            l-download-netframework:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-Prerequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - NetFramework
                    - v48
                  - '''"'
            m-install-visualcruntime:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-VisualCRuntime.ps1
                    -DomainNetBIOSName '
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/exchange.template.yaml [1196:1301]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                  - '''"'
              waitAfterCompletion: forever
            b-set-DnsSuffix:
              command:
                !Join
                - ''
                - - powershell.exe -command "c:\cfn\scripts\Set-PrimaryDNSSuffix.ps1
                    -Suffix '
                  - !Ref DomainDNSName
                  - '''"'
              waitAfterCompletion: forever
            c-install-edge-prerequisites:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-EdgePrerequisites.ps1
                    -ExchangeServerVersion '
                  - !Ref ExchangeServerVersion
                  - '''"'
              waitAfterCompletion: '0'
            d-reset-local-admin:
              command:
                !Join
                - ''
                - - powershell.exe -command C:\cfn\scripts\Reset-LocalAdminPassword.ps1
                    -ADAdminSecParam '
                  - !Ref ExchangeAdminSecrets
                  - ''''
              waitAfterCompletion: '0'
            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-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'
            i-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'
            j-configure-wsmantrustedhost:
              command: !Sub |
                powershell.exe -command "Set-Item WSMan:\localhost\Client\TrustedHosts -value '${ADServer1PrivateIP}' -Force"
              waitAfterCompletion: '0'
            k-download-visualcruntime:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-Prerequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - VisualCRuntime
                    - 2012x64
                  - '''"'
              waitAfterCompletion: '0'
            l-download-netframework:
              command:
                !Join
                - ''
                - - 'powershell.exe '
                  - '-ExecutionPolicy RemoteSigned '
                  - -Command "
                  - ' C:\cfn\scripts\Download-Prerequisites.ps1 -source '''
                  - !FindInMap
                    - MediaLinksMapper
                    - NetFramework
                    - v48
                  - '''"'
            m-install-visualcruntime:
              command:
                !Join
                - ''
                - - powershell.exe -Command "C:\cfn\scripts\Install-VisualCRuntime.ps1
                    -DomainNetBIOSName '
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



