Skip to content

Instantly share code, notes, and snippets.

@loonison123
Created April 24, 2014 03:39
Show Gist options
  • Select an option

  • Save loonison123/11240676 to your computer and use it in GitHub Desktop.

Select an option

Save loonison123/11240676 to your computer and use it in GitHub Desktop.
Set windows audio services to automatically start with PowerShell
# Get services related to audio
Get-Service | Where {$_.Name -match "audio"} | format-table -autosize
# Start the services
Get-Service | Where {$_.Name -match "audio"} | start-service
# Set the services startup types
Get-Service | Where {$_.Name -match "audio"} | set-service -StartupType "Automatic"
# Validate our startup changes (Should say- StartMode:Auto)
Get-WmiObject -class win32_service -filter "Name='AudioSrv'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment