
This article has not been completed yet. However, it may already contain helpful information and therefore it has been published at this stage.
Introduction:
# Path for Databasefile
New-Item -Path "D:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Data" -ItemType Directory -Force
# Path for Logfile
New-Item -Path "L:\Program Files\Microsoft SQL Server\MSSQL15.MSSQLSERVER\MSSQL\Data" -ItemType Directory -Force
Conclusion:
Sources:
New-Item (Microsoft.PowerShell.Management) - PowerShell
The New-Item cmdlet creates a new item and sets its value. The types of items that can be created depend on the location of the item. For example, in the file system, New-Item creates files and folders. In the registry, New-Item creates registry keys and entries. New-Item can also set the value of t…
