O'Reilly logo

Windows PowerShell® 2.0 Bible by Tome Tanasovski, Mark E. Schill, Karl Mitschke, Thomas Lee

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8

Performing Basic Server Management

IN THIS CHAPTER

Discovering how your server is configured

Working with the task scheduler

Checking for hotfixes

Examining event logs

Managing system time

In this chapter, you read about performing basic server management with Windows PowerShell. This will be done by using a combination of built-in cmdlets and the Get-WmiObject cmdlet, which returns information from Windows Management Instrumentation (WMI) classes inherent to the operating system.

Discovering Server Configuration

You can discover your server configuration with the built-in Windows Management Instrumentation (WMI) interface. WMI is installed by default on all server operating systems from Windows Server 2000 and newer. Although WMI has been preinstalled since Windows Server 2000, Microsoft adds new classes and extends current classes with every operating system release. An example of this is the MfrAssignedRevisionLevel property of the Win32_CDROMDrive class, which is not available in Windows Server 2003 or earlier.

Note

For a complete reference to the WMI classes, see http://msdn.microsoft.com/en-us/library/aa394554(v=VS.85).aspx. image

By now, you've seen multiple examples of using the Get-WmiObject cmdlet to gather data from various classes remotely and against the local computer. Rather than rehashing how to use the Get-WmiObject cmdlet, you learn how to discover which ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required