Author Archives: richardsiddaway

Subnets and prefixes

Sounds a bit like an old time role playing game but is actually a useful piece of knowledge. You can define a subnet mask in 2 ways. Either use  the full mask e.g. 255.255.248.0  or define the number of bits … Continue reading

Posted in Networking, Powershell | Leave a comment

WMI against remote machines

WMI is a great tool for managing your Windows machines – I’d argue that PowerShell wouldn’t be as powerful as it is without WMI. If you question that remember that 60% of the additional cmdlets in Windows Server 2012 & … Continue reading

Posted in CIM, PowerShell and WMI, PowerShell V3, PowerShell v4 | Leave a comment

PowerShell versions

I’ve been using the CIM cmdlets for a number of posts recently and had a comment that a reader got a message that Get-CimInstance didn’t exist on their Windows 7 machine.  Windows 7 ships with PowerShell 2.0; Windows 8 with … Continue reading

Posted in PowerShell V3, PowerShell v4 | Leave a comment

Status of Office software

You can also use the SoftwareLicensingProduct CIM class to test the status of your Office products. Get-CimInstance -ClassName SoftwareLicensingProduct -Filter “Name LIKE ‘Office%’” | where PartialProductKey | select Name, ApplicationId, LicenseStatus You need to be careful with Office as you … Continue reading

Posted in CIM, Office 2010, Office 2013, PowerShell and WMI, PowerShell V3, PowerShell v4 | 2 Comments

Checking license activation

I’m building some virtual machines for my demo’s at the upcoming PowerShell summit.  To make the demo’s, and setup, more interesting(?) I decided to use some Server Core instances. The usual setup activities become a bit more interesting with Server … Continue reading

Posted in PowerShell and WMI, PowerShell V3, PowerShell v4, Windows Server 2012, Windows Server 2012 R2 | 2 Comments

PowerShell Deep Dive and Save the Children

I co-edited PowerShell Deep Dives – http://www.manning.com/hicks/ – alongside Jeff Hicks and other PowerShell MVPs.  The book is collection of chapters from  PowerShell experts from around the world. The list of authors includes: Jeffery Hicks, Richard Siddaway, Oisín Grehan, Aleksandar … Continue reading

Posted in Powershell, Books | Leave a comment

Requires

A comment was left on my last post stating that the requires keyword could be used to test for modules. Requires is a keyword that can be put at the top of scripts and modules. It will prevent the script … Continue reading

Posted in Powershell Basics, PowerShell v4 | Leave a comment

Testing module existance

I had a comment left on an old post stating that Get-ADuser errored stating it wasn’t a cmdlet.  This is because the module wasn’t loaded or on PowerShell 3 and above available to be auto-imported.  That got me thinking about … Continue reading

Posted in Modules, PowerShell V3, PowerShell v4 | 2 Comments

Getting mailbox data and stats per database

Way back in the day – http://richardspowershellblog.wordpress.com/2007/12/20/list-mailboxes-by-mailbox-database/ – I showed how to list mailboxes by the database in which they were stored.  I had a comment left asking if its possible to list only a specific mailbox and to give … Continue reading

Posted in Exchange, PowerShell V2 | Leave a comment

Finding the class key

Time to extend our module for investigating CIM.  This time I want to show you how to find the key to the class. You need to know the key property of a CIM class when you perform a number of … Continue reading

Posted in CIM, PowerShell and WMI, PowerShell V3, PowerShell v4 | Leave a comment