Create Folder If Not Exists in PowerShell
The PowerShell script included in this blog post checks if a specific folder exists and then creates it if it does not already exist.
The PowerShell script included in this blog post checks if a specific folder exists and then creates it if it does not already exist.
The New-Item cmdlet will create new files or folders in PowerShell. Amend the -ItemType parameter to File or Directory and include a Name for the file or folder.