PowerShell for Windows Admins:

Windows Server 2012


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...

August 11, 2013  1:56 PM

WMI and Trusts



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

When you install AD on a machine you get the MicrosoftActiveDirectory WMI namespace as well. This namespace was deprecated in Windows 2012 but while it is still available there are few useful things we can do with it. Even with my fondness of WMI I’m not suggesting moving to using WMI wholesale...


July 17, 2013  2:05 PM

Internet Connection



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

Can you find the network adapter on your machine that’s connected to the Internet? On a Windows 8/2012 machine its fairly simple: PS> Get-NetConnectionProfile -IPv4Connectivity Internet Name : NetworkName InterfaceAlias : AdapterName InterfaceIndex : 12...


July 15, 2013  12:32 PM

AD Management MEAP



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

A new MEAP was released last week for AD Management in a Month of Lunches. Chapters 1-15 are now available http://www.manning.com/siddaway3/


June 26, 2013  2:06 PM

RDP annoyance



Posted by: Richard Siddaway
Windows 8, Windows Server 2012

I’ve RDPing into a number of servers from different systems recently and the way the screen resolution changes to match your monitor size is annoying. If I use the shortcut to the session I get whatever sizes were set in the last session so often logon, curse when the size isn’t convenient and...


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 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/


April 1, 2013  5:17 AM

Shutting down a remote computer



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

PowerShell provides the Stop-Computer cmdlet for closing down a remote machine. I find this especially useful in my virtual test environment. I’ll have several machines running but won’t necessarily have logged onto them. Using Stop-Computer means that I can shut them down cleanly without...


March 11, 2013  2:07 PM

Network Adapters–Disable/Enable



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

Last time we saw the Get-NetAdapter cmdlet from the NetAdapter module

PS> Get-NetAdapter | ft Name, InterfaceDescription, Status -a

Name    ...


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: