Powershell 2-copie de l'élément qui crée un dossier n'existe pas

$from = "\\something XLS10_04_22\*"
$to =  "c:\out XLS10_04_22\"
copy-item $from $to -Recurse 

Cela fonctionne si c:\out\1 XLS\2010_04_22\ n'existe pas . Est-il possible avec une seule commande pour créer c:\out\1 XLS\2010_04_22\ si elle n'existe pas?

InformationsquelleAutor MicMit | 2010-04-23