Manage Server 2012 Like An Evil Overlord

Download Report

Transcript Manage Server 2012 Like An Evil Overlord

Manage Server 2012 Like a
Pro… Or, Better, Like an Evil
Overlord!
1
Let's Be Clear About a Few Things
After Realizing This…
3
What? You Don't Believe Me?
4
So…
The Perspective
6
Setup Changes
7
Installing Server without DVDs
8
Create the USB Stick
o
o
o
o
o
o
o
o
o
Diskpart
List disks
See which one is the USB stick "disk"
Select disk disknumber
clean
create partition primary
active
assign
format fs=ntfs quick label="2012 Install"
9
Copy the Install Files to the USB Stick
o robocopy d:\ f:\ * /s /mt:10
10
Make Your Life Easier with WSIM
11
My Simple XML Automates…
12
Bottom Line on Setup…
"I will be neither chivalrous nor sporting. If I have
an unstoppable superweapon, I will use it as
early and as often as possible instead of keeping
it in reserve."
13
Remote Admin is the Default
14
The Four New GUIs
15
Four Interfaces
16
17
Overlord Ideas in Action
18
Navigating Server Manager
19
Getting to Other Apps/Tools
20
21
Start Screen Overview
22
Meet the "Charms," All 3+2 Of 'Em
23
24
25
The Dashboard: Events
26
Getting a Command Prompt
27
28
Shutting Down/Restarting
o stop-computer
o restart-computer
29
Useful Keystrokes ([w]=Windows key)
30
Remote Admin Tools
31
Overlord Ideas in Action
32
Starting PowerShell
33
PowerShell 101
34
The Four Big PoSH Verbs
35
Getting PowerShell Help
o help new-vm
o help *-vm*
o help *-ad*
o help vmfailover
o help remote
36
A PoSH Example: Picking a GUI
37
Setting the GUI's Level
To get this UI:
Which includes
in installwindowsfeature
in Wizard
Server Core
Cmd prompt,
PowerShell, some GUI
tools, no Internet
Explorer
none… use uninstallwindowsfeature
server-gui-mgmtinfra
Uncheck
"User
Interfaces and
Infrastructure"
Minimal
Server Manager, MMCs,
no IE
server-gui-mgmtinfra
Graphical
Management
Tools and
Infrastructure
Full GUI
Server with GUI, IE, runs
any 2008 R2 apps but
no Media Player, WinRT
apps
server-gui-shell
Server
Graphical
Shell
Full Metro
Full Windows 8 user
interface, Store, Media
Player
desktop-experience
Desktop
Experience
38
Four Interfaces
39
Examples
40
More on install-windowsfeature
o get-windowsfeature *dhcp*
41
More on install-windowsfeature
42
Install-WindowsFeature Power Tools
o get-windowsfeature *iscsi* | install-
windowsfeature
o get-windowsfeature *iscsi*|install-
windowsfeature -includea -includem
o invoke-command –computername
dc1,dc2,member1 –scriptblock {getwindowsfeature *iscsi* | installwindowsfeature}
43
Reference: Expand on the Example
o invoke-command –computername (cat
pcs.txt) –scriptblock {get-windowsfeature
*iscsi* | install-windowsfeature}
44
PowerShell 102
45
46
47
48
PowerShell 103
o rename-vm –name "oldname" –newname "new
o rename-vm –na "oldname" –ne "new"
49
PowerShell 103
o
o
o
o
gal –def "import-module"
Or make your own with sal, "set-alias"
sal newalias existingcommand
sal rvm remove-vm
50
PowerShell Help Quirk
o update-help
o save-help \\sv1\helpfiles
o update-help –sourcepath \\sv1\helpfiles
51
A Few Tips on Server Setup
o rename-computer –newname DC1 –restart
o Or to join a domain,
o add-computer –computername DC1
-domainname bigfirm.com –newname NYDC
52
Finally, a Few More Evil Overlord Tips
53
Thanks!
54