Comments (2)
Thanks for the info. After some research on this I managed to find the problem.
There was a "__PSLockDownPolicy" set under Environment Variables; System Variables.
Once I deleted this I was able to use the script without issue.
from win11debloat.
Heya,
You're seeing this issue due to security policies that are applied to your system. This feature specifically is called constrained language mode, it restricts the methods and functions that can be used by powershell scripts. More information here: https://devblogs.microsoft.com/powershell/powershell-constrained-language-mode/
I'm not sure what specifically locked down powershell in your case. Usually this policy is applied by organizations through something like AppLocker. More information about this here: https://learn.microsoft.com/en-us/windows/security/application-security/application-control/windows-defender-application-control/applocker/applocker-overview
I will update the script to more gracefully handle these kind of situations, but I think it's unlikely the script can be updated to work with these heavy restrictions to powershell's capabilities.
from win11debloat.
Related Issues (20)
- 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 5
- 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 13
- add 'pause' at end of PowerShell script HOT 1
- Realtek Audio not regestering headphones HOT 6
- 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
- Windows defender remove
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.