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 9

Performing Advanced Server Management

IN THIS CHAPTER

Managing Windows services

Managing processes

Reading and modifying the registry

Modifying network settings

Retrieving performance counters

Setting regional settings

Maintaining local accounts

Configuring remote DCOM

This chapter covers a lot of ground because advanced server management is a complex subject. Microsoft has provided a hodgepodge of cmdlets in Windows PowerShell that can help with the various server management tasks. However, quite a few of these cmdlets are not designed to work against remote computers. In multiple cases, cmdlets within the same functional area will have different behaviors. For instance, the Set-Service cmdlet accepts a ComputerName parameter, whereas the rest of the *-Service cmdlets that modify services do not.

This chapter covers two options for managing remote servers. You can use remoting cmdlets such as the Invoke-Command cmdlet, or you can use WMI with a combination of methods. This chapter focuses on using WMI when a cmdlet does not accept the ComputerName parameter.

Managing Command-Line Services

You manage services with the Get-Service, Stop-Service, Start-Service, Suspend-Service, Resume-Service, Restart-Service, and Set-Service cmdlets. Of these, the Get-Service and Set-Service cmdlets accept the ComputerName parameter. The remaining cmdlets require the remote server to be configured for remoting. As an alternative to remoting, you can manage services with the Get-WmiObject ...

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