Skip to content

Instantly share code, notes, and snippets.

Created April 24, 2020 21:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# Download the latest copy of SHOUTcast
$url = ''
$exeoutput = "$env:TEMP\sc_serv2_win64-latest.exe"
Invoke-WebRequest -Uri $url -OutFile $exeoutput
# Setup SHOUTcast silently
$arguments = '/S'
Start-Process $exeoutput -ArgumentList $arguments -Wait
# Copy the SHOUTcast Config file
$url = ''
$confoutput = "$env:ProgramFiles\SHOUTcast\sc_serv.conf"
Invoke-WebRequest -Uri $url -OutFile $confoutput
# Register the SHOUTcast service
$proc = "$env:ProgramFiles\SHOUTcast\sc_serv.exe"
$arguments = 'install Shoutcast sc_serv.conf'
Start-Process $proc -ArgumentList $arguments -Wait
# Start the SHOUTcast service
Start-Service 'SHOUTcast'
Set-Service -Name 'SHOUTcast' -StartupType Automatic
# Allow SHOTcast through Windows Firewall
New-NetFirewallRule -DisplayName "Allow SHOUTcast" -Direction Inbound -Program "$proc" -Action Allow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment