Thursday, July 25, 2013

Peter Kriegel talks about the German Powershell Community

In my last post I wrote a quick introduction on the Powershell community. Today Guest Blogger Peter Kriegel talks about the German Powershell Community, which is actually one of the most thriving and cooperative out there. Ok, Peter, tell us about the peculiarities and leading voices of the German Powershell Community!

"Compared to the Americans or other Europeans people you mentioned in your previous post, Germans are having a different more reserved social behavior on the Internet. Twitter, Facebook and Google+ are the most used but, still, many don’t have social accounts yet! We go more the traditional ways, with Forums, Blogs and E-Mail. If you have a Blog don’t think that you get comments ;-))

Jeffrey Snover himself says about the German PowerShell MVP Dr. Tobias Weltner "He is the most seen PowerShell MVP ", "A super star". I agree 100% ! I had the honor to meet him on the first PowerShell community conference this year. That was 3 fantastic PowerShell Days!  Tobias is a very kind person and burns for the community. He has written several German PowerShell books which are top sellers! He was the inventor and involved in the development of the Free PowerShell IDE PowerShell Plus from Idera. He has written a Public free PowerShell book and is the owner of There he plan to build up our new north German community Portal. Tobias has an English speaking Blog and now has joined PowerShell Magazine. You can follow Tobias on Twitter: @TobiasPSP

In the south of Germany (Bavarin / Munich) PowerShell MVP Rolf Masuch has built a PowerShell community with a Forum and a Page on Facebook. But since a site relaunch, it is a bit quiet over there. Rolf tries constantly to get the German speaking countries like Switzerland and Austria on board. What's more, Rolf and his friends arrange a PowerShell community conference at Munich every year. Rolf now is no more a MVP because he is now a Microsoft employee, but his PowerShell knowledge is untouched ;-) Rolf is offering PowerShell Videos at "Video to Brain". You can follow Rolf Masuch on Twitter: @PS_Rolf

The best German PowerShell book writer is Dr. Holger Schwichtenberg: he is a MVP on ASP.NET and .NET Framework. He has organized the first PowerShell community conference together with his friend Dr. Tobias Welter and his company IT-Visions. Holger is a very kind person. It looks like Holger has no social account because he is a very busy person.

Another leading member of the German Powershell Community is Peter Monadjemi who has also written PowerShell books (PowerShell Crash Course) and has spoken at the PowerShell community conference. He is a very kind buddy like Balu the bear ;-). Peter has a Blog and you can follow him on Twitter: @pemo09

If you go on the German TechNet PowerShell Forum, you can meet the German PowerShell MVP Denniver Reining. Denniver develops tools for PowerGUI (snippet manager). Denniver has an English speaking Blog.

Now a few words about me: my name is Peter Kriegel and I am a Sysadmin and PowerShell enthusiast. I have a technical blog. You can find me on Facebook, Google+ and Twitter @PeterKriegel On these channels I don’t do private posts! I only repost hand selected PowerShell articles from other people blogs related to PowerShell core topics (no SQL, no Hyper-V no Sharepoint or Exchange pure PowerShell core topics): you can take it as a PowerShell news channel. Currently I am recording a full-blown 21 hours PowerShell basic tutorial on Youtube. I like video recording more than (bad) writing ;-) I am also a Microsoft community contributor (MCC) on the German TechNet PowerShell Forum."

Thanks Peter for this interesting overview. I will follow you on your Twitter account. If anybody else want to write a guest post describing his local Powershell Community, you are most welcome! At the same time don't forget that Powershell Golf is still under run and that you can play with us, and that Don Jones is organising the first European Powershell Summit next year and is waiting for your advice on the location.

Wednesday, July 17, 2013

Powershell, history and community

I can't see behind the Microsoft curtains but, all the same, I wanted to share today my vision of the Powershell Community as it appears to me, so that any newcomer on the subject can quickly get a grasp on it.

Let's start with a brief introduction. Windows Powershell is a scripting language and command-line environment aimed at managing and administering any Windows functionality from the shell, as opposite to the use of a Graphical User Interface (GUI).

If we go back a bit, in the beginning there was MS-DOS, which is the black window most of you remember. You can see in the following screenshot a virtual machine running MS-DOS 2.11 I have in my home lab. Of course no Powershell in those forgotten lands:
What?! No Powershell in MS-DOS 2.11?!!

Then the GUI came and everything seemed so simple that many devs started to administer their own servers.

