To disable a service in PowerShell, stop it with Stop-Service and then set its startup type to Disabled with Set-Service, in a PowerShell window opened as administrator:
Stop-Service -Name XblGameSave -Force
Set-Service -Name XblGameSave -StartupType Disabled
Tom Baker runs IT for a dental office in Denver. The front-desk PCs came with the Xbox services, and he wants them off on every machine, with a script he can trust.
In this tutorial, I’ll build that script with you one step at a time. You’ll see how to disable a service with PowerShell, preview the change, confirm it worked, handle several services, use sc.exe and turn a service back on.
I ran every example in PowerShell 7.6 and Windows PowerShell 5.1 on Windows 11. My session wasn’t elevated, so I never changed a real service: you’ll see real read-only output and -WhatIf previews, and the admin-only steps as code.
What the finished disable script does
Here’s where we’re headed. The Disable-ServiceSafely function takes service names, skips the ones that are missing or already disabled, and previews the rest with -WhatIf:
. .\Disable-ServiceSafely.ps1
$names = 'XblAuthManager', 'XblGameSave', 'XboxNetApiSvc', 'RemoteRegistry', 'Fax'
$names | Disable-ServiceSafely -WhatIf
Output:
What if: Performing the operation "Stop and disable" on target "Xbox Live Auth Manager (XblAuthManager)".
What if: Performing the operation "Stop and disable" on target "Xbox Live Game Save (XblGameSave)".
What if: Performing the operation "Stop and disable" on target "Xbox Live Networking Service (XboxNetApiSvc)".
Skipped. RemoteRegistry is already disabled.
Skipped. No service named Fax.

Windows PowerShell 5.1 printed the same five lines. Before writing it, you need the exact service names, and the post on how to list running services in PowerShell covers the basic queries.
Step 1: Find the service name and check its StartType
Set-Service wants the short service name (XblGameSave), not the display name you see in the Services console. Get-Service shows both, plus the Status and StartType you’re about to change:
Get-Service -Name 'Xbl*', 'XboxNetApiSvc' |
Sort-Object Name |
Select-Object Name, DisplayName, Status, StartType
Output:
Name DisplayName Status StartType
---- ----------- ------ ---------
XblAuthManager Xbox Live Auth Manager Stopped Manual
XblGameSave Xbox Live Game Save Stopped Manual
XboxNetApiSvc Xbox Live Networking Service Stopped Manual
All three Xbox services are Stopped with a StartType of Manual, so any app can still start them on demand. Disabled is what blocks that. Windows PowerShell 5.1 printed the same table.
To search by display name instead, use Get-Service -DisplayName '*Xbox*'. You can also pipe the whole list to