If I??™d used only $Get-Date, I would simply define
a variable called Get-Date rather than call the Get-Date cmdlet.
CHAPTER SUMMARY
This chapter covered the basics of loading Windows PowerShell onto your Windows
Server 2008 server and familiarizing yourself with its command-prompt??“like interface.
It discussed many of the basic elements needed to use Windows PowerShell, such as
defining variables, creating conditional statements, and using loops for repetitive tasks.
Finally, you saw firsthand how you can use PowerShell to perform useful tasks that
are important to Windows administrators. Needless to say, Windows PowerShell??™s uses
are nearly endless due to its ability to be extended by making .NET-enabled interfaces
available on your server. In fact, the trend at Microsoft is to make all its major Enterprisebased
software manageable through Windows PowerShell. We have seen this already
with Systems Center Operations Manager 2007 and Exchange 2007.
Hopefully, this chapter has encouraged you to seek out more information about this
amazing new shell. In fact, while you??™re at it, pick up a book or two on PowerShell. One
of best things about Windows PowerShell is that it runs not only in Windows Server
2008 but also in Windows XP SP2, Windows Server 2003, and Windows Vista, so you
can reuse this knowledge in managing all your other Windows operating systems. Even
if you don??™t like writing scripts, but like to manage tasks manually, it??™s clear to see that
Windows PowerShell does give administrators a leg up when trying to get more done
in less time.
Pages:
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492