From 4d2ea15e190e44eec655b9483a58ef521573d440 Mon Sep 17 00:00:00 2001 From: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Date: Wed, 14 Aug 2024 21:31:24 +0200 Subject: [PATCH 1/9] [MicroWin] Add try-catch block for AppX packages (#2560) --- .../private/Invoke-WinUtilMicroWin-Helper.ps1 | 71 ++++++++++--------- 1 file changed, 39 insertions(+), 32 deletions(-) diff --git a/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 b/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 index bdd843f8..3f473d85 100644 --- a/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 +++ b/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 @@ -132,42 +132,49 @@ function Remove-ProvisionedPackages() { .EXAMPLE Remove-ProvisionedPackages #> - $appxProvisionedPackages = Get-AppxProvisionedPackage -Path "$($scratchDir)" | Where-Object { - $_.PackageName -NotLike "*AppInstaller*" -AND - $_.PackageName -NotLike "*Store*" -and - $_.PackageName -NotLike "*dism*" -and - $_.PackageName -NotLike "*Foundation*" -and - $_.PackageName -NotLike "*FodMetadata*" -and - $_.PackageName -NotLike "*LanguageFeatures*" -and - $_.PackageName -NotLike "*Notepad*" -and - $_.PackageName -NotLike "*Printing*" -and - $_.PackageName -NotLike "*Wifi*" -and - $_.PackageName -NotLike "*Foundation*" -and - $_.PackageName -NotLike "*YourPhone*" -and - $_.PackageName -NotLike "*Xbox*" -and - $_.PackageName -NotLike "*WindowsTerminal*" -and - $_.PackageName -NotLike "*Calculator*" -and - $_.PackageName -NotLike "*Photos*" -and - $_.PackageName -NotLike "*VCLibs*" -and - $_.PackageName -NotLike "*Paint*" -and - $_.PackageName -NotLike "*Gaming*" -and - $_.PackageName -NotLike "*Extension*" -and - $_.PackageName -NotLike "*SecHealthUI*" - + try + { + $appxProvisionedPackages = Get-AppxProvisionedPackage -Path "$($scratchDir)" | Where-Object { + $_.PackageName -NotLike "*AppInstaller*" -AND + $_.PackageName -NotLike "*Store*" -and + $_.PackageName -NotLike "*dism*" -and + $_.PackageName -NotLike "*Foundation*" -and + $_.PackageName -NotLike "*FodMetadata*" -and + $_.PackageName -NotLike "*LanguageFeatures*" -and + $_.PackageName -NotLike "*Notepad*" -and + $_.PackageName -NotLike "*Printing*" -and + $_.PackageName -NotLike "*Wifi*" -and + $_.PackageName -NotLike "*Foundation*" -and + $_.PackageName -NotLike "*YourPhone*" -and + $_.PackageName -NotLike "*Xbox*" -and + $_.PackageName -NotLike "*WindowsTerminal*" -and + $_.PackageName -NotLike "*Calculator*" -and + $_.PackageName -NotLike "*Photos*" -and + $_.PackageName -NotLike "*VCLibs*" -and + $_.PackageName -NotLike "*Paint*" -and + $_.PackageName -NotLike "*Gaming*" -and + $_.PackageName -NotLike "*Extension*" -and + $_.PackageName -NotLike "*SecHealthUI*" } - $counter = 0 - foreach ($appx in $appxProvisionedPackages) { - $status = "Removing Provisioned $($appx.PackageName)" - Write-Progress -Activity "Removing Provisioned Apps" -Status $status -PercentComplete ($counter++/$appxProvisionedPackages.Count*100) - try { - Remove-AppxProvisionedPackage -Path "$scratchDir" -PackageName $appx.PackageName -ErrorAction SilentlyContinue - } catch { - Write-Host "Application $($appx.PackageName) could not be removed" - continue + $counter = 0 + foreach ($appx in $appxProvisionedPackages) { + $status = "Removing Provisioned $($appx.PackageName)" + Write-Progress -Activity "Removing Provisioned Apps" -Status $status -PercentComplete ($counter++/$appxProvisionedPackages.Count*100) + try { + Remove-AppxProvisionedPackage -Path "$scratchDir" -PackageName $appx.PackageName -ErrorAction SilentlyContinue + } catch { + Write-Host "Application $($appx.PackageName) could not be removed" + continue + } } + Write-Progress -Activity "Removing Provisioned Apps" -Status "Ready" -Completed + } + catch + { + # This can happen if getting AppX packages fails + Write-Host "Unable to get information about the AppX packages. MicroWin processing will continue, but AppX packages will not be processed" } - Write-Progress -Activity "Removing Provisioned Apps" -Status "Ready" -Completed } function Copy-ToUSB([string]$fileToCopy) { From 93c96fafd216e16b0698bae4f619516f8b553bea Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Thu, 15 Aug 2024 15:31:07 +0000 Subject: [PATCH 2/9] =?UTF-8?q?Deploying=20to=20main=20from=20@=20ChrisTit?= =?UTF-8?q?usTech/winutil@4d2ea15e190e44eec655b9483a58ef521573d440=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 942a03d1..2c5e498d 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ If you have Issues, refer to [Known Issues](https://christitustech.github.io/win These are the sponsors that help keep this project alive with monthly contributions. -Yusuke SaitoTriHyderaMark AmosJason A. DiegmuellerwyattStefanthaddlPaulDave JonesAnthony MendezMichael WozniakxPandaku +Yusuke SaitoTriHyderaMark AmosJason A. DiegmuellerwyattStefanthaddlPaulDave JonesAnthony MendezMichael WozniakxPandakuClaudemods ## 🏅 Thanks to all Contributors Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep rocking 🍻. From 307980a7efcec8025b686b95d1f863d0c4b99724 Mon Sep 17 00:00:00 2001 From: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Date: Fri, 16 Aug 2024 07:12:44 +0200 Subject: [PATCH 3/9] Fixed VMware network driver issues (#2567) --- functions/private/Invoke-WinUtilMicroWin-Helper.ps1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 b/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 index 3f473d85..8dfd1af0 100644 --- a/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 +++ b/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 @@ -101,7 +101,9 @@ function Remove-Packages { $_ -NotLike "*DesktopAppInstaller*" -AND $_ -NotLike "*WebMediaExtensions*" -AND $_ -NotLike "*WMIC*" -AND - $_ -NotLike "*UI.XaML*" + $_ -NotLike "*UI.XaML*" -AND + $_ -NotLike "*Ethernet*" -AND + $_ -NotLike "*Wifi*" } foreach ($pkg in $pkglist) { @@ -143,7 +145,6 @@ function Remove-ProvisionedPackages() { $_.PackageName -NotLike "*LanguageFeatures*" -and $_.PackageName -NotLike "*Notepad*" -and $_.PackageName -NotLike "*Printing*" -and - $_.PackageName -NotLike "*Wifi*" -and $_.PackageName -NotLike "*Foundation*" -and $_.PackageName -NotLike "*YourPhone*" -and $_.PackageName -NotLike "*Xbox*" -and From 3dd51a6c3cd48b5e8504473dfd588da840211a24 Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Fri, 16 Aug 2024 15:30:52 +0000 Subject: [PATCH 4/9] =?UTF-8?q?Deploying=20to=20main=20from=20@=20ChrisTit?= =?UTF-8?q?usTech/winutil@307980a7efcec8025b686b95d1f863d0c4b99724=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2c5e498d..8475bee6 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ If you have Issues, refer to [Known Issues](https://christitustech.github.io/win These are the sponsors that help keep this project alive with monthly contributions. -Yusuke SaitoTriHyderaMark AmosJason A. DiegmuellerwyattStefanthaddlPaulDave JonesAnthony MendezMichael WozniakxPandakuClaudemods +Yusuke SaitoTriHyderaMark AmosJason A. DiegmuellerwyattStefanthaddlPaulDave JonesAnthony MendezMichael WozniakxPandakuClaudemods ## 🏅 Thanks to all Contributors Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep rocking 🍻. From 11d3c66fc06643b25a51e730e8a59d669e940b48 Mon Sep 17 00:00:00 2001 From: ChrisTitusTech Date: Sun, 18 Aug 2024 15:30:57 +0000 Subject: [PATCH 5/9] =?UTF-8?q?Deploying=20to=20main=20from=20@=20ChrisTit?= =?UTF-8?q?usTech/winutil@3dd51a6c3cd48b5e8504473dfd588da840211a24=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8475bee6..1233f475 100644 --- a/README.md +++ b/README.md @@ -52,7 +52,7 @@ If you have Issues, refer to [Known Issues](https://christitustech.github.io/win These are the sponsors that help keep this project alive with monthly contributions. -Yusuke SaitoTriHyderaMark AmosJason A. DiegmuellerwyattStefanthaddlPaulDave JonesAnthony MendezMichael WozniakxPandakuClaudemods +Yusuke SaitoTriHyderaMark AmosJason A. DiegmuellerwyattStefanthaddlPaulDave JonesAnthony MendezMichael WozniakxPandakuClaudemodsHalil Kolatan ## 🏅 Thanks to all Contributors Thanks a lot for spending your time helping Winutil grow. Thanks a lot! Keep rocking 🍻. From 2ea708eeb0cd8d1bb2ed7e60055e54b96ce6bb12 Mon Sep 17 00:00:00 2001 From: Justin Horner Date: Mon, 19 Aug 2024 15:06:19 -0400 Subject: [PATCH 6/9] Make "Download" a direct link to download the latest Win11 ISO (#2574) --- xaml/inputXML.xaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml index 639c95fb..e007dac6 100644 --- a/xaml/inputXML.xaml +++ b/xaml/inputXML.xaml @@ -975,8 +975,7 @@ INSTRUCTIONS - - Download the latest Windows 11 image from Microsoft - LINK: https://www.microsoft.com/software-download/windows11 + - Download the latest Windows 11 image from Microsoft May take several minutes to process the ISO depending on your machine and connection - Put it somewhere on the C:\ drive so it is easily accessible - Launch WinUtil and MicroWin From 83fe6c5b12ca42feecc18210d8b9601cc55ee880 Mon Sep 17 00:00:00 2001 From: Real-MullaC Date: Mon, 19 Aug 2024 20:19:37 +0100 Subject: [PATCH 7/9] Auto pushes docs (#2580) --- .github/workflows/github-pages.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/github-pages.yaml b/.github/workflows/github-pages.yaml index b51697b8..f4d0ebb3 100644 --- a/.github/workflows/github-pages.yaml +++ b/.github/workflows/github-pages.yaml @@ -1,15 +1,16 @@ name: GitHub Pages Deploy on: - release: - types: [published, prereleased] + push: + paths: + - '.github/mkdocs.yml' + - '.github/requirements.txt' + - 'docs/**' + - 'overrides/**' workflow_dispatch: -permissions: - contents: write - jobs: - deploy: + build-and-deploy: runs-on: ubuntu-latest steps: @@ -22,10 +23,10 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.x # Install latest Stable release of Python 3 - cache: 'pip' # caching pip dependencies + cache: 'pip' # Caching pip dependencies - - name: Install Necessary Dependencies using 'pip install -r .github/requirements.txt' + - name: Install Necessary Dependencies run: pip install -r .github/requirements.txt - - name: Build & Deploy using 'mkdocs' - run: mkdocs gh-deploy --force -f .github/mkdocs.yml \ No newline at end of file + - name: Build & Deploy using mkdocs + run: mkdocs gh-deploy --force -f .github/mkdocs.yml From 2748767a47ff44ba53e1a224688c8ad9f1abf804 Mon Sep 17 00:00:00 2001 From: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Date: Mon, 19 Aug 2024 21:21:12 +0200 Subject: [PATCH 8/9] [MicroWin] Add custom user settings and other changes (docs/bugfixes) (#2575) * [MicroWin] Add custom user settings * Update inputXML.xaml * Update MicroWin documentation to reflect changes * Update Invoke-WinUtilMicroWin-Helper.ps1 * Update Invoke-WPFMicrowin.ps1 --- docs/userguide.md | 31 ++++-------- .../private/Invoke-WinUtilMicroWin-Helper.ps1 | 18 +++++-- functions/public/Invoke-WPFMicrowin.ps1 | 22 ++++++++- xaml/inputXML.xaml | 49 ++++++++++++++++++- 4 files changed, 92 insertions(+), 28 deletions(-) diff --git a/docs/userguide.md b/docs/userguide.md index 9800ed59..7dac8c9a 100644 --- a/docs/userguide.md +++ b/docs/userguide.md @@ -198,26 +198,7 @@ The utility provides three distinct settings for managing Windows updates: Defau * Selecting a scratch directory will copy the contents of the ISO file to the directory you specify instead of an automatically generated folder in the `%TEMP%` directory. * You can select an edition of Windows to debloat (**SKU**) using the convenient drop-down menu. -    By default, MicroWin will debloat the Pro edition, but you can choose any edition you want. - - -##### Customization options - -* **Keep Provisioned Packages**: leaving this option unticked (default) will try to remove every operating system package. - -    Some packages may remain after processing. This can happen if the packages in question are permanent or have been superseded by newer versions. - -* **Keep Appx Packages**: leaving this option unticked (default) will try to remove every Microsoft Store app from the Windows image. - -    This option will exclude some applications that are essential in the event that you want or need to add a Store app later on. - -* **Keep Defender**: leaving this option unticked will try to remove every part of Windows Defender, including the Windows Security app. - -    Leaving this option unticked is **NOT recommended** unless you plan to use a third-party antivirus solution on your MicroWin installation. In that regard, don't install AVs with bad reputations or rogueware. - -* **Keep Edge**: leaving this option unticked will try to remove every part of the Microsoft Edge browser using the best methods available. - -    Leaving this option unticked is not recommended because it might break some applications that might depend on the `Edge WebView2` runtime. However, if that happens, you can easily [reinstall it](https://developer.microsoft.com/en-us/microsoft-edge/webview2) +By default, MicroWin will debloat the Pro edition, but you can choose any edition you want. ##### Driver integration options @@ -225,7 +206,15 @@ The utility provides three distinct settings for managing Windows updates: Defau * **Inject drivers** will add the drivers in the folder that you specify to the target Windows image. * **Import drivers from the current system** will add every third-party driver that is present in your active installation. -    This makes the target image have the same hardware compatibility as the active installation. However, this means that you will only be able to install the target Windows image and take full advantage of it on computers with **the same hardware**. To avoid this, you'll need to customize the `install.wim` file of the target ISO in the 'sources` folder. +This makes the target image have the same hardware compatibility as the active installation. However, this means that you will only be able to install the target Windows image and take full advantage of it on computers with **the same hardware**. To avoid this, you'll need to customize the `install.wim` file of the target ISO in the 'sources` folder. + +##### Custom user settings + +With MicroWin, you can also configure your user before proceeding if you don't want to use the default `User` account. To do this, simply type the account name (20 characters maximum), and a password. Then, let MicroWin do the rest. + +!!! info + + Please make sure that you remember your password. MicroWin will configure auto-login settings, so you won't have to enter your password. However, if you are required to enter your password, it's best that you don't forget it. ##### Ventoy options diff --git a/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 b/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 index 8dfd1af0..b568b839 100644 --- a/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 +++ b/functions/private/Invoke-WinUtilMicroWin-Helper.ps1 @@ -247,6 +247,11 @@ function Remove-FileOrDirectory([string]$pathToDelete, [string]$mask = "", [swit function New-Unattend { + param ( + [Parameter(Mandatory, Position = 0)] [string] $userName, + [Parameter(Position = 1)] [string] $userPassword + ) + $unattend = @' - User + USER-REPLACEME Administrators - + PW-REPLACEME true</PlainText> </Password> </LocalAccount> </LocalAccounts> </UserAccounts> <AutoLogon> - <Username>User</Username> + <Username>USER-REPLACEME</Username> <Enabled>true</Enabled> <LogonCount>1</LogonCount> <Password> - <Value></Value> + <Value>PW-REPLACEME</Value> <PlainText>true</PlainText> </Password> </AutoLogon> @@ -543,6 +548,11 @@ function New-Unattend { # Replace the placeholder text with the Specialize pass $unattend = $unattend.Replace("<#REPLACEME#>", $specPass).Trim() } + # Replace default User and Password values with the provided parameters + $unattend = $unattend.Replace("USER-REPLACEME", $userName).Trim() + $unattend = $unattend.Replace("PW-REPLACEME", $userPassword).Trim() + + # Save unattended answer file with UTF-8 encoding $unattend | Out-File -FilePath "$env:temp\unattend.xml" -Force -Encoding utf8 } diff --git a/functions/public/Invoke-WPFMicrowin.ps1 b/functions/public/Invoke-WPFMicrowin.ps1 index 9bb89194..f686082d 100644 --- a/functions/public/Invoke-WPFMicrowin.ps1 +++ b/functions/public/Invoke-WPFMicrowin.ps1 @@ -178,7 +178,22 @@ public class PowerManagement { Write-Host "Removal complete!" Write-Host "Create unattend.xml" - New-Unattend + #New-Unattend + if ($sync.MicrowinUserName.Text -eq "") + { + New-Unattend -userName "User" + } + else + { + if ($sync.MicrowinUserPassword.Password -eq "") + { + New-Unattend -userName "$($sync.MicrowinUserName.Text)" + } + else + { + New-Unattend -userName "$($sync.MicrowinUserName.Text)" -userPassword "$($sync.MicrowinUserPassword.Password)" + } + } Write-Host "Done Create unattend.xml" Write-Host "Copy unattend.xml file into the ISO" New-Item -ItemType Directory -Force -Path "$($scratchDir)\Windows\Panther" @@ -248,7 +263,10 @@ public class PowerManagement { # reg delete "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler\$_" /f | Out-Null # When in Offline Image - reg delete "HKLM\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\$_" /f | Out-Null + if (Test-Path "HKLM:\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\$_") + { + 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 diff --git a/xaml/inputXML.xaml b/xaml/inputXML.xaml index e007dac6..332122b0 100644 --- a/xaml/inputXML.xaml +++ b/xaml/inputXML.xaml @@ -566,6 +566,36 @@ </Setter.Value> </Setter> </Style> + <Style TargetType="PasswordBox"> + <Setter Property="Background" Value="{MainBackgroundColor}"/> + <Setter Property="BorderBrush" Value="{MainForegroundColor}"/> + <Setter Property="BorderThickness" Value="1"/> + <Setter Property="Foreground" Value="{MainForegroundColor}"/> + <Setter Property="FontSize" Value="{FontSize}"/> + <Setter Property="Padding" Value="5"/> + <Setter Property="HorizontalAlignment" Value="Stretch"/> + <Setter Property="VerticalAlignment" Value="Center"/> + <Setter Property="HorizontalContentAlignment" Value="Stretch"/> + <Setter Property="Template"> + <Setter.Value> + <ControlTemplate TargetType="PasswordBox"> + <Border Background="{TemplateBinding Background}" + BorderBrush="{TemplateBinding BorderBrush}" + BorderThickness="{TemplateBinding BorderThickness}" + CornerRadius="5"> + <Grid> + <ScrollViewer x:Name="PART_ContentHost" /> + </Grid> + </Border> + </ControlTemplate> + </Setter.Value> + </Setter> + <Setter Property="Effect"> + <Setter.Value> + <DropShadowEffect ShadowDepth="5" BlurRadius="5" Opacity="{BorderOpacity}" Color="{BorderColor}"/> + </Setter.Value> + </Setter> + </Style> <Style x:Key="ScrollVisibilityRectangle" TargetType="Rectangle"> <Setter Property="Visibility" Value="Collapsed"/> <Style.Triggers> @@ -921,6 +951,23 @@ <Rectangle Fill="{MainForegroundColor}" Height="2" HorizontalAlignment="Stretch" Margin="0,10,0,10"/> <CheckBox Name="WPFMicrowinCopyToUsb" Content="Copy to Ventoy" Margin="-10,5,0,0" IsChecked="False" ToolTip="Copy to USB disk with a label Ventoy"/> <Rectangle Fill="{MainForegroundColor}" Height="2" HorizontalAlignment="Stretch" Margin="0,10,0,10"/> + <TextBlock Margin="6" Padding="1" TextWrapping="Wrap"><Bold>Custom user settings (leave empty for default user)</Bold></TextBlock> + <TextBlock Margin="6" Padding="1" TextWrapping="Wrap">User name (20 characters max.):</TextBlock> + <TextBox Name="MicrowinUserName" Background="Transparent" BorderThickness="1" BorderBrush="{MainForegroundColor}" + Margin="6" + Text="" + IsReadOnly="False" + TextWrapping="Wrap" + Foreground="{LabelboxForegroundColor}" + MaxLength="20" + /> + <TextBlock Margin="6" Padding="1" TextWrapping="Wrap">Password (characters will not be shown for your security):</TextBlock> + <PasswordBox Name="MicrowinUserPassword" Background="Transparent" BorderThickness="1" BorderBrush="{MainForegroundColor}" + Margin="6" + PasswordChar="*" + Foreground="{LabelboxForegroundColor}" + /> + <Rectangle Fill="{MainForegroundColor}" Height="2" HorizontalAlignment="Stretch" Margin="0,10,0,10"/> <Button Name="WPFMicrowin" Content="Start the process" Margin="2" Padding="15"/> </StackPanel> <StackPanel HorizontalAlignment="Left" SnapsToDevicePixels="True" Margin="1" Visibility="Collapsed"> @@ -968,7 +1015,7 @@ Foreground="{ComboBoxForegroundColor}"> <Bold>MicroWin features:</Bold><LineBreak/> - Remove Telemetry and Tracking <LineBreak/> - - Fast Install using "User" local account <LineBreak/> + - Fast Install using either the "User" local account or the account of your choosing <LineBreak/> - No internet requirement for install <LineBreak/> - Apps debloat <LineBreak/> <LineBreak/> From bcfbce66fdf79afc7a3d828dacbe7b336fd0540b Mon Sep 17 00:00:00 2001 From: CodingWonders <101426328+CodingWonders@users.noreply.github.com> Date: Thu, 22 Aug 2024 23:02:21 +0200 Subject: [PATCH 9/9] Remove test-path (#2585) --- functions/public/Invoke-WPFMicrowin.ps1 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/functions/public/Invoke-WPFMicrowin.ps1 b/functions/public/Invoke-WPFMicrowin.ps1 index f686082d..78cced29 100644 --- a/functions/public/Invoke-WPFMicrowin.ps1 +++ b/functions/public/Invoke-WPFMicrowin.ps1 @@ -263,10 +263,7 @@ public class PowerManagement { # reg delete "HKLM\zSOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Orchestrator\UScheduler\$_" /f | Out-Null # When in Offline Image - if (Test-Path "HKLM:\zSOFTWARE\Microsoft\WindowsUpdate\Orchestrator\UScheduler_Oobe\$_") - { - 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