File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -402,10 +402,8 @@ function Invoke-WPFMicroWinGetIsoRunspace {
402402 $images = Get-WindowsImage - ImagePath $wimFile
403403
404404 $images | ForEach-Object {
405- $imageIdx = $_.ImageIndex
406- $imageName = $_.ImageName
407405 $sync.form.Dispatcher.Invoke ([action ]{
408- $sync.MicrowinWindowsFlavors.Items.Add (" $imageIdx : $imageName " )
406+ $sync.MicrowinWindowsFlavors.Items.Add (" $_ .ImageIndex : $_ .ImageName " )
409407 })
410408 }
411409 } catch {
Original file line number Diff line number Diff line change @@ -395,11 +395,6 @@ function Invoke-WPFMicroWinRunspace {
395395 $currentUser = [System.Security.Principal.WindowsIdentity ]::GetCurrent()
396396 $principal = New-Object System.Security.Principal.WindowsPrincipal($currentUser )
397397 $isAdmin = $principal.IsInRole ([System.Security.Principal.WindowsBuiltInRole ]::Administrator)
398-
399- # Show privilege status again
400- $tokenPrivs = whoami / priv | Out-String
401- $tokenPrivs -split " `n " | Where-Object { $_ -match " Se(Backup|Restore|Security|TakeOwnership|ManageVolume)Privilege" } | ForEach-Object {
402- }
403398 } catch {
404399 }
405400
@@ -460,7 +455,7 @@ function Invoke-WPFMicroWinRunspace {
460455 if (Test-Path $driverPath ) {
461456 Write-Host " Adding Windows Drivers with optimized settings image($scratchDir ) drivers($driverPath )"
462457 # Use optimized DISM settings for better performance
463- dism / English / image:$scratchDir / add-driver / driver:$driverPath / recurse / forceunsigned / loglevel: 1 | Out-Host
458+ dism / English / image:$scratchDir / add-driver / driver:$driverPath / recurse / forceunsigned | Out-Host
464459 } else {
465460 Write-Host " Path to drivers is invalid continuing without driver injection"
466461 }
You can’t perform that action at this time.
0 commit comments