mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 10:19:36 -06:00
Compare commits
25 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 47cd0deb03 | |||
| 378941cd5c | |||
| 60d147c71d | |||
| cd36150ddc | |||
| 198a544dbb | |||
| 40616776eb | |||
| 20c9cf8ab3 | |||
| 17558f86aa | |||
| 7408dbb435 | |||
| 9c1fc59af9 | |||
| 31c785b5da | |||
| 5b93135ebb | |||
| 5f4cf0c66e | |||
| ddbf2b0339 | |||
| e62d481405 | |||
| 6c07ac8595 | |||
| 7d74feec0c | |||
| 6b2a4bcb27 | |||
| 6da9ece0d8 | |||
| dc4438dcf9 | |||
| e250e2a130 | |||
| dad51fdf80 | |||
| d60b0301c5 | |||
| db3e09650a | |||
| bcb9911cd0 |
@@ -1,5 +1,21 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
|
|
||||||
|
## **2409.1**
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
- Fix an issue with removal of Defender/OneDrive/Edge after FFU is complete
|
||||||
|
- Migrate Winget downloads to use [Export-WingetPackage cmdlet](https://github.com/microsoft/winget-cli/blob/master/doc/specs/%23658%20-%20WinGet%20Download.md#winget-powershell-cmdlet) as per issue #50
|
||||||
|
- Add support for preview updates https://github.com/rbalsleyMSFT/FFU/pull/51 - thanks to @HedgeComp
|
||||||
|
- Refactor validation of Unattend/prefixes, PPKG, Autopilot to check for these files early in the process, similar to how we check for drivers
|
||||||
|
- Add better logging when unable to find HDD when applying FFU. Will inform to add WinPE drivers to Deployment Media if HDD not found.
|
||||||
|
- Remove ValidateScript on InstallDrivers and break it out in a validation block so -Make and -Model can be specified anywhere in the command line
|
||||||
|
- Add validation for VMHostIPAddress and VMSwtichName and inform the user if these don't match. Should prevent issues where the FFU isn't getting created.
|
||||||
|
- Removed installation of the Windows Security Platform Update as it has been removed from the MU Catalog. See issue #58
|
||||||
|
- Thanks to w0 for PR #54 to change the validation set for WindowsSKU
|
||||||
|
- Thanks to @zehadialam for PR #60 to fix an issue with Windows boot loader for certain devices where Windows Boot Manager is not the first boot entry after the FFU is applied.
|
||||||
|
- Thanks to @HedgeComp for PR #64 and PR #65
|
||||||
|
|
||||||
## **2408.1**
|
## **2408.1**
|
||||||
|
|
||||||
### External Drive Support
|
### External Drive Support
|
||||||
|
|||||||
@@ -30,11 +30,8 @@ for /d %%D in ("%basepath%\*") do (
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@REM for %%F in ("!appfolder!\*.xml") do (
|
|
||||||
@REM set "licensefile=%%F"
|
|
||||||
@REM )
|
|
||||||
if defined mainpackage (
|
if defined mainpackage (
|
||||||
set "dism_command=DISM /Online /Add-ProvisionedAppxPackage /PackagePath:"!mainpackage!""
|
set "dism_command=DISM /Online /Add-ProvisionedAppxPackage /PackagePath:"!mainpackage!" /Region:all /StubPackageOption:installfull"
|
||||||
if exist "!dependenciesfolder!" (
|
if exist "!dependenciesfolder!" (
|
||||||
for %%G in ("!dependenciesfolder!\*") do (
|
for %%G in ("!dependenciesfolder!\*") do (
|
||||||
set "dism_command=!dism_command! /DependencyPackagePath:"%%G""
|
set "dism_command=!dism_command! /DependencyPackagePath:"%%G""
|
||||||
@@ -48,7 +45,6 @@ for /d %%D in ("%basepath%\*") do (
|
|||||||
) else (
|
) else (
|
||||||
set "dism_command=!dism_command! /SkipLicense"
|
set "dism_command=!dism_command! /SkipLicense"
|
||||||
)
|
)
|
||||||
set "dism_command=!dism_command! /Region:All"
|
|
||||||
echo !dism_command!
|
echo !dism_command!
|
||||||
!dism_command!
|
!dism_command!
|
||||||
)
|
)
|
||||||
|
|||||||
+671
-228
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@@ -128,13 +128,18 @@ $LogFileName = 'ScriptLog.txt'
|
|||||||
$USBDrive = Get-USBDrive
|
$USBDrive = Get-USBDrive
|
||||||
New-item -Path $USBDrive -Name $LogFileName -ItemType "file" -Force | Out-Null
|
New-item -Path $USBDrive -Name $LogFileName -ItemType "file" -Force | Out-Null
|
||||||
$LogFile = $USBDrive + $LogFilename
|
$LogFile = $USBDrive + $LogFilename
|
||||||
$version = '2408.1'
|
$version = '2409.1'
|
||||||
WriteLog 'Begin Logging'
|
WriteLog 'Begin Logging'
|
||||||
WriteLog "Script version: $version"
|
WriteLog "Script version: $version"
|
||||||
|
|
||||||
#Find PhysicalDrive
|
#Find PhysicalDrive
|
||||||
# $PhysicalDeviceID = Get-HardDrive
|
# $PhysicalDeviceID = Get-HardDrive
|
||||||
$hardDrive = Get-HardDrive
|
$hardDrive = Get-HardDrive
|
||||||
|
if($hardDrive -eq $null){
|
||||||
|
WriteLog 'No hard drive found. Exiting'
|
||||||
|
WriteLog 'Try adding storage drivers to the PE boot image (you can re-create your FFU and USB drive and add the PE drivers to the PEDrivers folder and add -CopyPEDrivers $true to the command line, or manually add them via DISM)'
|
||||||
|
Exit
|
||||||
|
}
|
||||||
$PhysicalDeviceID = $hardDrive.DeviceID
|
$PhysicalDeviceID = $hardDrive.DeviceID
|
||||||
$BytesPerSector = $hardDrive.BytesPerSector
|
$BytesPerSector = $hardDrive.BytesPerSector
|
||||||
WriteLog "Physical BytesPerSector is $BytesPerSector"
|
WriteLog "Physical BytesPerSector is $BytesPerSector"
|
||||||
@@ -549,6 +554,12 @@ If (Test-Path -Path $Drivers)
|
|||||||
WriteLog 'Copying drivers succeeded'
|
WriteLog 'Copying drivers succeeded'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WriteLog "Setting Windows Boot Manager to be first in the display order."
|
||||||
|
Invoke-Process bcdedit.exe "/set {fwbootmgr} displayorder {bootmgr} /addfirst"
|
||||||
|
WriteLog "Windows Boot Manager has been set to be first in the display order."
|
||||||
|
WriteLog "Setting default Windows boot loader to be first in the display order."
|
||||||
|
Invoke-Process bcdedit.exe "/set {bootmgr} displayorder {default} /addfirst"
|
||||||
|
WriteLog "The default Windows boot loader has been set to be first in the display order."
|
||||||
#Copy DISM log to USBDrive
|
#Copy DISM log to USBDrive
|
||||||
WriteLog "Copying dism log to $USBDrive"
|
WriteLog "Copying dism log to $USBDrive"
|
||||||
invoke-process xcopy "X:\Windows\logs\dism\dism.log $USBDrive /Y"
|
invoke-process xcopy "X:\Windows\logs\dism\dism.log $USBDrive /Y"
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ The Full-Flash update (FFU) process can automatically download the latest releas
|
|||||||
|
|
||||||
# Updates
|
# Updates
|
||||||
|
|
||||||
2408.1 has been released! Check out the changes in the [Change Log](ChangeLog.md)
|
2409.1 has been released! Check out the changes in the [Change Log](ChangeLog.md)
|
||||||
|
|
||||||
# Getting Started
|
# Getting Started
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user