Pearson Windows Server 2008 Portable Command Guide.pdf

(12059 KB) Pobierz
675183293 UNPDF
675183293.001.png
Windows Server 2008 Portable
Command Guide: MCTS 70-640, 70-642,
70-643, and MCITP 70-646, 70-647
Darril Gibson
Pearson Education
800 East 96th Street
Indianapolis, Indiana
46240
USA
Windows Server 2008 Portable Command Guide:
MCTS 70-640, 70-642, 70-643, and MCITP 70-646,
70-647
Copyright © 2011 by Pearson Education, Inc.
All rights reserved. No part of this book shall be reproduced, stored in a re-
trieval system, or transmitted by any means, electronic, mechanical, photocopy-
ing, recording, or otherwise, without written permission from the publisher. No
patent liability is assumed with respect to the use of the information contained
herein. Although every precaution has been taken in the preparation of this
book, the publisher and author assume no responsibility for errors or omissions.
Nor is any liability assumed for damages resulting from the use of the informa-
tion contained herein.
ISBN-13: 978-0-7897-4737-2
ISBN-10: 0-7897-4737-5
Library of Congress Cataloging-in-Publication data is on le.
Printed in the United States of America
First Printing: May 2011
Trademarks
All terms mentioned in this book that are known to be trademarks or service
marks have been appropriately capitalized. Pearson IT Certi cation cannot at-
test to the accuracy of this information. Use of a term in this book should not be
regarded as affecting the validity of any trademark or service mark.
Warning and Disclaimer
Every effort has been made to make this book as complete and as accurate as
possible, but no warranty or tness is implied. The information provided is on
an “as is” basis. The author and the publisher shall have neither liability nor
responsibility to any person or entity with respect to any loss or damages aris-
ing from the information contained in this book.
Bulk Sales
Pearson IT Certi cation offers excellent discounts on this book when ordered
in quantity for bulk purchases or special sales. For more information, please
contact
U.S. Corporate and Government Sales
1-800-382-3419
corpsales@pearsontechgroup.com
For sales outside the United States, please contact
International Sales
international@pearson.com
Associate Publisher
Dave Dusthimer
Acquisitions Editor
Betsy Brown
Development Editor
Jeff Riley
Series Editor
Scott Empson
Managing Editor
Sandra Schroeder
Senior Project Editor
Tonya Simpson
Copy Editor
Deadline Driven
Publishing
Proofreader
Leslie Joseph
Technical Editor
David Camardella
Publishing Coordinator
Vanessa Evans
Book Designer
Gary Adair
Composition
Bronkella Publishing
iii
Contents at a Glance
Introduction xvii
PART I: Command Prompt Basics
CHAPTER 1 Launching and Using the Command Prompt 1
CHAPTER 2 Basic Rules When Using the Command Prompt 9
CHAPTER 3 Manipulating Files, Folders, and Shares 21
CHAPTER 4 Creating Batch Files 37
Part II: Managing and Troubleshooting DNS
CHAPTER 5 Using dnscmd 47
CHAPTER 6 Using nslookup 55
Part III: Managing and Troubleshooting Active Directory
CHAPTER 7 Using Basic ds Commands 63
CHAPTER 8 Using Advanced ds Commands 71
CHAPTER 9 Promoting and Demoting a Domain Controller (DC) 77
CHAPTER 10 Working with the Schema 87
CHAPTER 11 Working with Active Directory Accounts 91
CHAPTER 12 Using ntdsutil 101
CHAPTER 13 Using netdom 111
CHAPTER 14 Troubleshooting Replication 119
Part IV: Group Policy and the Command Line
CHAPTER 15 Group Policy Overview 127
CHAPTER 16 Group Policy Command-Line Tools 143
CHAPTER 17 Security Con guration Wizard 149
Part V: Con guring Server Core
CHAPTER 18 Con guring Server Core after Installation 155
CHAPTER 19 Adding Roles to Server Core 163
CHAPTER 20 Con guring Server Core for Remote Administration 171
iv
Part VI: Managing and Maintaining Windows Server 2008 and Windows
Server 2008 R2
CHAPTER 21 Manipulating Services 177
CHAPTER 22 Basic Routing on a Server 187
CHAPTER 23 Working with Printers 193
CHAPTER 24 Licensing and Activation 201
CHAPTER 25 Using netsh 209
CHAPTER 26 Working with Event Subscriptions 219
CHAPTER 27 Using wbadmin 231
Part VII: Troubleshooting Windows Server 2008 and Windows
Server 2008 R2
CHAPTER 28 Troubleshooting Networking Issues 241
CHAPTER 29 Using the Reliability and Performance Monitor 253
CHAPTER 30 Using Network Monitor and nmcap 261
Part VIII: Terminal Services and Remote Desktop Services
CHAPTER 31 Remote Desktop Services 269
CHAPTER 32 Remote Administration 277
Part IX: Working with Some Server Roles from the Command Line
CHAPTER 33 Using Windows Deployment Services 283
CHAPTER 34 Manipulating IIS with appcmd 293
Part X: Using Visual Basic Scripts (VB Script)
CHAPTER 35 Creating Basic Visual Basic Scripts 297
CHAPTER 36 Manipulating Active Directory with Visual Basic Scripts 305
Part XI: Using PowerShell
CHAPTER 37 Starting and Using PowerShell 311
CHAPTER 38 Creating and Running a PowerShell Script 331
CHAPTER 39 Using the Integrated Scripting Environment 347
CHAPTER 40 Using PowerShell to Manage Active Directory 357
APPENDIX Create Your Own Journal Here 365
Zgłoś jeśli naruszono regulamin