Windows early history:
  • 1975 – “Microsoft” formed by “Bill Gates”
  • 1980 – Xenix (Unix based OS) released by Microsoft
  • 1981 – MS-DOS 1.0 released with new IBM PC
  • 1985 – Windows 1.0 released
  • 1992 – Windows 3.1 Released
  • 1993 – Windows NT 3.1 released
  • 1995 – Windows NT 3.5.1 and 95 released
  • 1996 – Windows NT 4.0 released
Most of today Windows sysadmins started using MS-DOS 6.22, then switched over to Windows 3.1 and so on. Then one day came and they recycled their mouse-clnking skills on Windows NT4. Some came from the NetWare world, but they also moved on to NT4 when Microsoft conquered Novell after a long marketing war. Windows NT was at the time a general-purpose OS that natively spoke TCP/IP and it had the familiar Windows user interface, as opposed to the remote-server-console admin of NetWare.

Then there was Windows 2000, Windows 2003, Windows 2008 and its R2 refurbishment. And Powershell came on the show.
Powershell is born (by Lee Holmes)
First version 1.0 in 2006, then version 2.0 in 2009. The word started to spread and some Windows admins started to migrate their vbs script to ps1 (which is the default extensions for Powershell scripts). In 2011 came Powershell 3.0, with its generous amount of improvements, then, more or less three weeks ago, Microsoft released the Preview of Blue, codename for Windows 8.1 (for the client part) and Windows 2012 R2 (for the server part). With this last version of the kernel, Microsoft released its last FrameWork containing Powershell 4.0, 32 years after the first release of the command prompt!

It's evident that today Microsoft is trying to change the way of thinking of Windows sysadmins: the Server GUI is (slowly) on the way out, to be replaced by a shell that looks so much like the original MS-DOS (they even use a similar font) but it's exponentially more powerful.
Powershell latest release in 2013: V4

