this post was submitted on 28 Aug 2024
2 points (100.0% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

145 readers
4 users here now

⚓ A community devoted to in-depth debate on topics concerning digital piracy, ethical problems, and legal...

founded 1 year ago
MODERATORS
 
This is an automated archive made by the Lemmit Bot.

The original was posted on /r/piracy by /u/eyeholeman0 on 2024-08-27 16:34:02+00:00.


Hello everyone, since I have been in this sub for some time and learnt a lot from you guys, I'm gonna share what I have found out. I apologize in advance for my broken English.

Warning: Removing Microsoft edge will cause windows widgets to stop functioning, in addition to some web apps from Microsoft store (e.g. Instagram)

Note: This method doesn't involve tampering with registry but requires admin privileges.

Here's How to do it:

create a txt file and paste this powershell code:

$EdgePath = "C:\Program Files (x86)\Microsoft"

Remove-Item $EdgePath -Recurse -Force
New-Item -Path "C:\Program Files (x86)\" -Name "Microsoft" -ItemType "directory"
$Acl = Get-Acl $EdgePath
$Ar = New-Object System.Security.AccessControl.FileSystemAccessRule("NT AUTHORITY\SYSTEM", "Write", "ContainerInherit,ObjectInherit", "None", "Deny")

$Acl.SetAccessRule($Ar)
Set-Acl $EdgePath $Acl
$EdgePath = "C:\Program Files (x86)\Microsoft"

Remove-Item $EdgePath -Recurse -Force
New-Item -Path "C:\Program Files (x86)\" -Name "Microsoft" -ItemType "directory"
$Acl = Get-Acl $EdgePath
$Ar = New-Object System.Security.AccessControl.FileSystemAccessRule("NT AUTHORITY\SYSTEM", "Write", "ContainerInherit,ObjectInherit", "None", "Deny")

$Acl.SetAccessRule($Ar)
Set-Acl $EdgePath $Acl

Then rename the suffix from '.txt' to '.ps1'.

Now open a Powershell window as admin and run this ps1 file by this command (don't forget the dot):

. 'path/to/file'

output:

    Directory: C:\Program Files (x86)

Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----         8/27/2024   7:48 PM                Microsoft

Explanation:

This code removes all ms edge files and it's directory, then recreates that directory revoking the systems permission to write in it so your OS can't write any thing in that folder and since windows update always installs ms edge in the exact same directory, it can never do that again unless you manually remove the folder mentioned at the beginning of the code.

I got the idea from this youtube video where this method is used to prevent the installation of Razer Bloatware.

I did this about 7-8 month ago and windows update didn't change anything.

I hope this is helpful, thanks for reading.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here