Bonjour à tous, je voudrais avoir des explications sur le fonctionnement de ce blocs d'instructions :
try {
$ManagedByService="MS DHCP"
$ServiceInstance=${DhcpServerFqdn}
$ExecutingCmd="Import of address data csvs"
$IPAddressToImport| `
Invoke-Command -Session $script:PsSession -Command {`
param($mbs,$si,$af, $path, $name, $scopeid, $subnet, $startip, $endip, $tn, $dhcp) `
$File=$path+$($dhcp+"_"+$tn+"_"+$mbs+"_"+$si+"_"+$scopeid+".csv"); `
$input|export-csv -Path $File -encoding Unicode; `
Import-IpamAddress -AddressFamily $af -Path $File -ManagedByService $mbs -ServiceInstance $si `
-NetworkId $subnet -StartIpAddress $startip -EndIpAddress $endip -Force >$NULL`
}-Argumentlist $ManagedByService, $ServiceInstance, $AddressFamily, $script:Path, $DhcpScope.Name,`
$DHCPScopeId, $DhcpNetworkId,$DhcpStartAddress,$DhcpEndAddress, ${TaskName}, $DhcpServerFqdn -ErrorAction Stop
}
Le module : https://gallery.technet.microsoft.com/scriptcenter/Windows-Server-2012-R2-15d16e82
Si quelqu'un à un éclaircissement se serait sympa que dieu ou autre grand manitou le dirige par ici :)