Home > Store

Windows 7 Portable Command Guide: MCTS 70-680, 70-685 and 70-686

Register your product to gain access to bonus material or receive a coupon.

Windows 7 Portable Command Guide: MCTS 70-680, 70-685 and 70-686

Book

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2011
  • Dimensions: 6" x 9"
  • Pages: 368
  • Edition: 1st
  • Book
  • ISBN-10: 0-7897-4735-9
  • ISBN-13: 978-0-7897-4735-8

Windows® 7 Portable Command Guide

MCTS 70-680, and MCITP 70-685 and 70-686

Darril Gibson

All the MCTS 70-680, and MCITP 70-685 and 70-686 Commands in One Compact, Portable Resource

Maximize your efficiency as a Windows 7 administrator, and master all the commands, keywords, command arguments, options, and prompts covered on Microsoft’s MCTS 70-680, MCITP 70-685, and MCITP 70-686 exams! This easy, handy reference brings together all the techniques, tips, tools, and examples you’ll need. It’s your perfect take-anywhere guide to running Windows 7 environments–and passing Microsoft’s three key Windows 7 administration exams.

Covers all the commands you need to score higher on your MCTS 70-680 and MCITP 70-685/70-686 exams!

  • Use Windows 7’s maintenance and monitoring tools
  • Troubleshoot Windows 7 reliability and network connectivity
  • Manage security in Windows 7
  • Manipulate files, folders, and disks
  • Create and schedule batch files
  • Configure Windows 7 with netsh
  • Recover damaged Windows 7 systems
  • Administer Windows 7 remotely
  • Work from the WMI command line
  • Plan, create, and manage images for automated installation
  • Use Imagex and DISM
  • Work with WinPE and Setup
  • Migrate user data to Windows 7 systems with USMT
  • Master PowerShell and the Integrated Scripting Environment (ISE)
  • Manage group policy from the command line

Your Perfect Take-Anywhere Windows 7 Command Resource!

  • Covers all commands on the MCTS 70-680, MCITP 70-685, and MCITP 70-686 exams
  • Includes important administration commands that aren’t on the exams
  • Packed with realistic scenarios, high-efficiency examples, and expert tips

Category: Microsoft Certification

Covers: Microsoft Windows 7 Exams (MCTS 70-680, and MCITP 70-685 and 70-686)

pearsonITcertification.com

Sample Content

Online Sample Chapter

Windows 7 Portable Command Guide: Understanding the Windows Management Instrumentation Command Line

Sample Pages

Download the sample pages (includes Chapter 16)

Table of Contents

Introduction

Part I: Command Prompt Basics

Chapter 1 Launching and Using the Command Prompt 3

Launching the Command Prompt 3

Pinning the Command Prompt to the Start Menu and the Taskbar 4

Launching the Command Prompt with Elevated Privileges 4

Responding to the UAC Prompt 5

Using the Built-in Doskey Program 7

Creating Mini Macros in Doskey 9

    Copying from and Pasting into the Command Prompt 9

    Copy from the Command Prompt Window 10

Paste Text into the Command Prompt Window 10

Changing the Options and Display of the Command Prompt 11

Chapter 2 Basic Rules When Using the Command Prompt 15

Using Uppercase or Lowercase 15

Using Quotes to Enclose Spaces 16

Understanding Variables 17

Understanding Switches 18

Understanding Wildcards 18

Getting Help 19

Chapter 3 Using Basic Commands 27

Understanding Folders and Directories 27

Understanding Paths 28

Viewing Files and Folders with dir 30

Changing the Path with cd 31

Using Drag and Drop to the Command Prompt Window 32

Deleting Folders with rd 33

Creating Folders with md 33

Controlling Output with more 34

Redirecting Output 35

    Using the Redirect Symbol (>) 35

    Using clip 35

Using exit 35

Part II: Working with Files, Folders, and Disks

Chapter 4 Manipulating Files and Folders 37

Associating File Extensions with assoc and ftype 37

    assoc 39

    ftype 39

Viewing Attributes with attrib 41

Compressing Files with compact 43

Encrypting Files with cipher 44

Copying Files with copy, xcopy, and robocopy 46

    copy 46

    xcopy 47

    robocopy 48

Deleting or Removing Files with del50

Expanding Cabinet Files with expand 51

Taking Ownership of Files with takeown 51

Removing the Windows.old Folder 52

Mapping Drives with net use 53

Chapter 5 Manipulating Disks 55

