PowerShell Team
Automating the world one-liner at a time…
Latest posts

Let's do a deep drill into Select-String

In my blog post Processing .EML files using Select-String and SetCreationTIme() (http://blogs.msdn.com/powershell/archive/2006/11/23/processing-eml-files-with-select-string-and-setcreationtime.aspx ), I showed you could do some incredibly powerful stuff using 2 lines of PowerShell Script. The reason you can do this is because of the design of Select-String. Select-String is a very cool utility and can make you very productive so let’s drill into it. Note – I had a bug in that script which I’ll correct at the end. I think you are going to enjoy this one but you’ll probably want to grab a c...

Processing .EML files with Select-String and SetCreationTime()

In our newsgroup Microsoft.Public.Windows.PowerShell, Steve Foster asked whether PowerShell could help him with a bunch of emails in .EML format. Here was his query: Got a bunch of emails (.EML) that have been copied around various places with the result that their file timestamps bear no resemblance to the dates in the emails.It would be really helpful to extract the date from the headers in the emails, and update the timestamps on the files accordingly.It strikes me that this would be the sort of thing PowerShell ought to be really good at - but could it do the job? And if so, how? Remember tha...

Protecting Against Malicious Code Injection

If you are writing scripts that accept input from users - you need to be aware of the potential dangers of Malicious Code-Injection. Below is a good good article on this topic: http://www.site-reference.com/articles/Website-Development/Malicious-Code-Injection-It-s-Not-Just-for-SQL-Anymore.html Here is a line from that article: All code injection attacks work on the same principle: a hacker piggybacks malicious code onto good code through an input field in the application. Therefore, the protection instead has to come from the code within the application itself. The basic idea is that you ...

Sapien's Great PowerShell Blog

Don Jones and Jeffery Hicks are doing a great series of PowerShell blog entries at: http://sapien.eponym.com/blog Check them out. Jeffrey Snover [MSFT]Windows PowerShell/MMC ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Podcast with Bruce Payette

Rodney Buike recently interviewed Bruce Payette (our Language Dev Lead) at: http://blogs.technet.com/canitpro/archive/2006/11/20/podcast-powershell-with-bruce-payette.aspx Bruce and Jim Turher did a super job designing the language (they exceeded my wildest expectations) and in this interview, Bruce discusses the motivation and mindset that went into its design. This interview gives you a nice sample of the sort of great insights you'll get from Bruce's upcoming book Windows PowerShell In Action: http://www.manning.com/payette/ Jeffrey Snover [MSFT]Windows ...

UK PowerShell Users group being formed

Richard Siddaway and Thomas Lee are trying to get a PowerShell Users Group started in the UK. If you are interested, let them know at: http://tfl09.blogspot.com/2006/11/uk-powershell-user-group-anyone.html Jeffrey Snover [MSFT]Windows PowerShell/Aspen ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx

Transcript of Solving Management Problems with Windows PowerShell
Along with Jeffrey, I presented Solving Management Problems with Windows PowerShell session at TechEd Barcelona. Many people asked for the script examples I used during the presentation. Attached zip file contains transcript as well as input files used during presentation. ------------------------------------------------------------------------------------------------------------------- Arul Kumaravel [MSFT] Development Manager, Windows PowerShell, My PowerShell blog: http://blogs.msdn.com/arulk TechEd.zip

Transcript from my IT Forum Chalk and Talk

During my IT Forum Chalk and Talk on PowerShell Utilities, I created a transcript and promised to post it. The talk was really free form with me responding to the various questions from the audience so that transcript does not follow any particular storyline. Jeffrey Snover [MSFT]Windows PowerShell/MMC ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx ITForum.zip

Port25 Interview

I recently did an interview with Sam Ramji of Port25. I must say that I really enjoyed this talk. Sam is a a really smart guy and we had a blast exploring a wide range of topics. http://port25.technet.com/archive/2006/11/14/powershell-released-an-interview-with-architect-jeffrey-snover.aspx Jeffrey Snover [MSFT]Windows PowerShell/MMC ArchitectVisit the Windows PowerShell Team blog at: http://blogs.msdn.com/PowerShellVisit the Windows PowerShell ScriptCenter at: http://www.microsoft.com/technet/scriptcenter/hubs/msh.mspx