Comments (4)
Closing issue as resolves, see #52
@JMacIV Thanks for your contribution :)
from win11debloat.
Heya,
Sorry you're running into this issue. From the provided output it seems like you may be running an old winget version that apparently doesn't have this --disable-interactivity option.
Could you check your winget version for me? This can be checked by running the command: winget -v
I have version 1.7.10861 installed for reference.
Double checking you're image it's showing you're running winget 1.2.10691, this is quite an old version. Could you try updating winget? I believe this is done through the ms store.
from win11debloat.
Hey Raphire - You are correct, I am running v1.2.10691. This is the default version that comes in 23H2 ISO.
From this page on Microsoft, if you click on the versions, it seems they added this "--disable-interactivity" flag with 1.4.
I am fairly certain this PS command will silently install the version from the store... But you might also need to run winget update with that ID afterwards. I could not fully test as this Win11 machine doesn't have a MS store account, but this command got through agreement prompts until interrupted for MS store account.
winget install -e -h --id=9nblggh4nns1 --source=msstore --accept-package-agreements
This id value came from this link to the package on MS Store - https://apps.microsoft.com/detail/9nblggh4nns1?rtc=1&hl=en-us&gl=US
Maybe before starting this part of the script, you could add something like
$version = (winget -v) -replace 'v', '' if ($version -lt 1.4) { Write-Host "Need to update winget to version 1.4 or later" winget install -e -h --id=9nblggh4nns1 --source=msstore --accept-package-agreements $version = (winget -v) -replace 'v', '' if ($version -lt 1.4) { winget upgrade -e -h --id=9nblggh4nns1 } }
However, if you are okay with downloading these straight from the GitHub repos....
$version = (winget -v) -replace 'v', '' if ($version -lt 1.4) { Write-Host "Need to update winget to version 1.4 or later. Installing Prerequisite and winget straight from GitHub" Add-AppxPackage https://github.com/microsoft/microsoft-ui-xaml/releases/download/v2.8.6/Microsoft.UI.Xaml.2.8.x64.appx Add-AppxPackage https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle }
I can confirm that the GitHub download version worked and my install to v1.7.11132, and I was immediately able to run the original winget uninstall for OneDrive with the --disable-interactivity flag :)
from win11debloat.
Thanks for the detailed response and suggestions. I'll look into this later this weekend!
from win11debloat.
Related Issues (20)
- Try to install git even if git has been installed HOT 5
- Pinned apps issues HOT 3
- Feature Request: DisableAIDataAnalysis (Disable Recall) HOT 6
- ms-gamingoverlay link prompt HOT 1
- Delete windows recall? HOT 1
- How to confirm that telemetry is disabled HOT 3
- Explorer.exe not reopening HOT 9
- ‘Some settings are managed by your organization’ Message Appearing in Taskbar Settings HOT 10
- Spotify, Linkedin were not uninstalled (default mode) HOT 2
- "Disable & remove bing search & cortana in Windows search" breaks all forms of search HOT 3
- only works on admin user account and not second account HOT 8
- Removal failed. Please contact your software vendor. HOT 14
- add 'pause' at end of PowerShell script HOT 2
- Realtek Audio not regestering headphones HOT 13
- Errors on Custom Mode; Manual App Selection HOT 2
- i get this gamingbar thing popup when playing minecraft HOT 4
- Additonal Options to Disable or Turn off HOT 4
- Options to Debloat Microsoft Edge
- Feature: Turn off - Show me notifications in the Settings app HOT 2
- Feature: Remove Gallery from the File Manager HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from win11debloat.