Test/Test_myAdExchPrepareAD.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\myAdExchPrepareAD\myAdExchPrepareAD.psm1' -Verbose -Force $Path = 'O:\Exchange_Svr_2016_MultiLang_-3_Std_Ent_.iso_MLF_X21-15041\Setup.exe' $Arguments = '/PrepareAD /OrganizationName:MYORG /IAcceptExchangeServerLicenseTerms' $myParams = @{ Path = $Path Arguments = $Arguments Credential = $Credential } Get-TargetResource @myParams -verbose Test-TargetResource @myParams -verbose Set-TargetResource @myParams -verbose |