A Podcast about Windows PowerShell.
In This Episode
Today on the PowerScripting Podcast we have a special roundtable with guests Joel Bennett and Mark Schill. We also have the usual cornucopia of of news, tips, and resources. We'll also be announcing the winner of our /n Software contest from show 36.
This segment is brought to you by iTripoli!
"Admin Script Editor (which recently received Windows IT Pro's top award) provides a true integrated scripting environment for PowerShell.Â The guys at iTripoli haven't done a great job getting the word out about Admin Script Editor so to make up for it they are offering a 50% competitive discount.Â Go to adminscripteditor.com to find out if you qualify."
- PowerShell Plus has gone Professional! Check out the 2.0 beta, it's got lots of cool new stuff.
- PowerShell Boot Camp Winter 08/09 | SAPIEN Technologies
This segment is brought to you by Quest.
Do you have what it takes to be the ultimate script warrior? Find out with Questâ€™s PowerPack Challenge â€™08.
Quest Software is sponsoring a PowerShell Scripting contest where you can test your skills and get paid. Just create some cool PowerShell scripts using Questâ€™s PowerGUI and then post them to our site. Youâ€™ll get a score and our celebrity judges will weigh in as well.
Do you have the muscle to bring home the prize? Check out the details here.
[This segment mostly revolves around a discussion of PoshCode.org, the script repository for PowerShell which aims to match CPAN or PEAR in scope. After an introduction to PoshCode and an update on the site activity, we launch into a discussion of the future of the tool.]
PoshCode Requirements List
The "use" requirements
- Host snippets of code
- Host scripts with multiple functions (including a way to search on verb/noun which will find all the functions in a script)
- Host script modules -- which may contain multiple files (need ui for multiple files, and download for "all at once")
- Easy in, easy out. (low barrier to entry to contribute, multiple ways to download, view, browse, sort, filter)
- Compiled Modules would require source code to be uploaded and PoshCode online would compile
- I don't think we want to get into compiling things on the server ... let them compile them themselves (we'd have to require *proj files after all) (Joel)
- I'm not actually sure we want to do this at all, it's a deep overlap with every other source control service ...
- This may be v2 stuff (hal)
- Users would be able to select from a list of approved licenses to be applied to their scripts.
- License information would be prepended into script upon download
- CC-By (Attribution)
- CC-PD (Public Domain)
- GPL (sucks [says Hal])
- Repository would have the following fields: Description, Usage, PSVersion,Â and Version History
- Fields would be inserted as comments into the scripts when retrieved.
- Dependency on other scripts would be controlled by a link to the other script(s).
- Tags would be used to signify requirements on external dependencies. ex. "VMWare ESX 3.5", "AD 2003", etc.
- Well we do need a version field for specifing PS version.
- We should ask that users be explicit about versions by using the #requires -version n.n header in their scripts/modules. (oisin)
- Published WCF interface for external use.
- Repository would designed so that users can host their own repositories.
- RSS fallback
- Installing DotNetNuke with PowerShell - "I started building a series of PowerShell scripts for simplifying the process. Although there are installers available for DotNetNuke, they are often out of date and are fairly rigid in how they perform the install. Using PowerShell provides a lot of advantages over a traditional installation program. I have complete control over the installation in an interactive environment and can change any one of dozens of parameters that control the installation."
- PowerShell Team Blog : V2 Interview: Universal Code Execution Model - "At TechEd, I did an interview with Kevin Remde where I discussed the V2 Universal Code Execution model in detail. You can see it at: Universal Code Execution Model (UCEM)â€”a vision of how PowerShell scripts can run anywhere, anytime in just the right semantics."
- Dmitry posted about a SQL Reporting Services PowerPack for PowerGui
- Nivot Ink - Auto mount/unmount new PSDrives for removable drives and network shares in PowerShell v2 - With this module, anytime you add or remove a removable device like an external harddrive or USB key, or map a new network drive in explorer, PowerShell will now automatically add or remove a corresponding PSDrive for you. Sweet!!
- [IO.File]::ReadAllLines($file).Length is an order of magnitude faster than (get-content $file).length
- PowerShell Email Alerts
- Neat script too allow RDP sessions only from white-listed workstations
- Steve Hiner - Wrote a wrapper for Send-Email script to send email using Gmail's SMTP server
- Mark Schill - Sent in two entries, the one we've chosen to highlight is his Twitter IM client bot thingy. It uses Send-IM and Get-Http
- Quintus - A script to download an ESPN podcast using the Get-Rss cmdlet
We will be posting the scripts over the next week, so watch the site for those.
- Downgrading from PS v2 to v1 causes the snapins installed from v2 to quit functioning--even if they are compatible with v1.Â A reinstall of the snapin will fix.
We would like to thank Joel and Mark for coming on the show. Weâ€™d also like to thank Ye11owbeard, JPayleck, and BrandonF for helping us test the UStream channel.