A Podcast about Windows PowerShell.
Listen:
In This Episode
Tonight on the PowerScripting Podcast we talk to Quest Software about Mobileshell and PowerGUI Pro
News
- SAPIEN just announced that the PowerShell 2.0: TFM ebook is ready for download
- Global SharePoint User Group is coming soon!
- PowerShell Community Extensions 2.0 is in beta!
- VMware has launched their Script-O-Mania contest. Top prize is $2500!
Interview
This segment is brought to you by SAPIEN Technologies.
Links
- MarcoShaw: ##Quest: Any plans to use the new PowerShell features in SharePoint2010?
- Jaykul: ## Why doesn’t PowerGUI “extend” Modules, instead of having a proprietary format?
- Jaykul: ## Does MobileShell run all teh commands on my webserver, by default?
- aleksandar: ## i would like to hear about mobileshell from the security point of view
- ChadMiller: ##Internally is Quest looking to build managment tools based on Powershell. As example something like Capacity Manager could have been built on Powershell and GUI hosts Powershell
- Jaykul: ## Is there any plan or possibility to have the webserver use MS-PSRP (PowerShell Remoting Protocol) to have the actual shell run … well, somewhere that isn’t my webserver?
- aleksandar: ## is mobileshell supported in browsers other than IE?
- aleksandar: ## how many concurrent sessions does the mobileshell support?
- glnsize: ## is is also exposed as a web service? The use case would be *nix host’s that would benefit from a posh proxy.
- aleksandar: ## can i have a transcript of a session in mobileshell or any kind of a log of typed commands?
Hero/Power – Silver Surfer
- From David Moravec
- Use Get-Help! It looks strange but there is a lot of things you can learn from help. Really!
- -WhatIf is your best friend.
- Add Get-Member to your daily portfolio. It will show you another dimension.
- Tobias shows us how to edit the remoting permissions with Set-PSSessionConfiguration
- Copy con for PowerShell
- From Pepa Stefan
- Useful oneliners
http://stackoverflow.com/questions/615287/useful-powershell-one-liners - What to have in my posh profile
http://stackoverflow.com/questions/138144/whats-in-your-powershell-profile-ps1file - Windows PowerShell Tips
http://technet.microsoft.com/en-us/library/ee692948.aspx - Passing parameters to script in a hashtable (see the answer)
http://stackoverflow.com/questions/2057631/must-powershell-scripts-be-called-using-only-a-single-line
and once again splatting
http://blogs.msdn.com/powershell/archive/2009/01/02/how-and-why-to-use-splatting-passing-switch-parameters.aspx - Some list of Posh tips
http://concentratedtech.com/item/view/id/27/title/21_PowerShell_Tips - Some tips for developers
http://stackoverflow.com/questions/622902/powershell-tips-tricks-for-developers/623284
- Useful oneliners
- From James Brundage
- Shay posted a couple of one-liners to get WinRM port numbers
- From Aleksandar Nikolik
-
How to swap two (small) text files? Same as variables:
${c:file1.txt},${c:file2.txt} = ${c:file2.txt},${c:file1.txt}
Works even in V1. 😉
-
1. Add inline help – even you will forget what some of your scripts do
2. Always output objects, so you can use the full joy of PowerShell
3. Split your scripts up into many functions: The bigger the script, the harder to understand.
4. Always write functions, not parameterized scripts. No one likes jumping around the file system.
5. Even if you know the command line, give .NET a try. The .NET framework is your friend.
[…] MobileShell and PowerGUI Pro podcast published Published February 4, 2010 MobileShell , PowerGUI , PowerShell , podcast Leave a Comment PowerScripting podcast episode in which Hal and Jonathan met with Darin Pendegraft, Kirk Munro and myself and discussed the latest news from the PowerGUI team just got posted here. […]
[…] hope this makes sense. You can hear Darin and I discuss this more in the PowerScripting Podcast published […]