Skip to content

Commit

Permalink
WIP: ASUS debloater
Browse files Browse the repository at this point in the history
  • Loading branch information
silversword411 committed Jul 17, 2024
1 parent fe843cd commit f287fbd
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions scripts_wip/Win_ASUS_debloater.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<#
.SYNOPSIS
Stop and disable specified ASUS services
.DESCRIPTION
This script stops and disables a list of specified ASUS services on the local machine.
It loops through each service name provided, attempts to stop the service, and then disables it.
The script outputs the status of each operation.
.EXAMPLE
"asusappservice", "asusoptimization", "ASUSSoftwareManager", "ASUSSwitch", "ASUSSystemAnalysis", "ASUSSystemDiagnosis"
.NOTES
v1.0 7/17/2024 silversword411 Initial release Get rid of that ASUS crap that installs because of Armoury-crate autoinstaller that's enabled in BIOS
#>

# Define the variable containing the service names
$serviceNames = "asusappservice", "asusoptimization", "ASUSSoftwareManager", "ASUSSwitch", "ASUSSystemAnalysis", "ASUSSystemDiagnosis"

# Loop through each service name in the variable
foreach ($serviceName in $serviceNames) {
# Stop the service
Stop-Service -Name $serviceName -Force -ErrorAction SilentlyContinue

# Disable the service
Set-Service -Name $serviceName -StartupType Disabled -ErrorAction SilentlyContinue

# Output the status of the operation
if ((Get-Service -Name $serviceName).Status -eq 'Stopped') {
Write-Output "$serviceName has been stopped and disabled successfully."
}
else {
Write-Output "Failed to stop and disable $serviceName."
}
}

0 comments on commit f287fbd

Please sign in to comment.