From ab6ee32480c8354ec6bfcce87b69cdfbd31ddc7b Mon Sep 17 00:00:00 2001 From: Brandon <74426342+Brandonbr1@users.noreply.github.com> Date: Wed, 30 Jun 2021 07:57:45 -0700 Subject: [PATCH] Update windows service disabler v2.ps1 --- .../windows service disabler v2.ps1 | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Individual Scripts/windows service disabler v2.ps1 b/Individual Scripts/windows service disabler v2.ps1 index 0e906d6..900a9a4 100644 --- a/Individual Scripts/windows service disabler v2.ps1 +++ b/Individual Scripts/windows service disabler v2.ps1 @@ -99,21 +99,21 @@ foreach ($service in $services) { } #stop service this stop the services -Get-Service diagnosticshub.standardcollector.service | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service DiagTrack | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service dmwappushservice | Where {$_.status –eq 'Stopped'} | Stop-Service +Get-Service diagnosticshub.standardcollector.service | Where {$_.status –eq 'running'} | Stop-Service +Get-Service DiagTrack | Where {$_.status –eq 'running'} | Stop-Service +Get-Service dmwappushservice | Where {$_.status –eq 'running'} | Stop-Service Get-Service lfsvc | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service MapsBroker | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service NetTcpPortSharing | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service RemoteAccess | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service RemoteRegistry | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service TrkWk | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service WbioSrvc | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service WlanSvc | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service WMPNetworkSvc | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service wscsvc | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service WSearch | Where {$_.status –eq 'Stopped'} | Stop-Service -Get-Service XblAuthManager | Where {$_.status –eq 'Stopped'} | Stop-Service +Get-Service MapsBroker | Where {$_.status –eq 'running'} | Stop-Service +Get-Service NetTcpPortSharing | Where {$_.status –eq 'running'} | Stop-Service +Get-Service RemoteAccess | Where {$_.status –eq 'running'} | Stop-Service +Get-Service RemoteRegistry | Where {$_.status –eq 'running'} | Stop-Service +Get-Service TrkWk | Where {$_.status –eq 'running'} | Stop-Service +Get-Service WbioSrvc | Where {$_.status –eq 'running'} | Stop-Service +Get-Service WlanSvc | Where {$_.status –eq 'running'} | Stop-Service +Get-Service WMPNetworkSvc | Where {$_.status –eq 'running'} | Stop-Service +Get-Service wscsvc | Where {$_.status –eq 'running'} | Stop-Service +Get-Service WSearch | Where {$_.status –eq 'running'} | Stop-Service +Get-Service XblAuthManager | Where {$_.status –eq 'running'} | Stop-Service Get-Service XblGameSave | Where {$_.status –eq 'running'} | Stop-Service Get-Service XboxNetApiSvc | Where {$_.status –eq 'running'} | Stop-Service Get-Service XboxGipSvc | Where {$_.status –eq 'running'} | Stop-Service