What does the Wait-Job -Name addFeature achieve?
$featureLogPath = "c:\poshlog\featurelog.txt"
start-job -Name addFeature -ScriptBlock
{
Add-WindowsFeature -Name "ad-domain-services" -IncludeAllSubFeature -IncludeManagementTools
Add-WindowsFeature -Name "dns" -IncludeAllSubFeature
- IncludeManagementTools Add-WindowsFeature -Name "gpmc"
- IncludeAllSubFeature
-IncludeManagementTools
}
Wait-Job -Name addFeature
Get-WindowsFeature | Where installed >> $featureLogPath
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here