mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Merge branch 'dev' into win-ltsc
This commit is contained in:
@@ -4695,7 +4695,7 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$CUPPath = "$KBPath\$CUPFileName"
|
$CUPPath = "$KBPath\$CUPFileName"
|
||||||
WriteLog "Latest CU saved to $CUPPath"
|
WriteLog "Latest CU Preview saved to $CUPPath"
|
||||||
}
|
}
|
||||||
|
|
||||||
#Update Latest .NET Framework
|
#Update Latest .NET Framework
|
||||||
@@ -4759,7 +4759,7 @@ try {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$NETPath = "$KBPath\$NETFileName"
|
$NETPath = "$KBPath\$NETFileName"
|
||||||
WriteLog "Latest CU saved to $NETPath"
|
WriteLog "Latest .NET Framework saved to $NETPath"
|
||||||
}
|
}
|
||||||
|
|
||||||
#Search for cached VHDX and skip VHDX creation if there's a cached version
|
#Search for cached VHDX and skip VHDX creation if there's a cached version
|
||||||
@@ -4887,9 +4887,22 @@ try {
|
|||||||
Remove-Item -Path $SSUFilePath -Force | Out-Null
|
Remove-Item -Path $SSUFilePath -Force | Out-Null
|
||||||
WriteLog 'SSU removed'
|
WriteLog 'SSU removed'
|
||||||
}
|
}
|
||||||
WriteLog "Adding Cumulative Updates to $WindowsPartition"
|
# Break out CU and NET updates to be added separately to abide by Checkpoint Update recommendations
|
||||||
# Add-WindowsPackage -Path $WindowsPartition -PackagePath $KBPath -PreventPending | Out-Null
|
if ($UpdateLatestCU) {
|
||||||
Add-WindowsPackage -Path $WindowsPartition -PackagePath $KBPath | Out-Null
|
WriteLog "Adding $CUPath to $WindowsPartition"
|
||||||
|
Add-WindowsPackage -Path $WindowsPartition -PackagePath $CUPath | Out-Null
|
||||||
|
WriteLog "$CUPath added to $WindowsPartition"
|
||||||
|
}
|
||||||
|
if ($UpdatePreviewCU) {
|
||||||
|
WriteLog "Adding $CUPPath to $WindowsPartition"
|
||||||
|
Add-WindowsPackage -Path $WindowsPartition -PackagePath $CUPPath | Out-Null
|
||||||
|
WriteLog "$CUPPath added to $WindowsPartition"
|
||||||
|
}
|
||||||
|
if ($UpdateLatestNet) {
|
||||||
|
WriteLog "Adding $NETPath to $WindowsPartition"
|
||||||
|
Add-WindowsPackage -Path $WindowsPartition -PackagePath $NETPath | Out-Null
|
||||||
|
WriteLog "$NETPath added to $WindowsPartition"
|
||||||
|
}
|
||||||
WriteLog "KBs added to $WindowsPartition"
|
WriteLog "KBs added to $WindowsPartition"
|
||||||
if ($AllowVHDXCaching) {
|
if ($AllowVHDXCaching) {
|
||||||
$cachedVHDXInfo = [VhdxCacheItem]::new()
|
$cachedVHDXInfo = [VhdxCacheItem]::new()
|
||||||
|
|||||||
Reference in New Issue
Block a user