PowerShell

Why and when I started with PowerShell

People always ask me why I focus so much on PowerShell. In this blog post I want to tell you when I started with PowerShell and especially why.

Changing my mind: The Windows Server 2012 Books

I remember teaching a class of network engineers. We used Windows Server 2012 for the first time. We also had some Microsoft Press books. These Windows Server 2012 books have changed my mind about Windows and the future of Windows server administration.

The Windows Server 2012 books were different. The books were full of PowerShell commands for the first time. That’s a clear signal from Microsoft. That made me think about what I’m teaching now and what I should teach in the future.

Server Core: This is not your fathers Windows Server

I remember the day when a student asked me why we are not learning Windows Server Core. I had no answer. This incident was important for my future. I should probably think this over. My re-thinking started again.

Windows Server Core is the default installation option. That’s again a clear signal from Microsoft. There is no reason not to use Windows Server Core unless you need this server for enterprise products like Exchange or SCCM.

core.png

Remember, if you are upset about the huge amount of Windows updates and the vulnerabilities of Windows, it’s up to you. You can change this. Simply install Windows Server Core instead of a server with a fully graphical user interface.

Nano Server: The headless version of Windows Server

I remember the discussions with my linux trainer colleagues about how small an operating system should be. By all means, it should be small.

Smaller operating systems requires less updates, are more secure and last but not least they have lower hardware requirements.

With the introduction of Nano server one thing was clear to me: I have to learn PowerShell much more than I’ve learned so far.

140.png

And last but not least: The Independence

PowerShell makes you independent of the graphical user interface settings. You are able to create your own functions and you can do things you don’t even know they exist.

I’ll give you an example. The command below creates 100 Nano Server in Hyper-V at once.


Import-Module C:\Temp\NanoServerImageGenerator\NanoServerImageGenerator.psm1 -Verbose

1..100 | ForEach-Object `

{New-NanoServerImage -Edition Standard -Administratorpassword $null `

-Package Microsoft-NanoServer-IIS-Package `

-DeploymentType Guest -MediaPath e: `

-BasePath c:\Temp `

-TargetPath c:\Temp\Nano$_.vhdx -ComputerName Nano$_}

(Get-Childitem C:\Temp\*.vhdx).BaseName |

Foreach-Object {New-VM -Name $_ -Generation 2 `

-MemoryStartupBytes 1GB -SwitchName Internet `

-VHDPath C:\Temp\$_.vhdx}

Cool stuff ha?

That’s why I started learning PowerShell.

With PowerShell you can make things happen. PowerShell expands the possibilities by an unimaginable multiple.

All the best,

P

Categories: PowerShell

Tagged as: ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.