mirror of
https://github.com/rbalsleyMSFT/FFU.git
synced 2026-06-14 02:09:35 -06:00
Fixed an issue with manually naming a device. Updated version string
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user