Manipulating and Viewing Disks with diskpart 55

    Creating a VHD File with diskpart 56

    Modifying the BCD Store for the VHD File 57

Defragmenting Volumes with defrag 59

Converting to NTFS with convert 61

Managing the File System with fsutil 62

Part III: Scripting with Batch Files

Chapter 6 Creating Batch Files 63

Using Notepad 63

Giving Feedback with echo 64

Using Parameters 65

Calling Another Batch File with call 68

Clearing the Screen with cls 69

Changing the Order of Processing with goto 69

Checking Conditions with if 70

Logging Events with eventcreate 73

Looping Through Tasks with for 75

Creating a Menu File 76

    Documenting the Script with rem 76

    Pausing for the User 77

    Giving Users a Choice 77

    Creating the Batch File 78

Chapter 7 Scheduling Batch Files 81

Scheduling Batch Files with Task Scheduler 81

Scheduling Tasks from the Command Line 82

    Creating a Scheduled Task with schtasks 83

    Creating a Scheduled Task from an XML File with schtasks 83

    Deleting a Scheduled Task with schtasks 85

    Viewing Scheduled Tasks with schtasks 85

    Changing Scheduled Tasks with schtasks 86

    Running and Ending Scheduled Tasks with schtasks 87

Part IV: Managing and Maintaining Windows 7

Chapter 8 Using Windows 7 Maintenance Tools 89

Controlling Power Settings with powercfg 89

    Query the Power Settings with powercfg 89

    Modify the Power Settings with powercfg 91

    Analyze the Power Settings with powercfg 93

Checking Memory with mdsched 93

Manipulating Services with sc 95

Collecting Events with wecutil 97

Restarting Systems with shutdown 97

Launching Control Panel Applets from the Command Line 99

Chapter 9 Retrieving Information About Windows 7 103

Viewing System Information with systeminfo 103

Viewing User Information with whoami 106

Launching System Configuration with msconfig 107

Chapter 10 Managing Security in Windows 7 111

Manipulating Credentials with cmdkey 111

Installing Updates with wusa 112

Installing Applications with msiexec 115

Auditing Systems with mbsacli 116

Chapter 11 Configuring Windows 7 with netsh 121

Understanding netsh 121

Understanding Contexts 122

Configuring a Proxy Server 126

Configuring the Network Interface with netsh 126

Part V: Troubleshooting Windows 7

Chapter 12 Configuring Windows 7 Using Basic Troubleshooting Tools 135

Identifying the System Name with hostname 135

Verifying Core System Files with sfc 135

Checking Digital Signatures with sigverif 137

Viewing Active Tasks with tasklist 138

Terminating Processes with taskkill 142

Viewing Installed Drivers with driverquery 144

Chapter 13 Troubleshooting Network Issues 145

Viewing and Manipulating TCP/IP Configuration with ipconfig 145

Viewing the Physical Address with getmac 151

Checking Connectivity with ping 152

Viewing the Router Path with tracert 155

Checking for Data Loss with pathping 155

Checking for Records in DNS with nslookup 156

Chapter 14 Using Recovery Tools 161

Manipulating the Boot Process with bcdedit 161

    Commands That Operate on a Store 165

    Commands That Control Output 166

    Commands That Control the Boot Manager 167

    Commands That Operate on Entries in the Store 169

    Commands That Operate on Entry Options 170

    Disable Driver Signing 170

Creating a System Repair Disc with recdisc 171

Checking and Repairing Disks with chkdsk 172

Repairing BitLocker Drives with repair-bde 175

Part VI: Remote Administration

Chapter 15 Managing Remote Windows 7 Systems 177

Configuring Windows 7 for Remote Administration 177

Configuring System for Remote Desktop Connection (RDC) 177

    Configuring System for Remote Access Using an MMC 180

    Connecting to Remote Systems with mstsc 181

Configuring Windows Remote Management with winrm 184

Executing Commands Remotely with winrs 185

Chapter 16 Windows Management Instrumentation Command Line 187

Understanding wmic 187

Configuring the Firewall to Allow wmic 188

Running wmic 189

Modifying the Format with the /format Switch 191

Retrieving Help from wmic 194

Understanding Aliases 194

    Operating System Aliases 196

    Disk Drive Aliases 197

    System Hardware Aliases 198

    User, Group, and Domain Aliases 200

Using Verbs 200

Part VII: Creating and Managing Images

Chapter 17 Understanding Images 203

