What does the Wait-Job -Name addFeature achieve? $featureLogPath = "c:\poshlog\featurelog.txt" start-job -Name addFeature -ScriptBlock { Add-WindowsFeature -Name "ad-domain-services"...


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



Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here