Upload
vannhi
View
236
Download
3
Embed Size (px)
Citation preview
70-410: Installing and Configuring
Windows Server 2012
Module 03 - Working with Server Core
Slide 1
Definition, Administration and PowerShell
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 2
Verb-Noun syntax
Arguments start with –
Optional arguments appear in square brackets
Not Case sensitive
PowerShell is base for management of server based apps, but can have different variations, ie: Exchange
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 3
Powershell Installation:o Import-Module ServerManager
o Install-WindowsFeature –IncludeAllSubFeature User-Interfaces-Infra –Source c:\install
Sconfig.cmd
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 4
GUI is a feature, so you can turn on and off
Steps:o Launch Server Manager
o Click Manage
o Select Remove Roles or Features
o Skip by Roles section
o Select User Interfaces and Infrastructure
o Select “Restart Destination Server” and click Remove
Use care when removing graphical
features, some other components installed may be dependent on those features
To convert to a Server Core Installation with PowerShell, you
may use:Uninstall-WindowsFeature Server-
Gui-Mgmt-Infra -Restart
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 5
Run Get-WindowsImage –image path <path to wim>\install.wimo Make note of the index of the image
Install-Windows Feature <feature name> -Source wim:<path>:<index>
Featurename is the name of the role or feature from Get-WindowsFeature
Path is the path to the WIM mount pointIndex is the index of the server image from Step 1.
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 6
•Common Command line tools (IP based tools)
cmd.Exe
•All PowerShell Tasks
PowerShell.exe
•Menu driven command line for Server Administration
Sconfig.cmd
•Text Editor
Notepad.exe
•Registry Editor
Regedt32.exe
•System Information Viewer
Msinfo32.exe
•Task Manager
Taskmgr.exe
Server Core can be managed remotely by using Graphical
Tools
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 7
o Active Directory Certificate Services
o Active Directory Domain Services
o DHCP Server
o DNS Server
o File Services (including File Server Resource Manager)
o Active Directory Lightweight Directory Services (AD LDS)
o Hyper-V
o Print and Document Services
o Streaming Media Services
o Web Server (including a subset of ASP.NET)
o Windows Server Update Server
o Active Directory Rights Management Server
o Routing and Remote Access Server and the following sub-roles:• Remote Desktop Services Connection Broker
• Licensing
• Virtualization
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 8
Get-WindowsFeature | where-object {$.InstallState –eq “Removed”}
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 9
Using Windows Interfaceo Server Manager - Look for properties of Local Servers. Find Remote
Management Property
o Clear or check “Enable Remote Management”
Windows PowerShell (Run as Administrator)o Configure-SMRemoting.exe –enable
Command Line (Run as Administrator)o Run: %windir%\system32\configure-SMRemoting.exe
• -disable
• -enable
• -get Ensure firewall ports are open:Netsh.exe firewall set service remoteadmin enable ALL
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 10
Sconfig.cmd configures and manages core
Must be member of Administrators group
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 11
Windows Deployment Services
Network Policy and Access Services (NPAS)
Active Directory Federation Server
Application Server
Applications that are dependant on Roles above will not run. IE: Exchange
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 12
In Server Manager, choose notification icon for Post Deployment Configuration
Create an answer file and run DCPromo /unattend: “D:\answerfile.txt”
Run DCPromo /unattend with necessary switcheso /InstallDns:yeso /Confirmglobal catalog:yeso /ReplicaOrNewDomain:replicao /Replicadomaindnsname: “NewDomainName.com”o /DatabasePath:”C:\ntds”o /LogPath: “C:\ntds”o /Sysvolpath: “C:\sysvol”o /SafeModeAdminPassword:P@sswordo /RebootOnCompletion:yes
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 13
Cmdlet
New-ADUser
Set-ADUser
Remove-ADUser
Set-ADAccountPassword
Set-ADAcountExpiration
Unlock-ADAccount
Enable-ADAccount
Disable-ADAccount
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 14
cmdlet
New-ADGroup
Set-ADGroup
Get-ADGroup
Remove-ADGroup
Add-ADGroupMember
Get-ADGroupMember
Remove-ADGroupMember
Add-ADPrincipalGroupMembership
Remove-ADPrincipalGroupMembership
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 15
cmdlet
New-ADComputer
Set-ADComputer
Get-ADComputer
Remove-ADComputer
Test-ComputerSecureChannel
Reset-ComputerMachinePassword
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Slide 16
Cmdlet
New-ADOrganizationalUnit
Set-ADOrganizationalUnit
Get-ADOrganizatonalUnit
Remove-ADOrganizationalUnit
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
Review Questions:
1. Which of the following is the correct syntax for PowerShell cmdlets?
a. Verb-Noun
b. Noun-Verb
c. Scope-Verb
d. Verb-Parameter
2. True or False: PowerShell cmdlets are case-sensitive.
a. True
b. False
3. Which of the following ways or prompts can be used to manage Server Core? (Choose all that
apply)
a. Cmd.exe
b. Sconfig.exe
c. PowerShell
d. Java
4. True or False: The GUI in PowerShell is actually just a feature that you can add or take away.
a. True
b. False
5. True or False: You can install a role or feature using WIM image.
a. True
b. False
6. Which of the following are valid Server Core tools? (Choose all that apply)
a. Regedt32.exe
b. Taskmgr.exe
c. Notepad.exe
d. Wordpad.exe
7. Which of the following would be the best utility for changing the computer name in Server
Core?
a. Regedt
b. ADSI Edit
c. Sconfig
d. Notepad
8. True or False: Remote Management is enabled by default on Server Core.
a. True
b. False
9. Which of the following roles or features are not available on Server Core? (Choose all that apply)
a. AD DS
b. WDS
c. NPAS
d. AD FS
10. True or False: Sconfig.exe is where you start the AD DS wizard to install Active Directory.
a. True
b. False
Answer Key:
1. A Each cmdlet has a verb (Get, Set) and a noun to perform the action against (User, MailboxUser). When put together, this is what is being done to what object. IE: Get-User.
2. B False. PowerShell cmdlets are usually written or displayed using a mix of upper and lowercase, but are not case-sensitive.
3. A, B, C Cmd is the default prompt to start with. From there you can execute typical command-prompt commands or use it to start PowerShell or Sconfig.
4. A True. The GUI is a feature that you can add or remove.
5. A True. You can use the "Get-WindowsImage" command to get a list of the image index, then you can use the "Install-WindowsFeature" cmdlet to install the role or feature.
6. A, B, C All are valid, except for Wordpad, which is a GUI-based word processor.
7. C Sconfig allows you to change the computer name easily.
8. B False. You have to enable Remote Management.
9. B, C, D Windows Deployment Services, Network Policy Access Services, and Federation Server are not available.
10. B False. You use DC Promo to run the AD DS wizard.