PowerShell for Windows Admins:

Windows Server 2012


April 13, 2014  5:50 AM

Checking license activation



Posted by: Richard Siddaway
CIM, PowerShell 3, PowerShell v4, Windows Server 2012, Windows Server 2012 R2, WMI

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 Core – particular Windows...

January 14, 2014  12:24 PM

VM disk info



Posted by: Richard Siddaway
Hyper-V, PowerShell, Windows Server 2012, Windows Server 2012 R2

A question came into the forum about getting information on the virtual disks associated with particular Hyper-V virtual machines. Is a bit of a digging exercise but this gets the results: Get-VM | foreach { $VMname = $psitem.Name Get-VMHardDiskDrive -VMName $VMname  | foreach { Get-VHD...


September 21, 2013  5:37 AM

AD Month of Lunches–Chapt 18 & 19 in MEAP



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

An updated MEAP has been released for Active Directory Management in a Month of Lunches. This one adds chapters 18 & 19 Chapter 18, "Managing AD trusts" Chapter 19, "Troubleshooting your AD" The MEAP is available from www.manning.com/siddaway3 Enjoy


September 10, 2013  3:27 AM

PowerShell one-liner for virtual disk analysis



Posted by: Richard Siddaway
Hyper-V, PowerShell 3, Windows Server 2012

I needed to look at my virtual machines & their disk sizes – with Windows 2012 R2 upgrade in the works I need to do a bit more tidy up I found two cmdlets in the Hyper-V module: get-vmharddiskdrive – can be related to the virtual machine but doesn’t give a size get-vhd –...


August 31, 2013  2:18 PM

Server Core Module



Posted by: Richard Siddaway
PowerShell 3, Windows Server 2012

On a Windows Server 2012 system you will find a ServerCore module with two cmdlets Get-DisplayResolution Set-DisplayResolution On a full GUI system the cmdlets work PS> Get-DisplayResolution 1366x768 1280x1024 And thats it! Not a lot but it shows the basic information You...


August 30, 2013  4:29 AM

Setting an IP address



Posted by: Richard Siddaway
Network, PowerShell 3, Windows 8, Windows Server 2012

I need to add an IP address to an adapter. I could use the GUI or WMI but with Windows 8/2012 and above I’ve got all of the nifty networking cmdlets to play with. Lets start with finding the adapter to use PS>Get-NetAdapter will show all of the adapters. Unlike ipconfig it only shows...


August 29, 2013  12:11 PM

AD Management MEAP–chapter 17



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

My Learn AD Management in a Month of Lunches is moving on apace with the release of chapter 17 to the Early Access Process. This one covers AD replication www.manning.com/siddaway3 Enjoy


August 28, 2013  1:15 PM

International module



Posted by: Richard Siddaway
PowerShell, Windows 8, Windows Server 2012

The International module has an interesting set of cmdlets: £> Get-Command -Module International | select Name Name ---- Get-WinAcceptLanguageFromLanguageListOptOut Get-WinCultureFromLanguageListOptOut Get-WinDefaultInputMethodOverride Get-WinHomeLocation...


August 27, 2013  1:50 PM

Windows Error Reporting Cmdlets



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

Windows Error Reporting (WER) captures software crash and hang data from Windows systems. The data is sent to Microsoft for analysis. The data captured by WER is used to identify those bugs that are affecting customers the most. Fixing those bugs benefits the whole Windows user community. WER is...


August 12, 2013  1:48 PM

Active Directory Cookbook 4th Ed



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

The Active Directory Cookbook (O’Reilly ISBN: 978-1-449-36142-6) has been a constant resource for me since the first edition covering Windows 2003. I plundered the book for a lot of my early forays in scripting AD. The cookbook supplied answers using as many as possible of the GUI tools, command...


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: