Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Suivre ce blog Administration + Créer mon blog
MENU

GetUniq

Publié le par damcuvelier

function GetUniq{ param($var,$sep) $erroractionpreference = 'SilentlyContinue' $ici = (get-location).path if(!$here){$here = $env:TEMP} set-location $here $arrUniq = @() if($sep -and ($var -match $sep)){$arr = $var.split($sep)}else{$arr = $var} $arr |...

Lire la suite

XML2arr

Publié le par damcuvelier

function XML2arr{ param($xmlfile,$Value) $erroractionpreference = 'SilentlyContinue' $ici = (get-location).path if(!$here){$here = $env:TEMP} set-location $here [xml]$xmlcontent = Get-Content -Path $xmlfile [string]$header = $xmlcontent.DocumentElement.Name...

Lire la suite