Test/Test_myAdSite.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\myAdSite\myAdSite.psm1' -Verbose -Force $Name = 'SITE1' $Location = 'PARIS' $Description = 'SITE 1 - PARIS' $InterSiteTopologyGeneration = $true $IntraSiteTopologyGeneration = $true $Protected = $false $myParams = @{ Name = $Name Description = $Description Location = $Location InterSiteTopologyGeneration = $InterSiteTopologyGeneration IntraSiteTopologyGeneration = $IntraSiteTopologyGeneration Protected = $Protected Credential = $Credential } Get-TargetResource @myParams -verbose Test-TargetResource @myParams -verbose Set-TargetResource @myParams -verbose |