Listen:
In This Episode
Tonight on the PowerScripting Podcast, we talk to Trevor Sullivan about working with WMI events in PowerShell
News
- PowerGUI Pro and PowerGUI 2.3 are out!
- Tampa – Jan 15th – SQL Saturday #62, featuring SQLVariant talking about “SQL Smackdown: SSIS vs. PowerShell“, and The Scripting Guy with “Windows PowerShell 2.0 Best Practices for DBA’s“
- The PowerGUI Challenge winners have been announced
- Don Jones is teaching a 5-day “PowerShell Retreat” class in June, 2011
- Sapien has released a new version of iPowerShell
Interview
Links:
- PowerEvents: http://powerevents.codeplex.com/
- Use a PowerShell Module to Work with WMI Permanent Events
- Use the PowerShell WMI Event Module to Quickly Monitor Events
- Sapien WMI Explorer
- WBEMtest: http://technet.microsoft.com/en-us/library/cc785775(WS.10).aspx
Chatroom Buzz:
- <shanehoey> ## so can we set up events on things like usb pen plugged in ?
- <ravikanthc> Can I use ActiveScript consumer to wrap PowerShell in VBScript? Is that impelemented..?
- <ravikanthc> can we reuse filters? i mean, can we use the same filter for multiple bindings?
- <ravikanthc> ## when can we see a functional command-line consumer?
- <ScriptingWife> ## new subject. ASk him about his guest blog for HSg next week. something about dynamic method invocation
- <Poshoholic> ## When are you going to integrate the module with PowerGUI?
- <ravikanthc> ## or may be a nice GUI to list and bind filters/consumers..!
- <SQLvariant> ##When a mount point suddenly disconnects without warning?
Resources
This segment brought to you by ServerFault.com
- Ravi explores WMI Timer Events
- Brandon recommends task-based cmdlets over methods
- System Center Tech Blog - Get Nested Group Members
- Greg Milner sent us this: Create an EverNote export file with PowerShell
- PowerChumby!
- From LucD: Hitchhiker’s Guide to Get-EsxTop
- From the PowerCLI blog: Managing vSphere Alarms with PowerCLI
Tips
- Tome sent us a tip about preventing user profile creation in a remote PSSession
- from PowerShell.com: Use powershell jobs to ping an entire subnet in seconds!
Feedback
From time to time I pick up new small but powerful features in PowerShell, here is a handy one:
Did you know you can use wildcards in combination with tab-completion? Both with verbs and nouns? A few examples:
rec*-j* <tab> resolves to Receive-Job
set-*quick* <tab> resolves to Set-WSManQuickConfig
*-*computer*<tab> resolves to Add-Computer. Cycle through <tab> several times and you can see all cmdlets with “computer” in it`s noun.
Handy when you remember just parts of the cmdlet-name, typing a hard-to-spell cmdlet name…or even just being lazy
Best Regards
Jan

[...] http://powerscripting.wordpress.com/2010/12/13/episode-134-trevor-sullivan-on-wmi-events-in-powershe… [...]