PowerShell for Windows Admins:

PowerShell 3


May 24, 2013  2:07 PM

PowerShell Deep Dive–MEAP now complete



Posted by: Richard Siddaway
Books, PowerShell 3

The final chapters of PowerShell Deep Dive have been added to the MEAP http://www.manning.com/hicks/ Enjoy

May 8, 2013  1:08 PM

AD MoL Chapter 10 MEAP



Posted by: Richard Siddaway
Active Directory, Books, PowerShell 3

Chapter 10 of AD Management in a Month of Lunches is now available. http://www.manning.com/siddaway3/ The chapter covers Fine Grained Password Policies


May 7, 2013  3:21 PM

Scripting Games–new Get-ChildItem parameters



Posted by: Richard Siddaway
PowerShell 3, Scripting Games

One improvement that came with PowerShell v3 is the –File and –Directory parameters on Get-ChildItem If I run this Get-ChildItem -Path c:\mydata I will get a mixture of directories and files Mode LastWriteTime Length Name ---- ------------- ...


April 30, 2013  12:32 PM

WMI vs CIM speed tests–the final round



Posted by: Richard Siddaway
PowerShell 3, WMI

As a final test I want to see what happened when I ran multiple commands against the remote machine. PS> 1..100 | foreach { Measure-Command -Expression{1..100 | foreach { Get-WmiObject -Class Win32_ComputerSystem -ComputerName W12SUS; Get-WmiObject -Class Win32_OperatingSystem...


April 29, 2013  1:17 PM

CIM vs WMI cmdlets-remote execution speed



Posted by: Richard Siddaway
PowerShell 3, WMI

Following on from my previous post we’ll look at how the two types of cmdlets compare for accessing remote machines. I used a similar format to the previous tests but was accessing a remote machine. First off was the WMI cmdlet – using DCOM to access the remote Windows 2012...


April 28, 2013  3:03 PM

CIM cmdlets vs WMI cmdlets–speed of execution



Posted by: Richard Siddaway
PowerShell 3, WMI

One question that came up at the summit was the comparative speed of execution of the new CIM cmdlets vs the old WMI cmdlets.  No of us knew the answer because we’d never tried measuring the speed.

I decided to perform some tests.

This first test is accessing the local...


April 12, 2013  12:41 PM

Creating a new disk



Posted by: Richard Siddaway
Disks, PowerShell 3, Windows Server 2012

I really like Windows Server Core. The concept has come of age in Windows 2012.

I needed to add a new disk to a virtual machine  - that’s easy using the Hyper-V cmdlets. But what about formating the disk.

A module new to Windows 2012 & Windows can be used.  Its...


April 11, 2013  1:51 PM

Windows Server Backup



Posted by: Richard Siddaway
PowerShell 3, Windows Server 2012

Windows Server 2012 has a PowerShell enabled backup utility. When you enable the feature you get a module called WindowsServerBackup.  It has the cmldets you would expect for creating and managing backups. No surprise you may say as this was avialable in Windows 2008 R2.

The...


April 8, 2013  11:16 AM

Running workflows



Posted by: Richard Siddaway
PowerShell 3

I tripped over an interesting issue recently regarding the running of PowerShell workflows.

Consider the world’s simplest workflow

workflow test-w1 {"hello world"}

If I run this on a 32bit Windows 8  PowerShell machine – it works

If I run this...


April 6, 2013  9:38 AM

AD Management in a Month of Lunches



Posted by: Richard Siddaway
Active Directory, Books, PowerShell 3, Windows Server 2012

The MEAP marches on with chapter 8 now released:

Chapter 8 – creating Group Policies

details from http://www.manning.com/siddaway3/