mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2024-12-29 01:11:30 -06:00
Compare commits
3 Commits
d23e6f92fd
...
3de92566e2
Author | SHA1 | Date | |
---|---|---|---|
|
3de92566e2 | ||
|
3f2d42fa3f | ||
|
31fc41588b |
@ -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 "Mounting complete! Performing removal of applications..."
|
Write-Host "The Windows image has been mounted successfully. Continuing processing..."
|
||||||
} 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,20 +285,22 @@ 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
|
# Prevent Windows Update Installing so called Expedited Apps - 24H2 and newer
|
||||||
@(
|
if ((Microwin-TestCompatibleImage $imgVersion $([System.Version]::new(10,0,26100,1))) -eq $true) {
|
||||||
'EdgeUpdate',
|
@(
|
||||||
'DevHomeUpdate',
|
'EdgeUpdate',
|
||||||
'OutlookUpdate',
|
'DevHomeUpdate',
|
||||||
'CrossDeviceUpdate'
|
'OutlookUpdate',
|
||||||
) | ForEach-Object {
|
'CrossDeviceUpdate'
|
||||||
Write-Host "Removing Windows Expedited App: $_"
|
) | ForEach-Object {
|
||||||
|
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"
|
Write-Host "Done mounting Iso `"$($mountedISO.ImagePath)`""
|
||||||
$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