A Podcast about Windows PowerShell.
Listen:
In This Episode
Tonight on the PowerScripting Podcast we talk to developer Jason Shirk from the PowerShell team.
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.
- We’d like to congratulate returning PowerShell MVPs and the newest MVP Antoine Habart (author of PoshBoard)
- PoshBoard v2.0 just released
- PowerShell Cookbook now available on the iPhone
- The Exchange team blogs about PowerShell changes coming in E2010
Interview
Links
- Comment-based help:Â http://technet.microsoft.com/en-us/library/dd819489.aspx
Questions
- finked: ## what was your first scripting language?
- palen: ## Did you spend much time on performance in the parser, or was that largely v1 kind of stuff?
- glnsize: ## as a comment… I don’t write anything without implementing cmdlet bindings
- glnsize: ## ahhh there’s cut and paste and your not typing this stuff at the console… keeping the parameters the same as c# allows me to easily translate code
- finked: ## what other areas might get performance boosts in the future?
- glnsize: ## what happened to runspaces, in ctp2 i could use runspaces… v2 switched to jobs and now I can’t run scriptblocks locally in seperate runspaces. Â rather i don’t think i can…
- palen: ## Wait, an API for the PowerShell tokenizer?
Resources
- PoshCode:Â Get-DominosOrderStatus script!
- Another method to provide help for you functions is by using external files. Chad Miller makes it easier.
- Doug Finke shares a cool project for an interactive PowerShell tutorial
- MVP Guy Thomas releases his Ezine 185 “PowerShell and Services”
- New PowerShellTips blog:Â http://www.powershelltips.org/
- MVP Dmitry Sotnikov shows how to use background jobs in PowerGui
- Monitor login failures from the event log (from The Scripting Guys forum)
Tips
- Piping a range of integers to reduce your workload
- Explicitly casting types (thanks Tobias)
- Allowing non-administrators to create a remote session in PowerShell v2.
Gotcha
- Watch out for trailing commas in your csv files
One-Liner
- function bg { Start-Job -ScriptBlock { $args } }