Introduction |
|
1 | (2) |
|
PART I Command Prompt Basics |
|
|
|
Chapter 1 Launching and Using the Command Prompt |
|
|
3 | (12) |
|
Launching the Command Prompt |
|
|
3 | (1) |
|
Pinning the Command Prompt to the Start Menu and the Taskbar |
|
|
4 | (1) |
|
Launching the Command Prompt with Elevated Privileges |
|
|
4 | (1) |
|
Responding to the UAC Prompt |
|
|
5 | (2) |
|
Using the Built-in Doskey Program |
|
|
7 | (2) |
|
Creating Mini Macros in Doskey |
|
|
9 | (1) |
|
Copying from and Pasting into the Command Prompt |
|
|
9 | (2) |
|
Copy from the Command Prompt Window |
|
|
10 | (1) |
|
Paste Text into the Command Prompt Window |
|
|
10 | (1) |
|
Changing the Options and Display of the Command Prompt |
|
|
11 | (4) |
|
Chapter 2 Basic Rules When Using the Command Prompt |
|
|
15 | (12) |
|
Using Uppercase or Lowercase |
|
|
15 | (1) |
|
Using Quotes to Enclose Spaces |
|
|
16 | (1) |
|
|
17 | (1) |
|
|
18 | (1) |
|
|
18 | (1) |
|
|
19 | (8) |
|
Chapter 3 Using Basic Commands |
|
|
27 | (10) |
|
Understanding Folders and Directories |
|
|
27 | (1) |
|
|
28 | (2) |
|
Viewing Files and Folders with dir |
|
|
30 | (1) |
|
Changing the Path with cd |
|
|
31 | (1) |
|
Using Drag and Drop to the Command Prompt Window |
|
|
32 | (1) |
|
|
33 | (1) |
|
|
33 | (1) |
|
Controlling Output with more |
|
|
34 | (1) |
|
|
35 | (1) |
|
Using the Redirect Symbol (>) |
|
|
35 | (1) |
|
|
35 | (1) |
|
|
35 | (2) |
|
PART II Working with Files, Folders, and Disks |
|
|
|
Chapter 4 Manipulating Files and Folders |
|
|
37 | (18) |
|
Associating File Extensions with assoc and ftype |
|
|
37 | (4) |
|
|
39 | (1) |
|
|
39 | (2) |
|
Viewing Attributes with attrib |
|
|
41 | (2) |
|
Compressing Files with compact |
|
|
43 | (1) |
|
Encrypting Files with cipher |
|
|
44 | (2) |
|
Copying Files with copy, xcopy, and robocopy |
|
|
46 | (4) |
|
|
46 | (1) |
|
|
47 | (1) |
|
|
48 | (2) |
|
Deleting or Removing Files with del |
|
|
50 | (1) |
|
Expanding Cabinet Files with expand |
|
|
51 | (1) |
|
Taking Ownership of Files with takeown |
|
|
51 | (1) |
|
Removing the Windows.old Folder |
|
|
52 | (1) |
|
Mapping Drives with net use |
|
|
53 | (2) |
|
Chapter 5 Manipulating Disks |
|
|
55 | (8) |
|
Manipulating and Viewing Disks with diskpart |
|
|
55 | (4) |
|
Creating a VHD File with diskpart |
|
|
56 | (1) |
|
Modifying the BCD Store for the VHD File |
|
|
57 | (2) |
|
Defragmenting Volumes with defrag |
|
|
59 | (2) |
|
Converting to NTFS with convert |
|
|
61 | (1) |
|
Managing the File System with fsutil |
|
|
62 | (1) |
|
PART III Scripting with Batch Files |
|
|
|
Chapter 6 Creating Batch Files |
|
|
63 | (18) |
|
|
63 | (1) |
|
Giving Feedback with echo |
|
|
64 | (1) |
|
|
65 | (3) |
|
Calling Another Batch File with call |
|
|
68 | (1) |
|
Clearing the Screen with cls |
|
|
69 | (1) |
|
Changing the Order of Processing with goto |
|
|
69 | (1) |
|
Checking Conditions with if |
|
|
70 | (3) |
|
Logging Events with eventcreate |
|
|
73 | (2) |
|
Looping Through Tasks with for |
|
|
75 | (1) |
|
|
76 | (5) |
|
Documenting the Script with rem |
|
|
76 | (1) |
|
|
77 | (1) |
|
|
77 | (1) |
|
|
78 | (3) |
|
Chapter 7 Scheduling Batch Files |
|
|
81 | (8) |
|
Scheduling Batch Files with Task Scheduler |
|
|
81 | (1) |
|
Scheduling Tasks from the Command Line |
|
|
82 | (7) |
|
Creating a Scheduled Task with schtasks |
|
|
83 | (1) |
|
Creating a Scheduled Task from an XML File with schtasks |
|
|
83 | (2) |
|
Deleting a Scheduled Task with schtasks |
|
|
85 | (1) |
|
Viewing Scheduled Tasks with schtasks |
|
|
85 | (1) |
|
Changing Scheduled Tasks with schtasks |
|
|
86 | (1) |
|
Running and Ending Scheduled Tasks with schtasks |
|
|
87 | (2) |
|
PART IV Managing and Maintaining Windows 7 |
|
|
|
Chapter 8 Using Windows 7 Maintenance Tools |
|
|
89 | (14) |
|
Controlling Power Settings with powercfg |
|
|
89 | (4) |
|
Query the Power Settings with powercfg |
|
|
89 | (2) |
|
Modify the Power Settings with powercfg |
|
|
91 | (2) |
|
Analyze the Power Settings with powercfg |
|
|
93 | (1) |
|
Checking Memory with mdsched |
|
|
93 | (2) |
|
Manipulating Services with sc |
|
|
95 | (2) |
|
Collecting Events with wecutil |
|
|
97 | (1) |
|
Restarting Systems with shutdown |
|
|
97 | (2) |
|
Launching Control Panel Applets from the Command Line |
|
|
99 | (4) |
|
Chapter 9 Retrieving Information About Windows 7 |
|
|
103 | (8) |
|
Viewing System Information with systeminfo |
|
|
103 | (3) |
|
Viewing User Information with whoami |
|
|
106 | (1) |
|
Launching System Configuration with msconfig |
|
|
107 | (4) |
|
Chapter 10 Managing Security in Windows 7 |
|
|
111 | (10) |
|
Manipulating Credentials with cmdkey |
|
|
111 | (1) |
|
Installing Updates with wusa |
|
|
112 | (3) |
|
Installing Applications with msiexec |
|
|
115 | (1) |
|
Auditing Systems with mbsacli |
|
|
116 | (5) |
|
Chapter 11 Configuring Windows 7 with netsh |
|
|
121 | (14) |
|
|
121 | (1) |
|
|
122 | (4) |
|
Configuring a Proxy Server |
|
|
126 | (1) |
|
Configuring the Network Interface with netsh |
|
|
126 | (9) |
|
PART V Troubleshooting Windows 7 |
|
|
|
Chapter 12 Configuring Windows 7 Using Basic Troubleshooting Tools |
|
|
135 | (10) |
|
Identifying the System Name with hostname |
|
|
135 | (1) |
|
Verifying Core System Files with sfc |
|
|
135 | (2) |
|
Checking Digital Signatures with sigverif |
|
|
137 | (1) |
|
Viewing Active Tasks with tasklist |
|
|
138 | (4) |
|
Terminating Processes with taskkill |
|
|
142 | (2) |
|
Viewing Installed Drivers with driverquery |
|
|
144 | (1) |
|
Chapter 13 Troubleshooting Network Issues |
|
|
145 | (16) |
|
Viewing and Manipulating TCP/IP Configuration with ipconfig |
|
|
145 | (6) |
|
Viewing the Physical Address with getmac |
|
|
151 | (1) |
|
Checking Connectivity with ping |
|
|
152 | (3) |
|
Viewing the Router Path with tracert |
|
|
155 | (1) |
|
Checking for Data Loss with pathping |
|
|
155 | (1) |
|
Checking for Records in DNS with nslookup |
|
|
156 | (5) |
|
Chapter 14 Using Recovery Tools |
|
|
161 | (16) |
|
Manipulating the Boot Process with bcdedit |
|
|
161 | (10) |
|
Commands That Operate on a Store |
|
|
165 | (1) |
|
Commands That Control Output |
|
|
166 | (1) |
|
Commands That Control the Boot Manager |
|
|
167 | (2) |
|
Commands That Operate on Entries in the Store |
|
|
169 | (1) |
|
Commands That Operate on Entry Options |
|
|
170 | (1) |
|
|
170 | (1) |
|
Creating a System Repair Disc with recdisc |
|
|
171 | (1) |
|
Checking and Repairing Disks with chkdsk |
|
|
172 | (3) |
|
Repairing BitLocker Drives with repair-bde |
|
|
175 | (2) |
|
PART VI Remote Administration |
|
|
|
Chapter 15 Managing Remote Windows 7 Systems |
|
|
177 | (10) |
|
Configuring Windows 7 for Remote Administration |
|
|
177 | (4) |
|
Configuring System for Remote Desktop Connection (RDC) |
|
|
177 | (3) |
|
Configuring System for Remote Access Using an MMC |
|
|
180 | (1) |
|
Connecting to Remote Systems with mstsc |
|
|
181 | (3) |
|
Configuring Windows Remote Management with winrm |
|
|
184 | (1) |
|
Executing Commands Remotely with winrs |
|
|
185 | (2) |
|
Chapter 16 Windows Management Instrumentation Command Line |
|
|
187 | (16) |
|
|
187 | (1) |
|
Configuring the Firewall to Allow wmic |
|
|
188 | (1) |
|
|
189 | (2) |
|
Modifying the Format with the /format Switch |
|
|
191 | (3) |
|
Retrieving Help from wmic |
|
|
194 | (1) |
|
|
194 | (6) |
|
|
196 | (1) |
|
|
197 | (1) |
|
|
198 | (2) |
|
User, Group, and Domain Aliases |
|
|
200 | (1) |
|
|
200 | (3) |
|
PART VII Creating and Managing Images |
|
|
|
Chapter 17 Understanding Images |
|
|
203 | (12) |
|
|
203 | (2) |
|
Using Windows Deployment Services and Images |
|
|
205 | (2) |
|
Comparing Boot and Install Images |
|
|
207 | (6) |
|
Comparing Thick and Thin Images |
|
|
213 | (2) |
|
Chapter 18 Preparing a System to Be Imaged with Sysprep |
|
|
215 | (6) |
|
|
215 | (1) |
|
|
216 | (1) |
|
Running sysprep from the Command Line |
|
|
217 | (4) |
|
Chapter 19 Installing the Windows Automated Installation Kit |
|
|
221 | (6) |
|
|
221 | (1) |
|
|
221 | (3) |
|
|
224 | (3) |
|
|
227 | (10) |
|
Creating WinPE on a Bootable USB |
|
|
227 | (4) |
|
Capturing Images with imagex |
|
|
231 | (2) |
|
Appending Images with imagex |
|
|
233 | (2) |
|
Deleting Images with imagex |
|
|
235 | (1) |
|
Deploying Images with imagex |
|
|
235 | (2) |
|
Chapter 21 Using the Deployment Image Service and Management (DISM) Tool |
|
|
237 | (10) |
|
Online Servicing Versus Offline Servicing |
|
|
237 | (1) |
|
|
238 | (2) |
|
Getting Information About Mounted Images |
|
|
240 | (1) |
|
|
240 | (5) |
|
|
241 | (1) |
|
Working with Packages and Features |
|
|
242 | (2) |
|
Miscellaneous Image Modifications |
|
|
244 | (1) |
|
|
245 | (2) |
|
PART VIII Working with WinPE and Setup |
|
|
|
Chapter 22 WinPE Commands |
|
|
247 | (4) |
|
Add Drivers to WinPE with drvload |
|
|
247 | (1) |
|
Run Commands Within WinPE with wpeutil |
|
|
248 | (3) |
|
Chapter 23 Installing Windows 7 with setup |
|
|
251 | (8) |
|
Installing Windows 7 with setup |
|
|
251 | (1) |
|
Using the Autounattend.xml File |
|
|
252 | (1) |
|
|
253 | (6) |
|
|
254 | (1) |
|
slmgr Activation Commands |
|
|
255 | (1) |
|
slmgr Commands Used for KMS Clients |
|
|
256 | (1) |
|
slmgr Commands Used for Token-Based Activation |
|
|
257 | (2) |
|
PART IX Migrating User Data with USMT |
|
|
|
Chapter 24 Capturing User Data with scanstate |
|
|
259 | (14) |
|
Understanding Migration Stores |
|
|
259 | (1) |
|
Reviewing Migration Paths |
|
|
259 | (4) |
|
Understanding Hard-Link Migration Stores |
|
|
263 | (2) |
|
Capturing Migration Data with scanstate |
|
|
265 | (8) |
|
|
266 | (1) |
|
|
266 | (2) |
|
Identifying Users to Migrate with scanstate |
|
|
268 | (1) |
|
Encrypting the Migration Store with scanstate |
|
|
269 | (1) |
|
Simple Error Handling with scanstate |
|
|
270 | (1) |
|
|
270 | (1) |
|
Migrating Data from the Windows.old Folder |
|
|
271 | (2) |
|
Chapter 25 Restoring User Data with loadstate |
|
|
273 | (6) |
|
|
273 | (1) |
|
|
274 | (1) |
|
Specifying Hard-Link Options |
|
|
275 | (1) |
|
Deleting the Hard-Link Store |
|
|
275 | (1) |
|
Identifying Users to Migrate |
|
|
276 | (1) |
|
Decrypting an Encrypted Migration Store |
|
|
277 | (1) |
|
|
278 | (1) |
|
|
|
Chapter 26 Understanding PowerShell Commands |
|
|
279 | (20) |
|
|
279 | (1) |
|
Understanding PowerShell Verbs and Nouns |
|
|
280 | (4) |
|
Tabbing Through PowerShell Commands |
|
|
284 | (1) |
|
Understanding the Different Types of PowerShell Commands |
|
|
285 | (1) |
|
|
286 | (1) |
|
Discovering Windows PowerShell Commands |
|
|
286 | (2) |
|
|
288 | (3) |
|
Redirecting Output with Windows PowerShell |
|
|
291 | (1) |
|
Understanding PowerShell Errors |
|
|
291 | (2) |
|
Understanding PowerShell Variables |
|
|
293 | (2) |
|
Using Comparison Operators |
|
|
295 | (1) |
|
|
296 | (3) |
|
Chapter 27 Using the Integrated Scripting Environment (ISE) |
|
|
299 | (10) |
|
|
299 | (1) |
|
|
300 | (2) |
|
Executing Commands in the ISE |
|
|
302 | (1) |
|
Creating and Saving a Script in the ISE |
|
|
303 | (6) |
|
Chapter 28 Creating and Running PowerShell Scripts |
|
|
309 | (20) |
|
Setting the Security Context |
|
|
309 | (1) |
|
Creating a PowerShell Profile |
|
|
310 | (2) |
|
Creating and Modifying the Global PowerShell Profile |
|
|
312 | (1) |
|
Running PowerShell Scripts |
|
|
313 | (1) |
|
|
314 | (1) |
|
Creating a List of Domain Computers |
|
|
315 | (1) |
|
Logging Processes with a get-process Script |
|
|
316 | (2) |
|
Testing for the Existence of a File |
|
|
318 | (1) |
|
|
318 | (2) |
|
Running a Script Against Multiple Computers |
|
|
320 | (2) |
|
Creating a PowerShell Message Box |
|
|
322 | (4) |
|
Scheduling PowerShell Scripts |
|
|
326 | (3) |
|
PART XI Group Policy and the Command Line |
|
|
|
Chapter 29 Group Policy Overview |
|
|
329 | (12) |
|
Understanding Group Policy Settings |
|
|
329 | (4) |
|
|
333 | (1) |
|
|
334 | (1) |
|
Using Loopback Processing |
|
|
335 | (1) |
|
Running Scripts with Group Policy |
|
|
336 | (3) |
|
Running PowerShell Scripts via Group Policy |
|
|
339 | (2) |
|
Chapter 30 Group Policy Command-Line Tools |
|
|
341 | (6) |
|
Viewing Group Policy Settings with gpresult |
|
|
341 | (2) |
|
Refreshing Group Policy Settings with gpupdate |
|
|
343 | (4) |
Appendix A Create Your Own Journal Here |
|
347 | |