Fix double command

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2023-05-24 05:53:55 +02:00
parent 2e3fd1537e
commit 66fef330b3
-8
View File
@@ -70,14 +70,6 @@ Get-ScheduledTask -TaskPath "*asus*" | ForEach-Object {
}
# Disable the fake Device
Get-PnpDevice -FriendlyName "*Armoury Crate*" | Disable-PnpDevice -Confirm:$false
# Delete the fake driver
Get-CimInstance -ClassName win32_service |
?{ $_.PathName -match 'asus' } |
ForEach-Object {
Write-Host $_.Name
Get-Service $_.Name | Set-Service -StartupType Disabled | Stop-Service
sc.exe delete $_.Name
}
</code>
<figcaption>Run this as Administrator in a Powershell Terminal</figcaption>
</figure>