This story cannot continue without giving proper recognition to the Powershell founders: the initial design was made by three people, Jeffrey Snover, Bruce Payette and James Truher. They received the LISA award for PowerShell, "for bringing the power of automated system administration to the Windows environment, where it was previously largely unsupported. Unlike most historic scripting languages, PowerShell does so with particular elegance, weaving the Lambda Calculus into the language, without forcing the developer to have an advanced degree in computer science to be able to use it. PowerShell has been a landmark success, exceedingly popular with system administration users, having a very high impact on the automation of Windows administration."(source:
Award for Powershell invention

Today you can follow Jeffrey Snover (Microsoft Distinguished Engineer/ Lead Architect for Windows Server and System Center Datacenter/ PowerShell Architect) at @jsnover He is giving a Powershell fast-paced training on Microsoft Virtual Academy on July, 18th 2013 which anybody interested in Powershell should register for:

Microsoft Academy on Powershell 3.0

Bruce Payette (@BrucePayette) has written probably the best advanced book I have ever read on Powershell: Windows Powershell in action. As somebody commented, "There are countless places in the book where I thought, "I didn't know you could do that". I absolutely recommend it, both for IT Pros and Developers." I can't wait to read the next edition on Powershell 3.0 if it's ever published!

That's all for the story. Let's now see what's been happening in the Community and who are the people/events that brought Powershell to the limelight.

Let's start with Ed Wilson (his blog is here), as well as with his wife Teresa. They have done a great deal of work around Powershell in the last years, pushing it farther and higher, both for beginners and advanced users. I have been following their daily articles on the Hey, Scripting Guy! blog and kept learning new stuff every single day. For more information on Ed check the website.

Say hello to Dr. Scripto
I mentioned This is the website that took over the organisation of the Powershell Scripting Games this year and that is in charge of organising the Powershell summits. Behind the scene there are  Don Jones (@concentrateddon), Richard Siddaway, Kirk Munro, Jeffery Hicks, and Jason Helmick.

Don Jones is definitively one of the leading voices in the Community, so I deeply suggest subscribing the TechLetter which is sent out by him approximately once a month.

Don Jones is the first one to my knowledge who started talking about the latest cool feature of Powershell: Desired State Configuration (DSC). He is also planning a European Powershell Summit, which should take place next year, in September. Actually there is a poll under-run to choose the city that will host the event, so everybody is invited to vote here. For the moment it looks like that UK/Netherlands/Germany are doing great in the polls. This is because Southern Europe seems to be less involved in that 'Powershell change' Microsoft is hoping for.

If there are readers from Italy, France, Greece or Spain, I invite you to sign in on Twitter and join the Powershell Community so that we grow our influence factor. There are in particular a few people to follow on Twitter: myself, Fabien Dibot, Fabrice Zerrouki (MVP), Pascal Sauliere and Arnaud Petitjean, not to mention the French Powershell community. In Italy there is one person in particular who has been awarded the Powershell MVP: Efran. He has a blog on .NET wonders, and is the owner ot the Italian Powershell Community (

On the international scene there are today alot of people who are proficient on Powershell and which you can get in touch with.

Let's start with the winners of the 2013 Powershell Scripting Games. There is the advanced category winner Mike F Robbins (@mikefrobbins, who recently organised a one-liner contest that I won and who is extremely active on the show, as you can check here. He was also on the last Powersscripting Live last week.

Then there is Taylor Gibb (@taybgibb), who earned his MVP award winning in the beginner category. He lives in Durban, South Africa and has a blog (

Other good profiles to follow are:
They are all proficient in Powershell and are keeping the Community alive with their tweets, blog posts, articles, contests, deep-dives, and so on.

If you are interested in getting proficient on Powershell for VMWare (PowerCLI), then get in touch with Luc Dekens (@lucd22). He definitively does the best scripts to handle your virtual infrastructure and has been deservedly awarded the Powershell MVP this year for the first time.

Last but not least, yesterday a new Powershell competition has started. It's called Powershell Golf and you can follow it on twitter with the hashtag #psgolf. It's being organised by Robert (@muisak) and the rules for the game are here. There are 18 holes in this Powershell contest and each hole must be solved in less or equal the stated Par.

People playing Powershell Golf in 2013
As you can see the Powershell Community is indeed very active. The 'Powershell' word is mentioned almost 20 millions times on Google and it's growing and growing.
Powershell getting famous
Powershell trends since 2006
 And the first jokes are out (source):
Powershell joke

VBS joke

That's all for a general introduction Powershell and its community. Do not hesitate to leave your advice, feedback or if you want your name to be added/removed, or to be mentioned, just ask! Retweet also if possible!

UPDATE - July 22nd, 2013: For a list of blogs mantained by well-known Powershell MVP, check this post by Peter on Thanks Peter for sharing!

UPDATE - July 2014: Windows Powershell 5.0 (contained in WMF 5.0) is available for download. You can read more about it here and here.

Tuesday, July 9, 2013

Testing the new Get-FileHash Powershell cmdlet

I have been playing with Powershell v4 on Windows 2012 R2 for a week now. The last post I wrote was about some new functionalities of workflows, which you can read here.

Today I'm going to focus on a new cmdlet which has been added to the latest release of Powershell: Get-FileHash. This cmdlet takes in any file and generates its hash, which is a kind of "signature" for the stream of data that represents the contents of the file itself. To better understand this concept, let's see some examples of hashes at work. Here we have two files, named smallfile.txt and bigfile.txt:
PS C:\> Get-Content .\smallfile.txt
this is a small file

PS C:\> Get-Content .\bigfile.txt
this is a big file with more content
Now let's generate their signatures:
PS C:\> Get-FileHash .\smallfile.txt | fl

Path : C:\smallfile.txt
Type : System.Security.Cryptography.SHA256Managed
Hash : Wbfe8JVPZEEgYw/FL8nKz597pWmdkA3UDuDnqbvZ9tE=

PS C:\> Get-FileHash .\bigfile.txt | fl

Path : C:\bigfile.txt
Type : System.Security.Cryptography.SHA256Managed
Hash : FshDknouCGcNbDCA0AtYEtRC0hmPblSgP2L5PRliD4c=
The cmdlet returns a Hash property which the algorithm tries to keep unique. To confirm this, try changing just one char of a test file. You'll find that even a single change to the source stream of data yields sweeping changes in the value of the hash, and this is known as the 'Avalanche effect'. The avalanche effect can be best proved by hashing two files with nearly identical content. For instance, I've changed the first char of bigfile.txt fro 't' to 'T' and the whole hash changes:
PS C:\> Get-FileHash .\bigfile.txt | fl

Path : C:\bigfile.txt
Type : System.Security.Cryptography.SHA256Managed
Hash : /iloMfyOMQsRsv/rjMTU9hck7hYeHK9atGen4pm5yWE=
Let's now move to another aspect of this subject. As you can see in the Type property above, the default algorithm used by Get-FileHash is SHA256 (Secure Hash Algorithm 256 bit), which is one of a number of cryptographic hash functions. This SHA-256 algorithm generates an almost-unique, fixed size 256-bit (32-byte) hash.
Related Posts Plugin for WordPress, Blogger...