Professional Documents
Culture Documents
Automating
Windows Server 2008
Administration
Module Overview
After completing this module, you will be able to:
List the modules included with Windows Server 2008 R2
command-line
Server 2008 R2
Modules Overview
Windows Server 2008 R2s modules are installed in the
Included Modules
The following modules and snap-ins are included with
their contents.
Add-PSSnapin windows.serverbackup
Get-Command pssnapin windows.serverbackup
IIS Cmdlets
You will complete a lab where you use the module in practice
The goal is for you to use the techniques here to identify the
module, load it, list its cmdlets, and read help
Get-WindowsFeature
Add-WindowsFeature
Remove-WindowsFeature
Import-Module servermanager
Logon information
Virtual machine
LON-DC1
LON-SVR1
Contoso\Administrator
Contoso\Administrator
Password
Pa$$w0rd
Pa$$w0rd
Lab Scenario
You work as a systems administrator, focusing on servers.
You are configuring a new Windows Server 2008 R2 file
Lab Review
What module do you need to import to manage server
features?
pipeline?
Backup-GPO
Copy-GPO
Get-GPInheritance
Get-GPO
Get-GPOReport
Get-GPPermissions
Get-GPPrefRegistryValue
Get-GPRegistryValue
Get-GPResultantSetOfPolicy
Get-GPStarterGPO
Import-GPO
New-GPLink
New-GPO
New-GPStarterGPO
Remove-GPLink
Remove-GPO
Remove-GPPrefRegistryValue
Remove-GPRegistryValue
Rename-GPO
Restore-GPO
Set-GPInheritance
Set-GPLink
Set-GPPermissions
Set-GPPrefRegistryValue
Set-GPRegistryValue
Domain
Logon information
Virtual machine
LON-DC1
LON-SVR1
Contoso\Administrator
Contoso\Administrator
Password
Pa$$w0rd
Pa$$w0rd
Lab Scenario
You are a Windows administrator responsible for managing
Your manager has asked for report of all your Group Policy
Objects
You manager also wants to make sure that all Group Policy
Lab Review
What module do you need to import to manage Group
Policy?
Get-TroubleshootingPack
Invoke-TroubleshootingPack
Get-TroubleshootingPack
C:\windows\diagnostics\systems\aero
Many Troubleshooting Packs are interactive at the shell,
Logon information
Virtual machine
LON-DC1
LON-SVR1
Password
Pa$$w0rd
Pa$$w0rd
LON-CLI1
Pa$$w0rd
Lab Scenario
You work as a systems technician, troubleshooting
Lab Review
What cmdlet do you use to load the Troubleshooting Pack?
What are the cmdlets in the Troubleshooting Pack?
cmdlets
BPA Cmdlets
The Best Practice Analyzer module includes four cmdlets:
Get-BpaModel
Get-BpaResult
Invoke-BpaModel
Set-BpaResult
Get-BpaModel | Invoke-BpaModel
Logon information
Virtual machine
LON-DC1
Contoso\Administrator
Password
Pa$$w0rd
Lab Scenario
You work as a systems administrator, and you are
Lab Review
What module do you need to import to run Best Practices
scans?
What are some of the items that you can view in a scan
result?
IIS Cmdlets
The IIS module includes 74 cmdlets, which are intended to
Import-Module Webadministration
PS IIS:\> cd apppools
PS IIS:\apppools> ls
Name
---Classic .NET AppPool
DefaultAppPool
State
----Started
Started
Applications
-----------Default Web Site
Logon information
Virtual machine
LON-DC1
Contoso\Administrator
Password
Pa$$w0rd
Lab Scenario
You are a Windows Administrator tasked with managing a
Lab Review
What module do you need to import to manage IIS?
What cmdlet do you use to create a new web site?