Merge pull request #1 from rbalsleyMSFT/vnext

Vnext
This commit is contained in:
rbalsleyMSFT
2023-06-29 12:06:30 -07:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -202,7 +202,7 @@ param(
[ValidateSet(512, 4096)] [ValidateSet(512, 4096)]
[uint32]$LogicalSectorSizeBytes = 512 [uint32]$LogicalSectorSizeBytes = 512
) )
$version = '2306.1.1' $version = '2306.1.2'
#Check if Hyper-V feature is installed (requires only checks the module) #Check if Hyper-V feature is installed (requires only checks the module)
$osInfo = Get-WmiObject -Class Win32_OperatingSystem $osInfo = Get-WmiObject -Class Win32_OperatingSystem
@@ -117,7 +117,9 @@ $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 = '2306.1.2'
WriteLog 'Begin Logging' WriteLog 'Begin Logging'
WriteLog "Script version: $version"
#Find PhysicalDrive #Find PhysicalDrive
$PhysicalDeviceID = Get-HardDrive $PhysicalDeviceID = Get-HardDrive
@@ -543,7 +545,7 @@ If ($PPKGFileToInstall){
} }
} }
#Set DeviceName #Set DeviceName
If ($PrefixToUse){ If ($computername){
try{ try{
$PantherDir = 'w:\windows\panther' $PantherDir = 'w:\windows\panther'
If (Test-Path -Path $PantherDir){ If (Test-Path -Path $PantherDir){