Understanding WIM Files 203

Using Windows Deployment Services and Images 205

Comparing Boot and Install Images 207

Comparing Thick and Thin Images 213

Chapter 18 Preparing a System to Be Imaged with Sysprep 215

Understanding Sysprep 215

Running the Sysprep GUI 216

Running sysprep from the Command Line 217

Chapter 19 Installing the Windows Automated Installation Kit 221

Downloading the WAIK 221

Installing the WAIK 221

Viewing the WAIK Tools 224

Chapter 20 Using imagex 227

Creating WinPE on a Bootable USB 227

Capturing Images with imagex 231

Appending Images with imagex 233

Deleting Images with imagex 235

Deploying Images with imagex 235

Chapter 21 Using the Deployment Image Service and Management (DISM) Tool 237

Online Servicing Versus Offline Servicing 237

Mounting Images 238

Getting Information About Mounted Images 240

Modifying Images 240

    Working with Drivers 241

    Working with Packages and Features 242

    Miscellaneous Image Modifications 244

Saving Images 245

Part VIII: Working with WinPE and Setup

Chapter 22 WinPE Commands 247

Add Drivers to WinPE with drvload 247

Run Commands Within WinPE with wpeutil 248

Chapter 23 Installing Windows 7 with setup 251

Installing Windows 7 with setup 251

Using the Autounattend.xml File 252

Using slmgr 253

    Basic slmgr Commands 254

    slmgr Activation Commands 255

    slmgr Commands Used for KMS Clients 256

    slmgr Commands Used for Token-Based Activation 257

Part IX: Migrating User Data with USMT

Chapter 24 Capturing User Data with scanstate 259

Understanding Migration Stores 259

Reviewing Migration Paths 259

Understanding Hard-Link Migration Stores 263

Capturing Migration Data with scanstate 265

    Specifying XML Files 266

    Modifying XML Files 266

    Identifying Users to Migrate with scanstate 268

    Encrypting the Migration Store with scanstate 269

    Simple Error Handling with scanstate 270

    Handling EFS Files 270

    Migrating Data from the Windows.old Folder 271

Chapter 25 Restoring User Data with loadstate 273

Running loadstate 273

Specifying XML Files 274

Specifying Hard-Link Options 275

Deleting the Hard-Link Store 275

Identifying Users to Migrate 276

Decrypting an Encrypted Migration Store 277

Handling Errors 278

Part X: Using PowerShell

Chapter 26 Understanding PowerShell Commands 279

Launching PowerShell 279

Understanding PowerShell Verbs and Nouns 280

Tabbing Through PowerShell Commands 284

Understanding the Different Types of PowerShell Commands 285

Creating Aliases 286

Discovering Windows PowerShell Commands 286

Exploring get-member 288

Redirecting Output with Windows PowerShell 291

Understanding PowerShell Errors 291

Understanding PowerShell Variables 293

Using Comparison Operators 295

Understanding Pipelining 296

Chapter 27 Using the Integrated Scripting Environment (ISE) 299

Launching the ISE 299

Exploring the ISE 300

Executing Commands in the ISE 302

Creating and Saving a Script in the ISE 303

Chapter 28 Creating and Running PowerShell Scripts 309

Setting the Security Context 309

Creating a PowerShell Profile 310

Creating and Modifying the Global PowerShell Profile 312

Running PowerShell Scripts 313

Flushing the DNS Cache 314

Creating a List of Domain Computers 315

Logging Processes with a get-process Script 316

Testing for the Existence of a File 318

Creating Output as HTML 318

Running a Script Against Multiple Computers 320

Creating a PowerShell Message Box 322

Scheduling PowerShell Scripts 326

Part XI: Group Policy and the Command Line

Chapter 29 Group Policy Overview 329

Understanding Group Policy Settings 329

Blocking Inheritance 333

Enforcing GPOs 334

Using Loopback Processing 335

Running Scripts with Group Policy 336

Running PowerShell Scripts via Group Policy 339

Chapter 30 Group Policy Command-Line Tools 341

Viewing Group Policy Settings with gpresult 341

Refreshing Group Policy Settings with gpupdate 343

Appendix A Create Your Own Journal Here 347

9780789747358   TOC   3/16/2011

Updates

Submit Errata

More Information

Pearson IT Certification Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from Pearson IT Certification and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about Pearson IT Certification products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites; develop new products and services; conduct educational research; and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by Adobe Press. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.pearsonitcertification.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020