Blog
By Pete Zerger on 11/4/2009 7:05:41 AM • Rank (2304) • Views 2499
0

0

A customer request had me looking around the support community of one of our community sponsors - Quest. (The site is management-extensions.org). While I was there, I ran across something that raises some interesting possibilities for audible alarms using the OpsMgr Command Notification Channel. This would be especially with remoting in Powershell 2.0 so we could execute the audible alarm on a system that is NOT the RMS.

Gary Broadwater (eXc-turned-Quest architect) posted the most simple Powershell snippet HERE.

 

If you save this as a text_to_speech.ps1 file and pass a text string to it, your computer will recite the words. Text-to-speech in 3 lines. They don't call it Powershell for nothing.

################################
# Company: Quest Software
# Author: Gary Broadwater
################################

$q = new-object -com SAPI.SpVoice
$q.speak($args)
$q = $null
 

Sample Run

I ran exactly this on my computer, and I could make the words out very clearly!

.\text_to_speech.ps1 Quest extends system center to the non-windows world!
 

 Calling the script remotely from the RMS

Then, from your OpsMgr RMS, you could use the notification command channel to call the remote script. I have Powershell 2.0 running on an OpsMgr lab server, so I would expect this should be okay, but you'd want to test carefully I think. I don't think I'd do this without Powershell 2.0, because you need it for remoting to avoid running this on the RMS. Here's PoSh 2.0 syntax to do it.

invoke-command -computername RemoteAlertComputer -filepath c:\Scripts\text_to_speech.ps1

NOTE: You could work out how to pass the OpsMgr alert description with the standard XPath as a script argument, but I think this would work best with a short message hard-coded in the script.

And a Personal Comment on Quest

 I have talked with the technical folks at Quest about what they're doing with PRO and virtualization, application virtualization, extending Configuration Manager to support non-Windows systems, and they are working on some pretty cool answers for difficult technology and business problems. I have to say I am genuinely excited to see what develops. And I want to add this personal note about the tech support I've received from these guys. In short, the best of any ISV I have worked with. Gary, Tony and gang have delivered for me whenever I needed an assist.

Take a look at the ways Quest extends System Center at http://www.quest.com/system-center/

Visit the Quest Heterogeniuses Blog

image

Map Location


GPS Latitude: 0.00000 Longitude: 0.00000
Comments - Comment RSS


Who Viewed
Who Reviewed
Categories
Related Pages
Shortened URL
http://tinyurl.com/yhckyt4

Top Contributors
Featured Members
Pete Zerger
Points: 65622
Level: System Center Expert
Tommy Gunn
Points: 42748
Level: System Center Expert
Simon Skinner
Points: 40804
Level: System Center Expert
Stefan Koell
Points: 28999
Level: System Center Expert
Andreas Zuckerhut
Points: 27734
Level: System Center Expert