Skip to content

Instantly share code, notes, and snippets.

@marckean
Created April 24, 2020 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marckean/2a15460fa20bfa419bc7134a9ebb023d to your computer and use it in GitHub Desktop.
Save marckean/2a15460fa20bfa419bc7134a9ebb023d to your computer and use it in GitHub Desktop.
# Download the latest copy of SHOUTcast
$url = 'http://download.nullsoft.com/shoutcast/tools/sc_serv2_win64-latest.exe'
$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 = 'https://ejukebox03.blob.core.windows.net/shoutcastcontainer/sc_serv.conf'
$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