Upload files to "/"
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
# Remove ASUS Bloatware - Silent mode with error suppression
|
||||
# Run as Administrator
|
||||
|
||||
#Requires -RunAsAdministrator
|
||||
|
||||
$ErrorActionPreference = 'SilentlyContinue'
|
||||
$ProgressPreference = 'SilentlyContinue'
|
||||
|
||||
# ASUS Bloatware packages to remove
|
||||
$ASUSApps = @(
|
||||
'ASUS.*Live.*Update',
|
||||
'ASUS.*WebStorage',
|
||||
'ASUS.*Gamer.*OSD',
|
||||
'ASUS.*Ambient',
|
||||
'ASUS.*FX',
|
||||
'ASUS.*Splendid',
|
||||
'ASUS.*Smart.*Gesture',
|
||||
'ASUS.*Safe.*Face',
|
||||
'ASUS.*Keyboard',
|
||||
'ASUS.*Touchpad',
|
||||
'ASUS.*Turbo',
|
||||
'ASUS.*GameVisual',
|
||||
'ASUS.*Controller',
|
||||
'ASUSSMS',
|
||||
'ASUS.*Sonic.*Studio',
|
||||
'ASUS.*Experience.*Link'
|
||||
)
|
||||
|
||||
# Remove via WMI
|
||||
foreach ($app in $ASUSApps) {
|
||||
try {
|
||||
$installed = Get-WmiObject -Class Win32_Product -Filter "Name LIKE '$app'" -ErrorAction SilentlyContinue
|
||||
foreach ($item in $installed) {
|
||||
$item.Uninstall() | Out-Null
|
||||
}
|
||||
} catch { }
|
||||
}
|
||||
|
||||
# Remove via PowerShell App Removal
|
||||
foreach ($app in $ASUSApps) {
|
||||
try {
|
||||
Get-AppxPackage -Name "*ASUS*" -AllUsers -ErrorAction SilentlyContinue | Remove-AppxPackage -AllUsers
|
||||
} catch { }
|
||||
}
|
||||
|
||||
# Remove ASUS services
|
||||
$ASUSServices = @(
|
||||
'ASUSLinkNear',
|
||||
'ASUSLinkRemote',
|
||||
'ASUSWebStorage',
|
||||
'ASUSGiftBox',
|
||||
'ArmouryCrate',
|
||||
'asComSvc'
|
||||
)
|
||||
|
||||
foreach ($service in $ASUSServices) {
|
||||
try {
|
||||
$svc = Get-Service -Name $service -ErrorAction SilentlyContinue
|
||||
if ($svc) {
|
||||
Stop-Service -Name $service -Force
|
||||
Set-Service -Name $service -StartupType Disabled
|
||||
}
|
||||
} catch { }
|
||||
}
|
||||
|
||||
# Remove ASUS scheduled tasks
|
||||
try {
|
||||
Get-ScheduledTask -TaskPath "*ASUS*" -ErrorAction SilentlyContinue | Unregister-ScheduledTask -Confirm:$false
|
||||
} catch { }
|
||||
|
||||
# Remove from Registry
|
||||
try {
|
||||
$ASUSRegPaths = @(
|
||||
'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\*ASUS*',
|
||||
'HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\*ASUS*',
|
||||
'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\*ASUS*'
|
||||
)
|
||||
|
||||
foreach ($path in $ASUSRegPaths) {
|
||||
Remove-Item -Path $path -Force -Recurse
|
||||
}
|
||||
} catch { }
|
||||
|
||||
# Remove ASUS installation directories
|
||||
$ASUSDirs = @(
|
||||
'C:\Program Files\ASUS',
|
||||
'C:\Program Files (x86)\ASUS',
|
||||
'C:\ProgramData\ASUS'
|
||||
)
|
||||
|
||||
foreach ($dir in $ASUSDirs) {
|
||||
try {
|
||||
if (Test-Path $dir) {
|
||||
Remove-Item -Path $dir -Recurse -Force
|
||||
}
|
||||
} catch { }
|
||||
}
|
||||
|
||||
Write-Host "ASUS bloatware removal complete." -ForegroundColor Green
|
||||
Reference in New Issue
Block a user