Conquer system tuning, repair, and problem solving—from the inside out! You’re beyond the basics, so dive right into optimizing Windows —and really put your PC or tablet to work! This supremely organized reference packs hundreds of timesaving solutions, troubleshooting tips, and workarounds It’s all muscle and no fluff Discover how the experts keep their Windows systems running smoothly—and challenge yourself to new levels of mastery • Take control of Windows maintenance and security features • Apply best practices to prevent problems before they occur • Help combat viruses, malware, and identity theft with expert advice • • Extend the life of your hardware with clean-ups and repairs • Diagnose and repair more-complex problems with step-by-step Master quick fixes to the most common issues Inside OUT For Intermediate and Advanced Users About the Author Mike Halsey is a Microsoft MVP for Windows ExpertConsumer and the author of many Windows books including Troubleshooting Windows Inside Out He is also an editor for technology websites and has extensive experience providing IT support to both new and advanced computer users Windows Server 2012 Troubleshoot and Optimize Windows Inside OUT The ultimate, in-depth reference Hundreds of timesaving solutions Supremely organized, packed with expert advice Companion eBook guidance • Back up your system and data, and prepare a disaster recovery plan Inside OUT Stanek microsoft.com/mspress ISBN: 978-0-7356-7080-8 Windows Server 2012 ® U.S.A $49.99 Canada $51.99 [Recommended] Operating Systems/ WIndows William R Stanek Award-winning author and Windows administration expert PUBLISHED BY Microsoft Press A Division of Microsoft Corporation One Microsoft Way Redmond, Washington 98052-6399 Copyright © 2013 by William R Stanek All rights reserved No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher Library of Congress Control Number: 2012955900 ISBN: 978-0-7356-6631-3 Printed and bound in the United States of America First Printing Microsoft Press books are available through booksellers and distributors worldwide If you need support related to this book, email Microsoft Press Book Support at mspinput@microsoft.com Please tell us what you think of this book at http://www.microsoft.com/learning/booksurvey Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us/IntellectualProperty/ Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies All other marks are property of their respective owners The example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted herein are fictitious No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred This book expresses the author’s views and opinions The information contained in this book is provided without any express, statutory, or implied warranties Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book Acquisitions Editor: Anne Hamilton Developmental Editor: Karen Szall Project Editor: Karen Szall Editorial Production: Waypoint Press Technical Reviewer: Mitch Tulloch; Technical Review services provided by Content Master, a member of CM Group, Ltd Copyeditor: Roger LeBlanc Indexer: Christina Yeager Cover: Microsoft Press Brand Team To my readers—Windows Server 2012 Inside Out is my 40th book for Microsoft Press Thank you for being there with me through many books and many years To my wife—for many years, through many books, many millions of words, and many thousands of pages she's been there, providing support and encouragement and making every place we've lived a home To my kids—for helping me see the world in new ways, for having exceptional patience and boundless love, and for making every day an adventure To Anne, Karen, Martin, Lucinda, Juliana, and many others who’ve helped out in ways both large and small —William R Stanek Contents at a Glance Part 1: Windows Server 2012 Overview Part 3 Managing Windows Server 2012 Storage and File Systems Chapter Chapter 12 Chapter Chapter 13 Chapter Chapter 14 Introducing Windows Server 2012 Deploying Windows Server 2012 61 Boot configuration 101 Part 2: Managing Windows Server 2012 Systems Chapter Managing Windows Server 2012 137 Chapter Windows Server 2012 MMC administration 191 Storage management 479 TPM and BitLocker Drive Encryption 569 Managing file systems and storage 621 Chapter 15 File sharing and security 715 Chapter 16 Managing file screening and storage reporting 797 Chapter 17 Backup and recovery 821 Chapter Configuring roles, role services, and features 229 Part 4: Managing Windows Server 2012 Networking and Domain Services Chapter Chapter 18 Managing and troubleshooting hardware 263 Chapter Managing the registry 303 Chapter Software and User Account Control administration 349 Chapter 10 Performance monitoring and tuning 369 Chapter 11 Comprehensive performance analysis and logging 425 Networking with TCP/IP 875 Chapter 19 Managing TCP/IP networking 909 Chapter 20 Managing DHCP 941 Chapter 21 Architecting DNS infrastructure 1017 Chapter 22 Implementing and managing DNS 1047 Chapter 23 Implementing and maintaining WINS 1113 v vi Contents at a Glance Part 5: Managing Active Directory and Security Chapter 24 Active Directory architecture 1135 Chapter 25 Chapter 28 Implementing Active Directory Domain Services 1271 Chapter 29 Deploying read-only domain controllers 1315 Designing and managing the domain environment 1161 Chapter 30 Chapter 26 Chapter 31 Chapter 27 Chapter 32 Organizing Active Directory 1215 Configuring Active Directory sites and replication 1233 Managing users, groups, and computers 1345 Managing Group Policy 1387 Active Directory site administration 1443 Table of Contents Introduction xxvii Conventions xxviii How to reach the author xxix Errata & book support xxix We want to hear from you xxix Stay in touch xxix Part 1: Windows Server 2012 Overview Chapter 1: Introducing Windows Server 2012 Getting to know Windows Server 2012 Windows and Windows Server 2012 Planning for Windows Server 2012 10 Your plan: The big picture 10 Identifying your organizational teams 12 Assessing project goals 14 Analyzing the existing network 18 Defining objectives and scope 26 Defining the new network environment 31 Final considerations for planning and deployment 35 Thinking about server roles and Active Directory 36 Planning for server usage 37 Designing the Active Directory namespace 40 Managing domain trusts 41 Identifying the domain and forest functional level 41 Defining Active Directory server roles 43 What you think of this book? We want to hear from you! Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you To participate in a brief online survey, please visit: microsoft.com/learning/booksurvey vii viii Table of Contents Planning for availability, scalability, and manageability 45 Planning for software needs 45 Planning for hardware needs 47 Chapter 2: Deploying Windows Server 2012 61 Getting a quick start 61 Product licensing 63 Preparing for a Windows Server 2012 installation 64 Understanding installation options 64 Determining which installation type to use 66 Using Windows Update 67 Preinstallation tasks 69 Installing Windows Server 2012 70 Installation on BIOS-based systems 71 Installation on EFI-based systems 72 Planning partitions 72 Naming computers 74 Network and domain membership options 75 Performing a clean installation 77 Performing an upgrade installation 82 Activation sequence 82 Performing additional administration tasks during installations 85 Accessing a command prompt during installation 85 Forcing disk-partition removal during installation 89 Loading mass storage drivers during installation 89 Creating, deleting, and extending disk partitions during installation 90 Troubleshooting installation 91 Start with the potential points of failure 92 Continue past lockups and freezes 93 Postinstallation tasks 96 Chapter 3: Boot configuration 101 Boot from hardware and firmware Hardware and firmware power states Diagnosing hardware and firmware startup problems Resolving hardware and firmware startup problems Boot environment essentials Managing startup and boot configuration Managing startup and recovery options Managing System Boot Configuration Working with BCD Editor 101 102 103 107 109 111 111 113 117 Table of Contents Managing the Boot Configuration Data store and its entries Viewing BCD entries Creating and identifying the BCD data store Importing and exporting the BCD data store Creating, copying, and deleting BCD entries Setting BCD entry values Changing Data Execution Prevention and physical address extension options Changing the operating system display order Changing the default operating system entry Changing the default timeout Changing the boot sequence temporarily ix 119 119 122 123 123 125 131 132 133 133 134 Part 2: Managing Windows Server 2012 Systems Chapter 4: Managing Windows Server 2012 137 Working with the administration tools Using Control Panel utilities Using graphical administrative tools Using command-line utilities Working with Server Manager Getting to know Server Manager Adding servers for management Creating server groups Enabling remote management Working with Computer Management Computer Management system tools Computer Management storage tools Computer Management Services And Applications tools Using Control Panel Using the Folder Options utility Using the System console Customizing the desktop and the taskbar Configuring desktop items Configuring the taskbar Optimizing toolbars Displaying custom toolbars Creating personal toolbars Using Remote Desktop Remote Desktop essentials Configuring Remote Desktop Supporting Remote Desktop Connection clients Tracking who’s logged on 137 140 141 145 150 150 155 156 157 160 160 161 162 162 163 165 168 168 169 175 175 176 176 176 178 182 189 x Table of Contents Chapter 5: Windows Server 2012 MMC administration 191 Using the MMC MMC snap-ins MMC modes MMC window and startup MMC tool availability MMC and remote computers Building custom MMCs Step 1: Creating the console Step 2: Adding snap-ins to the console Step 3: Saving the finished console Designing custom taskpads for the MMC Getting started with taskpads Understanding taskpad view styles Creating and managing taskpads Creating and managing tasks Publishing and distributing your custom tools Chapter 6: Configuring roles, role services, and features 229 Using roles, role services, and features Making supplemental components available Installing components with Server Manager Viewing configured roles and role services Managing server roles and features Managing server binaries Installing components at the prompt Going to the prompt for Server Management Understanding component names Tracking installed roles, role services, and features Installing components at the prompt Removing components at the prompt Chapter 7: 191 192 194 196 198 201 203 203 205 210 215 215 216 218 221 227 230 236 237 237 238 245 250 250 251 256 257 260 Managing and troubleshooting hardware 263 Understanding hardware installation changes Choosing internal devices Choosing external devices Installing devices Understanding device installation Installing new devices Viewing device and driver details Working with device drivers Device driver essentials Understanding and troubleshooting driver signing 263 263 266 269 269 273 277 280 280 281 1538 write operations write operations caching, 520 disk writes counter, 454 performance, 680 torn writes, 649, 650, 654 WSH (Windows Script Host), 1422 WSRM (Windows System Resource Manager), 236 WSUS (Windows Server Update Services), 68–69, 143 for updates, 272 WSUS (Windows Server Update Services) role, 232 X XPS Viewer, 236 Z zip compression technology, 659–660 installing software from, 351–352 zones, DNS Active Directory–integrated zones See Active Directory– integrated zones aging/scavenging properties, 1097 authoritative servers, 1090 Canonical Name (CNAME) records, 1086–1087 configuration, 1028–1030, 1071 DNSSEC, signed with, 1078 file-backed zones, 1079 forest root zones, 1050 forward lookup zones See forward lookup zones GlobalNames zone, 1092–1093 Host Address (A and AAAA) records, 1083–1086 listing, 1110–1111 Mail Exchanger (MX) records, 1087–1088 master name servers, identifying, 1063 name, 1063 Pointer (PTR) records, 1083–1086 primary zones, 1061 removing, 1305 resource records, adding, 1082–1092 resource records, listing, 1111–1112 reverse lookup zones See reverse lookup zones secondary zones, 1050–1051, 1061 securing, 1079–1080 Service Location (SRV) records, 1091–1092 signing, 1079–1082 Start of Authority (SOA) records, 1090 stub zones, 1050–1051, 1061 subdomains in, 1071–1074 WINS name resolution, configuring, 1132 zone delegation, 1293 zone transfer notification, configuring, 1076–1077 zone transfers, configuring, 1074–1076 Zone Signing Wizard, 1080–1082 About the author William R Stanek (http://www.williamrstanek.com/) has more than 20 years of hands-on experience with advanced p rogramming and development He is a leading technology expert, an award-winning author, and a pretty-darn-good instructional trainer Over the years, his practical advice has helped millions of programmers, developers, and network e ngineers all over the world His current and books include Windows Administration Pocket Consultant, Windows Server 2012 Pocket Consultant, and SQL Server 2012 Pocket Consultant William has been involved in the commercial Internet community since 1991 His core b usiness and technology experience comes from more than 11 years of military service He has substantial experience in developing server technology, encryption, and Internet s olutions He has written many technical white papers and training courses on a wide v ariety of topics He frequently serves as a subject matter expert and consultant William has an MS with distinction in information systems and a BS in computer science, magna cum laude He is proud to have served in the Persian Gulf War as a combat c rewmember on an electronic warfare aircraft He flew on numerous combat missions into Iraq and was awarded nine medals for his wartime service, including one of the United States of America’s highest-flying honors, the Air Force Distinguished Flying Cross C urrently, he resides in the Pacific Northwest with his wife and children William recently rediscovered his love of the great outdoors When he’s not writing, he can be found hiking, biking, backpacking, traveling, or trekking in search of adventure with his family! Find William on Twitter at WilliamStanek and on Facebook at www.facebook.com/William.Stanek.Author What you think of this book? We want to hear from you! To participate in a brief online survey, please visit: microsoft.com/learning/booksurvey Tell us how well this book meets your needs what works effectively, and what we can — better Your feedback will help us continually improve our books and learning resources for you Thank you in advance for your input! SurvPage_Corp_02.indd 5/19/2011 4:18:12 PM ... the same way on both Windows and Windows Server 2012 Chapter 10 Chapter 1 Introducing Windows Server 2012 Chapter Planning for Windows Server 2012 Deploying Windows Server 2012 is a substantial... Introducing Windows Server 2012 Chapter You can adopt Windows Server 2012 incrementally as well For example, you might add Windows Server 2012 Print And Document Services and Windows Server 2012 File... the number of servers, and reduce the Total Cost of Ownership (TCO) 8 Chapter 1 Introducing Windows Server 2012 Chapter Windows and Windows Server 2012 Like Windows Server 2012, Windows has several