![]() Be sure to test that out!Ī tip if you are piloting moving Windows Update for business, add a variable to the Co-Management Pilot collection. In our Task Sequence we add the following steps, note the Restart Computer steps, I had to add two restart computer steps to get all of my physical test machines to not break the task sequence engine with an unexpected reboot. In Configuration Manager we create a Package with source files and distribute them to the relevant DP’s. Our source folder now looks something like this and can be copied to our MEMCM Source folder share. ![]() Get-WindowsUpdate -AcceptAll -Install -NotCategory "Drivers" -NotTitle Preview -WindowsUpdate -IgnoreReboot | Out-File "$SMSTSLogfilepath\WindowsUpdate-$(get-date -f yyyy-MM-dd).log" -force $SMSTSLogfilepath = $SMSTSLogfile.Replace("\SMSTS.log", "") $SMSTSLogfile = $tsenv.Value("_SMSTSLogPath") Mkdir $TargetPath -Force -ErrorAction Stop | Out-NullĬopy-item -path $PSScriptRoot'\PSWindowsUpdate' -Destination $TargetPath -Recurse $TargetPath = Join-Path -Path $env:ProgramFiles -ChildPath "WindowsPowerShell\Modules" ![]() # Script to install updates from Microsoft Update during OSD
0 Comments
Leave a Reply. |