mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-31 18:24:27 -06:00
Compare commits
No commits in common. "3de92566e257dda3201a77e2d99209901147ec5b" and "d23e6f92fd97aa2a6680041077946780763830fd" have entirely different histories.
3de92566e2
...
d23e6f92fd
@ -111,7 +111,7 @@ public class PowerManagement {
|
|||||||
Write-Host "Mounting Windows image. This may take a while."
|
Write-Host "Mounting Windows image. This may take a while."
|
||||||
Mount-WindowsImage -ImagePath "$mountDir\sources\install.wim" -Index $index -Path "$scratchDir"
|
Mount-WindowsImage -ImagePath "$mountDir\sources\install.wim" -Index $index -Path "$scratchDir"
|
||||||
if ($?) {
|
if ($?) {
|
||||||
Write-Host "The Windows image has been mounted successfully. Continuing processing..."
|
Write-Host "Mounting complete! Performing removal of applications..."
|
||||||
} else {
|
} else {
|
||||||
Write-Host "Could not mount image. Exiting..."
|
Write-Host "Could not mount image. Exiting..."
|
||||||
Set-WinUtilTaskbaritem -state "Error" -value 1 -overlay "warning"
|
Set-WinUtilTaskbaritem -state "Error" -value 1 -overlay "warning"
|
||||||
@ -285,22 +285,20 @@ public class PowerManagement {
|
|||||||
reg add "HKLM\zSYSTEM\Setup\LabConfig" /v "BypassTPMCheck" /t REG_DWORD /d 1 /f
|
reg add "HKLM\zSYSTEM\Setup\LabConfig" /v "BypassTPMCheck" /t REG_DWORD /d 1 /f
|
||||||
reg add "HKLM\zSYSTEM\Setup\MoSetup" /v "AllowUpgradesWithUnsupportedTPMOrCPU" /t REG_DWORD /d 1 /f
|
reg add "HKLM\zSYSTEM\Setup\MoSetup" /v "AllowUpgradesWithUnsupportedTPMOrCPU" /t REG_DWORD /d 1 /f
|
||||||
|
|
||||||
# Prevent Windows Update Installing so called Expedited Apps - 24H2 and newer
|
# Prevent Windows Update Installing so called Expedited Apps
|
||||||
if ((Microwin-TestCompatibleImage $imgVersion $([System.Version]::new(10,0,26100,1))) -eq $true) {
|
@(
|
||||||
@(
|
'EdgeUpdate',
|
||||||
'EdgeUpdate',
|
'DevHomeUpdate',
|
||||||
'DevHomeUpdate',
|
'OutlookUpdate',
|
||||||
'OutlookUpdate',
|
'CrossDeviceUpdate'
|
||||||
'CrossDeviceUpdate'
|
) | ForEach-Object {
|
||||||
) | ForEach-Object {
|
Write-Host "Removing Windows Expedited App: $_"
|
||||||
Write-Host "Removing Windows Expedited App: $_"
|
|
||||||
|
|
||||||
# Copied here After Installation (Online)
|
# Copied here After Installation (Online)
|
||||||
# reg delete "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler\$_" /f | Out-Null
|
# reg delete "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler\$_" /f | Out-Null
|
||||||
|
|
||||||
# When in Offline Image
|
# When in Offline Image
|
||||||
reg delete "HKLM\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\$_" /f | Out-Null
|
reg delete "HKLM\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\$_" /f | Out-Null
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
reg add "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
|
reg add "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\Search" /v "SearchboxTaskbarMode" /t REG_DWORD /d 0 /f
|
||||||
|
@ -169,7 +169,7 @@ function Invoke-MicrowinGetIso {
|
|||||||
try {
|
try {
|
||||||
Write-Host "Mounting Iso. Please wait."
|
Write-Host "Mounting Iso. Please wait."
|
||||||
$mountedISO = Mount-DiskImage -PassThru "$filePath"
|
$mountedISO = Mount-DiskImage -PassThru "$filePath"
|
||||||
Write-Host "Done mounting Iso `"$($mountedISO.ImagePath)`""
|
Write-Host "Done mounting Iso $mountedISO"
|
||||||
$driveLetter = (Get-Volume -DiskImage $mountedISO).DriveLetter
|
$driveLetter = (Get-Volume -DiskImage $mountedISO).DriveLetter
|
||||||
Write-Host "Iso mounted to '$driveLetter'"
|
Write-Host "Iso mounted to '$driveLetter'"
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user