dummy.psm1
param([string] $turnKeyRoot = "C:\tools\deployment\") # install ps provider Install-Module -Name "PowerShellGet" -Force -ErrorAction SilentlyContinue | Out-Null #install turnkey $mod = Install-module TurnKeySdn -Force Import-Module TurnKeySdn -Force $mod = Get-Module TurnKeySdn mkdir "$turnKeyRoot\TurnKeySdn" -Force -ErrorAction SilentlyContinue | Out-Null copy-item -Path "$($mod.ModuleBase)\*" -Destination "$turnKeyRoot\TurnKeySdn\" -Recurse -Force -ErrorAction Stop #install sdnexpress $mod = Install-module SdnExpress -Force Import-Module SdnExpress -Force $mod = Get-Module SdnExpress mkdir "$turnKeyRoot\SdnExpress" -Force -ErrorAction SilentlyContinue | Out-Null copy-item -Path "$($mod.ModuleBase)\*" -Destination "$turnKeyRoot\SdnExpress\" -Recurse -Force -ErrorAction Stop # run tests Import-Module .\TurnKeySdn\TurnKeySdn.psd1 -Force Import-Module .\TurnKeySdn\HLK-Driver.psm1 -Force Init-HLKSDNWorkload -NetworkPrefix "173.20.0.1/16" -VLANID 9 -NCNodeCount 1 -TotalVMCount 20 -CSVFolderPath C:\ClusterStorage\SdnSpace\ -VHDPath C:\ClusterStorage\SdnSpace\VHDs\ -VHDFileName 23h2.vhdx -SdnSwitchname sdnswitch -InternetSwitchName "corp" -DomainName CFDEV.NTTEST.MICROSOFT.COM -DomainUserName wolfpack -DomainPassword wolfpack -WorkloadUserName administrator -WorkloadPassword administrator |