Whether on-hold music is played is determined by the EnableMusicOnHold
parameter, but the actual music on-hold file is configured using the Set-CsCallParkMusicOnHoldFile
cmdlet.
First, the CsCallParkMusicOnHoldFile
cmdlet requires the AudioFile
parameter in byte format. To make the transfer easy, store the file in a variable, and then pass that variable to the Content
parameter. Storing the audio file correctly looks like the following example:
$AudioFile = Get-Content -ReadCount 0 -Encoding byte <Path and File Name>
Then use the Set-CsCallParkMusicOnHoldFile
cmdlet to assign the audio file:
Set-CsCallParkMusicOnHoldFile -Service ApplicationServer:<FQDN of Front End Pool with music file> -Content <Byte[]>