| < Day Day Up > |
|
/C, command line parameter, 16
call statements, scripts, 56
capacity planning, for print spoolers, 272–76
case awareness, 35
case sensitivity
string comparisons, 45
variable names, 35
chaining commands, 22–24
Check NTFS parameter, AUTOCHK command, 163–64
child domains, Active Directory, 200
Chkdsk.exe (Check Disk)
analyzing disk without repairing it, 161–62
fixing disk errors, 162–63
.cmd extension, scripts, 26
Cmd.exe
command history buffer, 10–11
command-line extensions, 8
environment defaults, 4–5
external commands, 7–8
internal commands, 6–8
options for starting, 4
parameters, 4, 16
processing modes, 5
CNs (common names), 202
color
COLOR command, 32
Colors tab, command-prompt properties, 10
scripts, 32
command chaining, 22–24
command echoing, 29–31
command history buffer, 10–11
command path
file extensions and file associations, 19–20
managing, 17–19
Command Prompt, Accessories folder, 4
command shell
chaining commands, 22–24
command execution sequence, 15–16
command path, 17–19
file associations, 19–20
file extensions, 19
grouping commands, 22–24
MS-DOS (Command.com), 8–9
redirection techniques, 21–22
startup, 16–17
syntax of commands, 15
Windows (Cmd.exe), 4–8
Command.com, 8–9
command-prompt properties
Colors tab, 10
Font tab, 9
Layout tab, 10
Options tab, 9
commands
compared with statements, 27
DISKPART, 143–46
execution sequence, 15–16
FSUtil (File System Utility), 158–59
grouping, 22–24
parsing output of, 50–53
syntax, 15
commands, listed
AT (@) (shell command), 30
FOR (shell command), 6
ACTIVE (DISKPART), 144, 155–56
ADD (DISKPART), 144
ASSIGN (DISKPART), 144, 171–72
ASSOC (shell command), 19–20
AUTOCHK, 163–64
AUTOMOUNT (DISKPART), 144
BEHAVIOR (FSUtil), 158
BREAK (DISKPART), 143–44, 194
BREAK (shell command), 6
BREAK DISK (DISKPART), 190
CALL (shell command), 6
CD (CHDIR) (shell command), 6
CHKNTFS, 163–64
CLEAN (DISKPART), 144, 153
CLS (shell command), 6, 27–28
CMD, 16
COLOR (shell command), 6, 32
CONVERT (DISKPART). See CONVERT
COPY, 68–69
COPY (shell command), 6
CREATE (DISKPART), 144
CUT, 68–69
DATE (shell command), 6
DCPROMO, 227, 228
DEFRAG, 62
DEL (shell command), 6
DELETE (DISKPART), 144
DELETE PARTITION (DISKPART), 180
DELETE VOLUME (DISKPART), 186–87
DETAIL (DISKPART), 144
DETAIL DISK (DISKPART), 190
DETAIL VOLUME (DISKPART), 190
DHCPCONFIG, 300
DIR (shell command), 5, 6
DIRTY (FSUtil command), 158
DRIVERQUERY, 84
DSADD. See DSADD
DSADD COMPUTER, 217
DSADD GROUP, 254, 257
DSADD USER, 237–38, 240–41
DSGET, 203–4
DSGET COMPUTER, 218, 222–24
DSGET GROUP, 254–55, 260–61
DSGET SERVER, 218–19
DSGET USER, 237–38, 246–48, 250–51
DSMOD. See DSMOD
DSMOD COMPUTER, 218, 224–26
DSMOD GROUP, 255, 262–65
DSMOD SERVER, 219, 230–31
DSMOD USER, 238, 248–51, 253
DSMOVE. See DSMOVE
DSMOVE COMPUTER, 226–27
DSMOVE GROUP, 265
DSMOVE USER, 252–53
DSQUERY COMPUTER, 204–5, 213–14
DSQUERY CONTACT, 205
DSQUERY GROUP, 205, 255, 260–61
DSQUERY OU, 205
DSQUERY PARTITION, 205
DSQUERY QUOTA, 205
DSQUERY SERVER, 205, 228–31
DSQUERY SITE, 205
DSQUERY SUBNET, 206
DSQUERY USER, 206, 213–14, 245–47, 263
DSRM COMPUTER, 203–4, 227
DSRM GROUP, 266
DSRM USER, 203–4, 215–16, 253
ECHO (shell command), 6, 29–31
ECHO OFF (shell command), 30–31
ENDLOCAL (shell command), 6, 39
EVENTCREATE. See EVENTCREATE
EVENTQUERY. See EVENTQUERY
EVENTTRIGGERS. See EVENTTRIGGERS
EXIT (DISKPART), 144
EXIT (shell command), 6, 17
EXTEND (DISKPART), 144, 179–80
FILE (FSUtil command), 158
FIND, 21
FORMAT (DISKPART), 173–76
FSINFO (FSUtil command), 158, 159–60
FTYPE (shell command), 6, 19–20
GOTO (shell command), 6
GPT (DISKPART), 145
HARDLINK (FSUtil command), 158
HELP (DISKPART), 145
IF (shell command), 6
IMPORT (DISKPART), 145
INACTIVE (DISKPART), 145
LABEL (DISKPART), 179
LIST (DISKPART). See LIST
LIST DISK (DISKPART), 190
LIST PARTITION (DISKPART), 167–68
LIST VOLUME (DISKPART), 171, 181–82
MD (MKDIR) (shell command), 6
MORE, 21
MOVE (shell command), 7
MOVETREE, 215
NET LOCALGROUP, 255, 259
NET USE, 148
NET USER, 239, 244–45
NETSH, 297–301
NLSINFO, 84
NOW, 83
OBJECTID (FSUtil), 158
ONLINE (DISKPART), 145, 186
PATH (shell command), 7, 17, 19
PAUSE (shell command), 7
POPD (shell command), 7
PRINTDRIVERINFO. See PRINTDRIVERINFO
PROMPT (shell command), 7
PUSHD (shell command), 7
QUOTA (FSUtil command), 158
RD (MDIR) (shell command), 7
REG ADD, 87, 90
REG COMPARE, 87–89
REG COPY, 87, 90–91
REG DELETE, 87, 91–92
REG QUERY, 87
REG RESTORE, 87, 89
REG SAVE, 87, 89
REG_BINARY, 86
REG_DWORD, 86
REG_EXPAND_SZ, 86
REG_MULTI_SZ, 86
REG_SZ, 86
REM (DISKPART), 145
REM (shell command), 7, 28–29
REMOVE (DISKPART), 145, 172–73
REN (RENAME) (shell command), 7
REPAIR (DISKPART), 145, 195
REPARSEPOINT (FSUtil), 158
RESCAN (DISKPART), 145, 149
RETAIN (DISKPART), 145
RUN (shell command), 4, 8
SC CONFIG, 92, 96–97
SC FAILURE, 92, 98–100
SC PAUSE, 92, 95–96
SC QC, 92–95
SC QFAILURE, 92
SC QUERY, 92–95
SC START, 92, 95–96
SC STOP, 92, 95–96
SCHTASKS, 57
SCHTASKS CHANGE, 70, 76–77
SCHTASKS CREATE, 70–75
SCHTASKS DELETE, 70, 79–80
SCHTASKS END, 70, 79
SCHTASKS QUERY, 70, 78
SCHTASKS RUN, 70, 78–79
SELECT (DISKPART), 143, 145
SET (shell command), 7, 33–34
SETLOCAL (shell command), 7, 39
SETX (shell command), 18
SHIFT (shell command), 7, 33
SPARSE (FSUtil command), 159
SPLINFO. See SPLINFO
START (shell command), 7
SYSTEMINFO, 84
TIME (shell command), 7
TITLE (shell command), 7, 31–32
TYPE (shell command), 7
USN (FSUtil command), 159
VERIFY (shell command), 7
VOL, 179
VOL (shell command), 7
VOLUME, 160
VOLUME (FSUtil command), 159
WHERE, 83
WHOAMI, 83
command-shell window, 27–28
comments
adding to scripts, 28–29
printers, 285
shutdowns and restarts, 102
common names (CNs), 202
comparison operators, 45–46
list of, 45–46
using with if statements, 40, 45–46
computer accounts
creating, 219–20
customizing, 220–21
deleting, 227
directory queries for, 204–5
enabling/disabling, 225
list of command-line tools for, 217–19
location or description attribute, 224–25
moving, 226–27
resetting locked, 225–26
searching for, 213–14, 222–24
system information and, 84
viewing, 222–24
computer configuration problems, 326–35
conditional statements, 43–44
Config.nt, 5, 8
Config.sys, 5
configuration commands, 8–9
configuration information
gathering, 84
stored in registry, 85
configuration settings, TCP/IP
deleting, 307–8
obtaining/saving, 308–10
connection problems, troubleshooting, 336–42
connection states, TCP, 319
contacts, 205
containers, Active Directory, 200, 202–3
context names, Netsh, 297–99
CONVERT
basic disks to/from dynamic disks, 157
CvtArea parameter, 178–79
disk space needed by, 176
partition or volume to NTFS, 176–79
partition table styles, 153
CScript
managing printers, 276
setting as default scripting host, 107
Ctrl+C, 4
Ctrl+S, 4
cursor
interactive mode, 5
options, 9
CvtArea parameter, CONVERT command, 178–79
cylinders, 168
| < Day Day Up > |
|