Created
April 24, 2020 21:49
-
-
Save marckean/2a15460fa20bfa419bc7134a9ebb023d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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