diff --git a/Windows/Gestion des postes/Scripts prèt à porter/Création Arborescence.ps1 b/Windows/Gestion des postes/Scripts prèt à porter/Création Arborescence.ps1 new file mode 100644 index 0000000..2d46768 --- /dev/null +++ b/Windows/Gestion des postes/Scripts prèt à porter/Création Arborescence.ps1 @@ -0,0 +1,19 @@ +# Définir les chemins de l'arborescence +$directories = @( + "S:\DATA", + "S:\DATA\COMMUN", + "S:\PROFILS", + "S:\DATA\PROCESS", + "S:\DATA\SERVICES", + "S:\PRESENTATIONS" +) + +# Créer les répertoires +foreach ($dir in $directories) { + if (-Not (Test-Path -Path $dir)) { + New-Item -Path $dir -ItemType Directory + Write-Host "Created directory: $dir" + } else { + Write-Host "Directory already exists: $dir" + } +} \ No newline at end of file