70-410: Installing and Configuring Windows Server 2012 ... · 70-410: Installing and Configuring...

20
70-410: Installing and Configuring Windows Server 2012 Course 03 - Working with Server Core

Transcript of 70-410: Installing and Configuring Windows Server 2012 ... · 70-410: Installing and Configuring...

70-410: Installing and Configuring

Windows Server 2012

Course 03 - Working with Server Core

Slide 1

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 2

Powershell Installation:o Import-Module ServerManager

o Install-WindowsFeature –IncludeAllSubFeature User-Interfaces-Infra –Source c:\install

Sconfig.cmd

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

Slide 3

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 4

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 5

•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 6

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 7

Get-WindowsFeature | where-object {$.InstallState –eq “Removed”}

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

Slide 8

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 9

Sconfig.cmd configures and manages core

Must be member of Administrators group

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

Slide 10

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 11

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 12

Cmdlet

New-ADUser

Set-ADUser

Remove-ADUser

Set-ADAccountPassword

Set-ADAcountExpiration

Unlock-ADAccount

Enable-ADAccount

Disable-ADAccount

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

Slide 13

cmdlet

New-ADGroup

Set-ADGroup

Get-ADGroup

Remove-ADGroup

Add-ADGroupMember

Get-ADGroupMember

Remove-ADGroupMember

Add-ADPrincipalGroupMembership

Remove-ADPrincipalGroupMembership

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

Slide 14

cmdlet

New-ADComputer

Set-ADComputer

Get-ADComputer

Remove-ADComputer

Test-ComputerSecureChannel

Reset-ComputerMachinePassword

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

_____________________________________________________________________________________

Slide 15

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?

A. Cmd.exe

B. Sconfig.exe

C. PowerShell

D. Java

E. All of the above

F. A and B Only

G. C and D Only

H. A, B and C

I. A, C and D

J. None of the above

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?

A. Regedt32.exe

B. Taskmgr.exe

C. Notepad.exe

D. Wordpad.exe

E. A and B Only

F. A, B and C

G. B, C and D

H. None of the above

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?

A. AD DS

B. WDS

C. NPAS

D. AD FS

E. All of the above

F. A, B and C

G. B, C and D

H. None of the above

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. H 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. F 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. G 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.