Compare commits

..

No commits in common. "ea5fe14d1193dbe4125705b0326daa5c32a92c51" and "3c3c5ed0c60892cf563d546cf2efdecefcac5e2a" have entirely different histories.

6 changed files with 70 additions and 110 deletions

View file

@ -54,7 +54,7 @@ function block_shitty_ip {
Write-Host -Nonewline -ForegroundColor Red " Error "
return
}
}
}
}
function remove_shitty_tasks () {
@ -80,10 +80,10 @@ function remove_shitty_tasks () {
}
# Modify a reg value
# Params :
# Params :
# path : the complete path to reg key
# key : key name
# value : The value to write
# value : The value to write
function modify_shitty_reg_value {
param([string]$path, [string]$key, [string]$value, [string]$type)
Write-Host -ForegroundColor white -NoNewline "Modify $key reg value to $value :"
@ -91,13 +91,13 @@ function modify_shitty_reg_value {
Write-Host -ForegroundColor Gray -NoNewline " creating path "
New-Item -Path $path -Force | Out-Null
}
try {
if ($type) {
Set-ItemProperty -Path $path -Name $key -Value $value -Type $type -Force
if ($type) {
Set-ItemProperty -Path $path -Name $key -Value $value -Type $type -Force
}
else {
Set-ItemProperty -Path $path -Name $key -Value $value -Type Dword -Force
Set-ItemProperty -Path $path -Name $key -Value $value -Type Dword -Force
}
}
catch [System.Security.SecurityException]{
@ -140,35 +140,19 @@ function disable_shitty_feature {
# $name : Name of modern app
function disable_shitty_modern_app {
param([string]$name)
Write-Host -ForegroundColor white -NoNewLine "Remove $name modern app"
$package = Get-AppxPackage -AllUsers -name *$name*
if ( $package ) {
Write-Host -ForegroundColor white -NoNewLine " installed :"
try {
$package | Remove-AppxPackage
}
catch {
Write-Host -ForegroundColor Red " Uninstall error"
return
}
Write-Host -ForegroundColor Green -NoNewLine " uninstalled"
}
else { Write-Host -ForegroundColor Yellow -NoNewLine " Not installed"}
Write-Host -ForegroundColor white -NoNewLine " |"
$provisioned = Get-AppxProvisionedPackage -Online | where-Object {$_.PackageName -like "*$name*"}
if ( $provisioned ) {
Write-Host -ForegroundColor White -NoNewLine " Provisonned"
try {
$provisioned | Remove-AppxProvisionedPackage -Online | Out-Null
}
catch {
Write-Host -ForegroundColor red " Error"
return
}
Write-Host -ForegroundColor Green " Done"
}
else { Write-Host -ForegroundColor Yellow " Not provisionned"}
Write-Host -ForegroundColor white -NoNewline "Remove $name modern app"
try {
$pkgname = Get-AppxPackage -allusers -name *$name*
if (Get-AppxPackage $pkgname.Name) {
Remove-AppxPackage $pkgname
}
Get-AppxProvisionedPackage -Online | where-Object {$_.PackageName -like "*$name*"} | Remove-AppxProvisionedPackage -Online | Out-Null
}
catch {
Write-Host -ForegroundColor Red " Error "
return
}
Write-Host -ForegroundColor Green " Done "
}
function disable_shitty_service ([string]$name){
@ -250,7 +234,7 @@ modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" "
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" "LetAppsAccessCalendar" 2
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" "LetAppsAccessCallHistory" 2
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" "LetAppsAccessCamera" 2
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" "LetAppsAccessContacts" 2
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" "LetAppsAccessContacts" 2
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" "LetAppsAccessEmail" 2
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" "LetAppsAccessLocation" 2
modify_shitty_reg_value "HKLM:\SOFTWARE\Policies\Microsoft\Windows\AppPrivacy" "LetAppsAccessMessaging" 2

View file

@ -1,39 +1,46 @@
king.com.CandyCrushSodaSaga
Microsoft.3dbuilder
Microsoft.Appconnector
Microsoft.BingFinance
Microsoft.BingFoodAndDrink
Microsoft.BingHealthAndFitness
Microsoft.BingNews
Microsoft.BingSports
Microsoft.BingTravel
Microsoft.BingWeather
Microsoft.CommsPhone
Microsoft.ConnectivityStore
Microsoft.Getstarted
Microsoft.Messaging
Microsoft.MicrosoftOfficeHub
Microsoft.MicrosoftPowerBIForWindows
Microsoft.MicrosoftSolitaireCollection
Microsoft.MinecraftUWP
Microsoft.Office.OneNote
Microsoft.Office.Sway
Microsoft.OneConnec
Microsoft.People
Microsoft.Services.Store.Engagement
Microsoft.SkypeApp
Microsoft.Windows.Photos
Microsoft.WindowsAlarms
Microsoft.WindowsCalculator
Microsoft.WindowsCamera
microsoft.windowscommunicationsapps
Microsoft.WindowsFeedbackHub
Microsoft.WindowsMaps
Microsoft.WindowsPhone
Microsoft.WindowsSoundRecorder
Microsoft.WindowsStore
Microsoft.Office.OneNote
Microsoft.MicrosoftOfficeHub
3dbuilder
skypeapp
zunemusic
solitairecollection
bingfinance
bingnews
soundrecorder
twitter
Microsoft.BioEnrollment
Microsoft.Windows.CloudExperienceHost
Microsoft.Windows.ShellExperienceHost
windows.immersivecontrolpanel
Microsoft.Windows.Cortana
Microsoft.LockApp
Microsoft.MicrosoftEdge
Microsoft.Windows.ContentDeliveryManager
Microsoft.Windows.SecondaryTileExperience
Microsoft.WindowsFeedback
Microsoft.XboxApp
Microsoft.ZuneMusic
Microsoft.XboxGameCallableUI
Microsoft.XboxIdentityProvider
Windows.ContactSupport
Windows.PurchaseDialog
Microsoft.WindowsStore
windows.devicesflow
Microsoft.CommsPhone
Microsoft.Services.Store.Engagement
Microsoft.ConnectivityStore
Microsoft.People
Microsoft.WindowsMaps
Microsoft.BingSports
Microsoft.WindowsCalculator
microsoft.windowscommunicationsapps
Microsoft.WindowsSoundRecorder
Microsoft.ZuneVideo
Microsoft.Advertising.Xaml
twitter
Microsoft.WindowsPhone
Microsoft.WindowsAlarms
Microsoft.WindowsCamera
Microsoft.BingWeather
Microsoft.Windows.Photos
Microsoft.Getstarted

22
lib/hosts.txt Executable file → Normal file
View file

@ -1,4 +1,3 @@
184-86-53-99.deploy.static.akamaitechnologies.com
a-0001.a-msedge.net
a-0002.a-msedge.net
a-0003.a-msedge.net
@ -13,10 +12,6 @@ a.ads1.msn.com
a.ads2.msads.net
a.ads2.msn.com
a.rad.msn.com
a1621.g.akamai.net
a1856.g2.akamai.net
a1961.g.akamai.net
a978.i6g1.akamai.net
ac3.msn.com
ad.doubleclick.net
adnexus.net
@ -44,14 +39,9 @@ compatexchange.cloudapp.net
corp.sts.microsoft.com
corpext.msitadfs.glbdns2.microsoft.com
cs1.wpc.v0cdn.net
cy2.vortex.data.microsoft.com.akadns.net
db3aqu.atdmt.com
df.telemetry.microsoft.com
diagnostics.support.microsoft.com
e2835.dspb.akamaiedge.net
e7341.g.akamaiedge.net
e7502.ce.akamaiedge.net
e8218.ce.akamaiedge.net
ec.atdmt.com
fe2.update.microsoft.com.akadns.net
feedback.microsoft-hohm.com
@ -60,12 +50,8 @@ feedback.windows.com
flex.msn.com
g.msn.com
h1.msn.com
h2.msn.com
hostedocsp.globalsign.com
i1.services.social.microsoft.com
i1.services.social.microsoft.com.nsatc.net
ipv6.msftncsi.com
ipv6.msftncsi.com.edgesuite.net
lb1.www.ms.akadns.net
live.rads.msn.com
m.adnxs.com
@ -83,7 +69,7 @@ rad.live.com
rad.msn.com
redir.metaservices.microsoft.com
reports.wes.df.telemetry.microsoft.com
s.gateway.messenger.live.com
s.gateway.messenger.live.com)
s0.2mdn.net
schemas.microsoft.akadns.net
secure.adnxs.com
@ -123,8 +109,4 @@ watson.telemetry.microsoft.com
watson.telemetry.microsoft.com.nsatc.net
web.vortex.data.microsoft.com
wes.df.telemetry.microsoft.com
www.msftncsi.com
win10.ipv6.microsoft.com
www.bingads.microsoft.com
www.go.microsoft.akadns.net
www.msftncsi.com
www.msftncsi.com

7
lib/ip.txt Executable file → Normal file
View file

@ -1,12 +1,11 @@
2.22.61.43
2.22.61.66
64.4.54.254
65.39.117.230
65.52.108.33
65.55.108.23
23.218.212.69
134.170.30.202
137.116.81.24
157.56.106.189
184.86.53.99
204.79.197.200
204.79.197.200
64.4.54.254
65.52.108.33

10
lib/services.txt Executable file → Normal file
View file

@ -1,18 +1,12 @@
diagnosticshub.standardcollector.service
DiagTrack
dmwappushservice
dmwappushsvc
HomeGroupListener
HomeGroupProvider
lfsvc
MapsBroker
NetTcpPortSharing
RemoteAccess
RemoteRegistry
SharedAccess
TrkWks
WbioSrvc
WMPNetworkSvc
wscsvc
XblAuthManager
XblGameSave
XboxNetApiSvc
XboxNetApiSvc

8
lib/tasks.txt Executable file → Normal file
View file

@ -1,11 +1,5 @@
Microsoft Compatibility Appraiser
ProgramDataUpdater
CreateObjectTask
Consolidator
KernelCeipTask
UsbCeip
SmartScreenSpecific
Microsoft-Windows-DiskDiagnosticDataCollector
DmClient
MNO Metadata Parser
QueueReporting
UsbCeip