Test/Test_myAdExchPrepareSchema.ps1
<#
.NOTES =========================================================================== Created with: SAPIEN Technologies, Inc., PowerShell Studio 2016 v5.2.127 Created on: 25/08/2016 10:44 Created by: Jean-Yves Moschetto Organization: CARIB INFRA - YOURSYSTEMS Filename: =========================================================================== .DESCRIPTION A description of the file. #> Import-Module '..\DSCResources\myAdHelper.psm1' -Verbose -Force Import-Module '..\DSCResources\myAdExchPrepareSchema\myAdExchPrepareSchema.psm1' -Verbose -Force $ExchSchemaVersion = '15317' $Path = 'O:\Exchange_Svr_2016_MultiLang_-3_Std_Ent_.iso_MLF_X21-15041\Setup.exe' $Arguments = '/PrepareSchema /IAcceptExchangeServerLicenseTerms' $myParams = @{ Arguments = $Arguments Path = $Path Credential = $Credential ExchSchemaVersion = $ExchSchemaVersion } Get-TargetResource @myParams -verbose Test-TargetResource @myParams -verbose Set-TargetResource @myParams -verbose |