Author Archives: richardsiddaway

Creating NIC team without knowing the team members

I was asked how to create a NIC team only using the 1GB adapters without knowing how many 1gb NICs were on the server.   I think this should solve the problem   New-NetLbfoTeam -TeamMembers (Get-NetAdapter | where Speed -ge … Continue reading

Posted in Networking, PowerShell V3, PowerShell v4 | Leave a comment

PowerShell books = Deal of the Day

Manning’s Deal of the Day for 18 November 2014 includes PowerShell in Depth, second edition and PowerShell and WMI

Posted in Books, Powershell | Leave a comment

PowerShell is 8 years old this month

Strange as it may seem PowerShell 1.0 was release in November 2006. In that time we’ve had a lot of changes: – PowerShell support added to all major Microsoft products – except Office! – Third party adoption of PowerShell – … Continue reading

Posted in Powershell | Leave a comment

PowerShell in Depth, second edition in print

I received my copies of the print version of PowerShell in Depth, second edition today.  Amazon shows it being available in a couple of days Enjoy

Posted in Books, Powershell | Leave a comment

Transcripts

The ability to create transcripts of your PowerShell activity is great for keeping track of what you’ve done. They are also very useful when testing as you can keep a record of your results.  There’s one problem though – transcripts … Continue reading

Posted in PowerShell v5 | Leave a comment

PowerShell classes – - static classes

A static class is one that you don’t need to create  an instance of the object to use – the [math] class provides many examples e.g. £> [math]::pi3.14159265358979 You can create a class with static methods using PowerShell classes: class … Continue reading

Posted in PowerShell v5, WMFv5 | Leave a comment

WMI integer properties – alternative decoding options

  WMI has many properties where the the value is an integer: £> Get-CimInstance -ClassName Win32_LogicalDisk | Format-Table DeviceId, DriveType, Size, FreeSpace -a DeviceId DriveType         Size    FreeSpace——– ———         —-    ———C:               3 135810510848 120492625920D:               5   In the example drive type … Continue reading

Posted in PowerShell and WMI, PowerShell v5 | Leave a comment