From 0cfcc85438de9c3d92f18ed79faf13fed4e8ff61 Mon Sep 17 00:00:00 2001 From: Ichbine Date: Tue, 11 Mar 2025 11:36:13 +0100 Subject: [PATCH] =?UTF-8?q?ajout=20du=20script=20de=20cr=C3=A9tation=20d'a?= =?UTF-8?q?rborescence?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Création Arborescence.ps1 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Windows/Gestion des postes/Scripts prèt à porter/Création Arborescence.ps1 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