ayi_2 <p>Essayez le paramètre <code>-Force</code> :</p> <pre><code class="lang-auto">New-Item -ItemType Directory -Force -Path C:\Path\That\May\Or\May\Not\Exist </code></pre> <p>Vous pouvez utiliser <a href="https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/test-path?view=powershell-5.1"><code>Test-Path -PathType Container</code></a> pour vérifier d’abord.</p> <p>Consultez l’article d’aide MSDN sur <a href="https://learn.microsoft.com/en-us/powershell/module/Microsoft.PowerShell.Management/New-Item">New-Item</a> pour plus de détails.</p>