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.
News
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
Community Roundtable
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
- licenses:
- CC-By (Attribution)
- CC-PD (Public Domain)
- GPL (sucks [says Hal])
- MS-PL
- 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)
- Comments
- Published WCF interface for external use.
- Repository would designed so that users can host their own repositories.
- RSS fallback
Resources
- 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
Tips
- 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
Contest
Winners for the /n software Netcmdlets contest are:
- 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.
Gotcha
- 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.
Don’t forget to follow us on twitter (halr9000, jonwalz), UStream, and Facebook!
Hysterical.
I would like to make a suggestion for poshcode.org future versions.
The ability to browse the full script respository would be great. I find that just seeing what other people are submitting and how they are using Powershell useful. Plus for new people they would be able to see how flexible the tool really is.
As always great show and looking forward to next week.
Great podcast .. love it ! Learned a lot
@Steven, that is definitely the the top of the planned features.
@Bernard, thanks!
Actually, you can see all the scripts (this is a, uhm … easter egg … heretofore only known by those who’ve browsed the source) … just put a ?list=300 onto the domain (there’s less than 300 scripts right now) … I’m not going to link to it properly here for fear that Google will pick it up and start indexing it, but basically like this http://poshcode.org/?list=10 but with a bigger number. 😉 …
I’m working on a “next page” feature and once that’s in, I’ll put links up for showing 10/20/50 and probably put a limit on the list count, so this won’t kill us as the count goes up.
[…] You can hear Joel and Hal talk about it on this episode of the PowerScripting podcast. […]
[…] – bookmarked by 6 members originally found by singerjonny on 2008-12-24 Episode 38 – PoshCode and PowerShellPlus https://powerscripting.wordpress.com/2008/08/25/episode-38-poshcode-and-powershellplus/ – […]