Lync Shell Cmdlet New-CsRgsPrompt work not properly


hi techies
 
i'm working on scheduled powershell script change lync rgs workflows non bussines hours action more times day.
 
discover problem cmdlet new-csrgsprompt. i'm not able set audio file prompt. when set text speech prompt work fine.
 
http://technet.microsoft.com/en-us/library/gg398486.aspx
 
checked audio.wav file it's requirements.
 
http://technet.microsoft.com/en-us/library/gg398649.aspx
 
 
 
here script wrote far:
 
$y = get-csrgsworkflow -identity service:applicationserver:lyncserver.domain.com -name "lync workflow"
 
$musicfile = get-content -readcount 0 -encoding byte "c:\temp\audio.wav" | import-csrgsaudiofile -identity service:applicationserver:lyncserver.domain.com -filename "audio.wav"
 
$prompt = new-csrgsprompt -audiofileprompt $musicfile
 
$y.nonbusinesshoursaction = new-csrgscallaction -action terminate -prompt $prompt
 
set-csrgsworkflow -instance $y

this lync management forum should able answer.  unfortunately, looks forwarded here.  if don't support powershell, need change forum description!



Windows Server  >  Windows PowerShell



Comments

Popular posts from this blog

Motherboard replacement

Cannot create Full Text Search catalog after upgrading to V12 - Database is not fully started up or it is not in an ONLINE state

Remote Desktop App - Error 0x207 or 0x607