Raphire / Win11Debloat

A simple, easy to use PowerShell script to remove pre-installed apps from Windows, disable telemetry, remove Bing from Windows search as well as perform various other changes to declutter and improve your Windows experience. This script works for both Windows 10 and Windows 11.
MIT License
14.2k stars 615 forks source link

NOOB : Error Executing script :( #105

Closed cityji closed 3 months ago

cityji commented 3 months ago

*Unable to run script

PS C:\Users\mailt> & ([scriptblock]::Create((irm "https://win11debloat.raphi.re/")))
irm : The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.
At line:1 char:27
+ & ([scriptblock]::Create((irm "https://win11debloat.raphi.re/")))
+                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebExc
   eption
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

To Reproduce Steps to reproduce the behavior:

  1. Open 'terminal'
  2. paste the script
    & ([scriptblock]::Create((irm "https://win11debloat.raphi.re/")))
  3. Press enter
  4. See error

Screenshots image

Raphire commented 3 months ago

Heya!

I am unfortunately unable to reproduce this. It could be related to time being out of sync on your system. What happens if you navigate to https://win11debloat.raphi.re in a browser?

r4f4siqueira commented 3 months ago

It doesn't look like the terminal is running as administrator;

1 - Open PowerShell as an administrator. 2 - Copy and paste the code below into PowerShell, press enter to run the script:

& ([scriptblock]::Create((irm "https://win11debloat.raphi.re/")))
Raphire commented 3 months ago

@cityji were you able to get the script working?

loadstring1 commented 3 months ago

I would update windows and also update apps with microsoft store

Your windows might be outdated because i can run this script in usermode without admin and it works for me

Raphire commented 3 months ago

Closing this issue due to inactivity and the issue does not seem to be caused by the script. Feel free to open a new issue if this issue persists for you.