Skip to content

Commit d1d5220

Browse files
committed
Update with ' -Confirm:$false'
1 parent 5bce4e5 commit d1d5220

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

Install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if ($null -ne $release) {
2727
Push-Location -Path $TmpDir
2828
Expand-Archive -Path $OutFile -DestinationPath $TmpDir -Force
2929
Get-ChildItem -Path $TmpDir -Recurse | Unblock-File
30-
& .\Remove-AppxApps.ps1
30+
& .\Remove-AppxApps.ps1 -Confirm:$false
3131
& .\Install-Defaults.ps1
3232
Pop-Location
3333
Remove-Item -Path $TmpDir -Recurse -Force

docs/appxapps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ $Packages = @(
110110
"MicrosoftWindows.CrossDevice_cw5n1h2txyewy",
111111
"MicrosoftWindows.Client.WebExperience_cw5n1h2txyewy",
112112
"Microsoft.WidgetsPlatformRuntime_8wekyb3d8bbwe")
113-
PS C:\> .\Remove-AppxApps.ps1 -SafePackages $Packages
113+
PS C:\> .\Remove-AppxApps.ps1 -SafePackages $Packages -Confirm:$false
114114
```
115115

116116
### Example 2

docs/feature.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ When a feature upgrade completes (e.g. Windows 11 23H2 to Windows 11 24H2), `suc
1515
```batch [success.cmd]
1616
@ECHO OFF
1717
SET SOURCE=C:\WINDOWS\System32\update\run\f38de27b-799e-4c30-8a01-bfdedc622944
18-
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -WindowStyle Hidden -File "%SOURCE%\Remove-AppxApps.ps1" -Targeted
18+
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -WindowStyle Hidden -File "%SOURCE%\Remove-AppxApps.ps1" -Targeted -Confirm:$false
1919
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -WindowStyle Hidden -File "%SOURCE%\Install-Defaults.ps1" -Path "%SOURCE%"
2020
```
2121
:::

docs/localisation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Set-SystemPreferredUILanguage -Language $Language
3434
```
3535

3636
::: warning
37-
Run `Remove-AppxApps.ps1` before using `Install-Defaults.ps1` to install language packs, otherwise the language pack will be removed.
37+
Run `Remove-AppxApps.ps1` before using `Install-Defaults.ps1` to install language packs, otherwise the language pack may be removed.
3838
:::
3939

4040
# Set a Time Zone

src/Remove-AppxApps.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@
1919
An optional parameter that specifies a targeted list of AppX package family names to be removed when the -Targeted switch is used.
2020
2121
.EXAMPLE
22-
.\Remove-AppxApps.ps1
22+
.\Remove-AppxApps.ps1 -Confirm:$false
2323
Runs the script with the default list of safe packages and removes all other removable AppX packages.
2424
2525
.EXAMPLE
26-
.\Remove-AppxApps.ps1 -SafePackagesList @("Microsoft.WindowsCalculator_8wekyb3d8bbwe")
26+
.\Remove-AppxApps.ps1 -SafePackagesList @("Microsoft.WindowsCalculator_8wekyb3d8bbwe") -Confirm:$false
2727
Runs the script while preserving only the specified package (Microsoft.WindowsCalculator_8wekyb3d8bbwe) and removes all other removable AppX packages.
2828
2929
.EXAMPLE
30-
.\Remove-AppxApps.ps1 -Targeted
30+
.\Remove-AppxApps.ps1 -Targeted -Confirm:$false
3131
Runs the script with a targeted list of packages to be removed during a Windows feature upgrade.
3232
3333
.NOTES

src/success.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@ECHO OFF
22
SET SOURCE=C:\WINDOWS\System32\update\run\f38de27b-799e-4c30-8a01-bfdedc622944
3-
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -WindowStyle Hidden -File "%SOURCE%\Remove-AppxApps.ps1" -Targeted
3+
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -WindowStyle Hidden -File "%SOURCE%\Remove-AppxApps.ps1" -Targeted -Confirm:$false
44
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -WindowStyle Hidden -File "%SOURCE%\Install-Defaults.ps1" -Path "%SOURCE%"

0 commit comments

Comments
 (0)