From f28281671e16a85c8c5afe884e30a206ec4c71f9 Mon Sep 17 00:00:00 2001 From: rbalsleyMSFT Date: Thu, 29 Jun 2023 12:04:27 -0700 Subject: [PATCH] Fixed an issue with manually naming a device. Updated version string --- FFUDevelopment/BuildFFUVM.ps1 | 2 +- FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/FFUDevelopment/BuildFFUVM.ps1 b/FFUDevelopment/BuildFFUVM.ps1 index ed6d1ec..cc11ca5 100644 --- a/FFUDevelopment/BuildFFUVM.ps1 +++ b/FFUDevelopment/BuildFFUVM.ps1 @@ -202,7 +202,7 @@ param( [ValidateSet(512, 4096)] [uint32]$LogicalSectorSizeBytes = 512 ) -$version = '2306.1.1' +$version = '2306.1.2' #Check if Hyper-V feature is installed (requires only checks the module) $osInfo = Get-WmiObject -Class Win32_OperatingSystem diff --git a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 index 88f1ee2..30b5fc0 100644 --- a/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 +++ b/FFUDevelopment/WinPEDeployFFUFiles/ApplyFFU.ps1 @@ -117,7 +117,9 @@ $LogFileName = 'ScriptLog.txt' $USBDrive = Get-USBDrive New-item -Path $USBDrive -Name $LogFileName -ItemType "file" -Force | Out-Null $LogFile = $USBDrive + $LogFilename +$version = '2306.1.2' WriteLog 'Begin Logging' +WriteLog "Script version: $version" #Find PhysicalDrive $PhysicalDeviceID = Get-HardDrive @@ -543,7 +545,7 @@ If ($PPKGFileToInstall){ } } #Set DeviceName -If ($PrefixToUse){ +If ($computername){ try{ $PantherDir = 'w:\windows\panther' If (Test-Path -Path $PantherDir){