The following Windows PowerShell commands create a new Applications selection profile.

·      Add-PSSnapIn Microsoft.BDD.PSSnapIn

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

·      New-item -path "DS002:\Selection Profiles" -enable "True" -Name "Applications" -Comments "" -Definition "<SelectionProfile><Include path="Applications" /></SelectionProfile>" -ReadOnly "False" -Verbose

Related Topics

Using Windows PowerShell to Perform Common Tasks