Episode 96 – Scripting Guy Ed Wilson on PowerShell Best Practices
Listen to this Episode
Audio available
A Podcast about Windows PowerShell.
Listen:
In This Episode
Tonight on the PowerScripting Podcast we talk to Ed Wilson, the Scripting GuyÂ
News *Â *
Before you acquire power, you must acquire knowledge ““ and Quest Software has what you need! In Jeffery Hicks"™ e-book, “Managing Active Directory with Windows PowerShell,” learn how PowerShell helps you master local accounts and groups, password management, security and permissions and much, much more. You"™ll also learn about the PowerShell extras and out-of-the-box features that will help you control Active Directory. *
Don"™t wait ““ visit quest.com/powershellbook  to register for your free copy and see why PowerShell and Quest Power GUI are the ultimate Windows management tools. *
Â
-
Jonathan Medd has a great [blog series](http://www.jonathanmedd.net/category/cmdlet-series) titled "One Cmdlet at a Time", he's already up to [#23 Disable-ComputerRestore](http://www.jonathanmedd.net/2009/12/powershell-2-0-one-cmdlet-at-a-time-23-disable-computerrestore.html)
-
Ed Wilson's new book is out! Buy it at Amazon:Â [Windows PowerShell(TM) 2.0 Best Practices](http://www.amazon.com/gp/product/0735626464?ie=UTF8&tag=techprosaic-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0735626464)Â (use this referral link to help out the show)
Interview
*This segment is brought to you by *[*SAPIEN Technologies*](http://sapien.com/)*.*
Links
-
Ed was on last time over a year ago! [Episode 50](http://powerscripting.wordpress.com/2008/11/23/episode-50-ed-wilson-microsoft-scripting-guy/)
-
New book:Â [Windows PowerShell(TM) 2.0 Best Practices](http://www.amazon.com/gp/product/0735626464?ie=UTF8&tag=techprosaic-20&linkCode=as2&camp=1789&creative=390957&creativeASIN=0735626464)
-
PS Hyper-VÂ [http://pshyperv.codeplex.com/](http://pshyperv.codeplex.com/)
-
Space Invaders:Â [http://ps1.soapyfrog.com/2007/01/02/space-invaders/](http://ps1.soapyfrog.com/2007/01/02/space-invaders/)
-
Charting:Â [http://chadwickmiller.spaces.live.com/blog/cns!EA42395138308430!473.entry](http://chadwickmiller.spaces.live.com/blog/cns!EA42395138308430!473.entry)
-
[Listener Trevor's blog post about using VPro from PowerShell](http://communities.intel.com/community/openportit/vproexpert/blog/2008/12/03/stepping-through-vpro-powershell-code)
Questions
-
ye110wbeard: ## Ed, when you got hired by Microsoft did you jump up and down like a madman yelling "yeeha"Â
-
rfoust: ## what other scripting languages do you know and how do you think powershell compares?
-
jtruman0917-1: ## With Microsoft promising that all products after Outlook 2007 would have Powershell Support. Â Why would a new automation lang even be a discussion?
-
pcgeek86: What happened to Greg and Jean?
-
rfoust: ## what's the coolest script you've seen and whats the coolest one you've written  Â
-
Jaykul: ## So if you don't exercise best practices when you write scripts ... where do these best practices come from?
-
[several asked if he would come to their user group]
Resources
-
PoshCode:Â [Edit file in Notepad++](http://poshcode.org/1541)
-
Dmitry posted a [PowerGUI Overview Video](http://dmitrysotnikov.wordpress.com/2009/12/17/new-powergui-overview-video/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+DmitrysPowerblog+(Dmitry's+PowerBlog)&utm_content=Google+Reader)
-
Eric Sloof [posted his slides](http://www.ntpro.nl/blog/archives/1359-Eric-Sloof-presented-Managing-VMware-vSphere-4-with-The-Virtualization-EcoShell-at-the-Dutch-VMUG.html) from the recent Dutch VMUG. Topic was managing VMware with vEcoshell.
-
James Brundage's WPK series continues with and [into to containers](http://channel9.msdn.com/posts/philpenn/Windows-PowerShell--A-Brief-Introduction-to-using-WPF-Containers-in-WPK/)
-
Joel Posted a [PowerBoots Gadgets script](http://poshcode.org/1539)
-
James Brundage posted [Test-Spelling](http://blogs.msdn.com/mediaandmicrocode/archive/2009/12/09/test-spelling.aspx)
**
**
**
One-Liners **
**
**
Everybody got silly in the chatroom. So, let's channel that wild energy here with...beer cmdlets! 🙂 Note: these are not guaranteed to actually DO anything. YMMV, BYOB!
-
pcgeek86: Drink-Beer -Amount LotsÂ
-
ScottMoss: drink-beer -refillÂ
-
pcgeek86: Drink-Beer -Type GermanPilsnerÂ
-
ScottMoss: drink-beer -Type Sweetwater BuleÂ
-
jtruman0917-1: Drink-beer -Type DoesItReallyMatterÂ
-
rfoust: get-beer | giveto-rfoustÂ
-
jkavanagh58: drink-beer -brand Yuengling -Type Porter -qty LotsÂ
-
rfoust: while ($true) { get-beer }