The following Windows PowerShell commands create a new MDT DB on the deployment_server server for the Production deployment share. The database connection will be via TCP/IP.

·      Add-PSSnapIn Microsoft.BDD.PSSnapIn

·      New-PSDrive -Name "DS002" -PSProvider MDTProvider -Root "D:\Production Deployment Share"

·      New-MDTDatabase -path "DS002:" -SQLServer "DeploymentServer" -Netlib "DBMSSOCN" -Database "MDT2010" -SQLShare "DB_Connect" -Force -Verbose

Related Topics

Using Windows PowerShell to Perform Common Tasks