Партнерка на США и Канаду по недвижимости, выплаты в крипто

  • 30% recurring commission
  • Выплаты в USDT
  • Вывод каждую неделю
  • Комиссия до 5 лет за каждого referral

netsh Command

NetSh. exe is a configuration tool that now adds the basic network diagnostic features provided by older NetDiag. exe sh is a command-line scripting utility that permits administrators to display or modify the network configuration of a computer that is currently sh provides a scripting feature that allows you to run a group of commands in batch mode against a specified sh can also save a configuration script in a text file for archival purposes or to help you configure other *****n the netsh command from the Cmd. exe prompt and change to the context that contains the command you want to use. The contexts that are available depend on which networking components you have installed.

openfiles Command

Openfiles. exe is used to view the list of connected users and files in use per share on a computer. The openfiles command permits the administrator to make queries, and displays or disconnects open files or files opened by network users. This command also enables or disables the system's Maintain Objects List global flag. This can be done on a local, query, and disconnected basis.

pagefileconfig Command

Pagefileconfig. vbs retrieves the current page file's size or sets a new page file size. The pagefileconfig command enables an administrator to display and configure a system's paging file Virtual Memory settings. The optional settings permit the administrator to create, change, delete, and query related page file sizes.

powercfg Command

PowerCfg. exe enables power management. The powercfg command enables an administrator to control the power settings on a system. The syntax is

НЕ нашли? Не то? Что вы ищете?

[View full width]

Powercfg [/list | /query name | /create name | /delete name | /setactive name | /change

graphics/ccc.gifsettings | /hibernate [on|off] | /export name [/file file name] | /import name [/file

graphics/ccc.giffile name] | /?]

Table A.13. powercfg Command Options

Option

Qualifier

Description

/list or /l

Lists the names of existing power schemes.

/query or /q

Displays the configuration of the specified power scheme. If no name is specified, the configuration of the currently active power scheme is displayed.

/create or /c

Creates the specified power scheme. The new scheme is created with the properties of the currently active scheme.

/delete or /d

Deletes the specified power scheme.

/setactive or /s

Activates the specified power scheme.

/change or /x

Changes settings of the specified power scheme. Additional switches specify the changes as follows:

/monitor-timeout-ac minutes turns the monitor off after the specified number of minutes when the system is operating on AC power. A value of 0 will disable the timeout.

/monitor-timeout-dc minutes turns the monitor off after the specified number of minutes when the system is operating on DC (battery) power. A value of 0 will disable the timeout.

/disk-timeout-ac minutes turns the hard disks off after the specified number of minutes when the system is operating on AC power. A value of 0 will disable the timeout.

/disk-timeout-dc minutes turns the hard disks off after the specified number of minutes when the system is operating on DC (battery) power. A value of 0 will disable the timeout.

/standby-timeout-ac minutes puts the computer in standby mode after the specified number of minutes when the system is operating on AC power. A value of 0 will disable the timeout.

/standby-timeout-dc minutes puts the computer in standby mode after the specified number of minutes when the system is operating on DC (battery) power. A value of 0 will disable the timeout.

/hibernate-timeout-ac minutes saves the contents of the computer's memory to disk and turns off the computer after the specified number of minutes when the system is operating on AC power. A value of 0 will disable the timeout.

/hibernate-timeout-dc minutes saves the contents of the computer's memory to disk and turns off the computer after the specified number of minutes when the system is operating on DC (battery) power. A value of 0 will disable the timeout.

/processor-throttle-ac [none | constant | degrade | adaptive] selects the dynamic throttling policy to be used if your microprocessor supports processor performance state controls when the system is operating on AC power. The desired dynamic throttling policy is selected with one of four additional switches:

·  none causes the microprocessor to operate at the highest performance state at all times.

·  constant causes the microprocessor to operate at the lowest performance state at all times.

·  degrade causes the microprocessor to operate at the lowest performance state, and further reduces performance by applying stop clock throttling as the system battery drains. This option is typically used when the computer is operating on battery power and is therefore seldom used with /processor-throttle-ac.

·  adaptive modifies the performance state dynamically based on the demand the system puts on the microprocessor.

/processor-throttle-dc [none | constant | degrade | adaptive] selects the dynamic throttling policy to be used if your microprocessor supports processor performance state controls when the system is operating on DC (battery) power. The desired dynamic throttling policy is selected with one of the four additional switches listed under /processor-throttle-ac.

/hibernate or /h

Turns the hibernation feature on or off. Hibernation timeout is not supported on all systems that support hibernation.

/export or /e

Exports the specified power scheme to a file. If no file name is specified, the default is scheme. pow. This parameter supports the following parameter: /file file name

/import or /i

Imports the power scheme from the specified file. If no file name is specified, the default is scheme. pow. If a scheme with that name already exists, it is replaced with the new one. This parameter supports the following parameter: /file file name

/numerical or /n

Requires you to specify the power scheme using its numeric identifier rather than its name. Use this switch in combination with the /query, /delete, /setactive, /change, /export, and /import commands.

/globalpowerflag or /g [on | off] /option: [batteryicon | multibattery | resumepassword | wakeonring | videodim]

Turns the global power flag features on or off. Use the first switch to indicate whether to turn the feature on or off.

/option:

Is mandatory, and is followed by the name of the feature you are turning on or off. There are five possibilities:

batteryicon enables or disables the battery meter icon in the notification area. When this flag is cleared, the battery meter icon is not displayed.

multibattery enables or disables multiple battery display in the system's Power Meter.

resumepassword enables or disables the requirement that the user supply a password when the system resumes from standby or hibernate.

wakeonring enables or disables Wake on Ring support.

videodim enables or disables support for dimming the video display when the system changes from AC power to DC (battery) power.

Print Scripts

Print scripts manages printer services, drivers, and queues. The scripts that are most valuable to administrators include:

·  Prncnfg. vbs configures or displays configuration information about a printer.

·  Prndrvr. vbs adds, deletes, and lists printer drivers.

·  Prnjobs. vbs pauses, resumes, cancels, and lists print jobs.

·  Prnmngr. vbs adds, deletes, and lists printers or printer connections in addition to setting and displaying the default printer.

·  Prnport. vbs creates, deletes, and lists standard TCP/IP printer ports in addition to displaying and changing port configuration.

·  Prnqctl. vbs prints a test page, pauses or resumes a printer, and clears a printer queue.

regfind Command

Regfind. exe searches the registry. The regfind command searches the registry for arbitrary data, key names, or value names, and replaces any of these with new values. This is accessible only to members of the Administrators group. The syntax is

[View full width]

regfind [{-m \\ComputerName | - h HiveFile HiveRoot | - w Windows95Directory}] [-i n] [-o

graphics/ccc.gifOutputWidth] [-p RegistryKeyPath] [{-z | - t DataType}] [{-b | - B}] [-y] [-n][SearchString

graphics/ccc.gif [-r ReplacementString]]

sc Command

SC. exe starts and stops and manages Win32 services. The sc command communicates with the Service Controller and installed services. SC. exe retrieves and sets control information about services. It is used to test and debug service programs. Administrators can use service properties stored in the registry to set the control for how service applications are started at boot time and run as background processes. Batch files can be used to call various SC. exe commands to automate the startup or shutdown sequence of services. SC. exe provides capabilities similar to Services in the Administrative Tools item in Control Panel. SC. exe options cover boot, config, continue, create, delete, description, failure, getdisplayname, getkeyname, interrogate, lock, pause, qc, qdescription, qfailure, query, queryex, querylock, sdset, sdshow, start, and stop.

setx Command

Setx. exe allows environment variables to be set with batch files. The setx command establishes the environment variables in the local or system environment without requiring programming or scripting. Setx also establishes the values of registry keys and writes them to text files. The syntax is

[View full width]

setx [/s computer [/u [domain\]user [/p [password]]]] Variable Value [/m]

setx [/s computer [/u [domain\]user [/p [password]]]] [Variable] /k Path [/m]

setx [/s computer [/u [domain\]user [/p [password]]]] [Variable] /f File {/a x, y | /r x, y

graphics/ccc.gif"String"} [/d Delimiters] [/x] [/m]

Table A.14. regfind Command Options

Option

Qualifier

Description

-m

\\ComputerName

Defines a remote Windows 2000 computer (machine) whose registry is to be manipulated.

-h

HiveFile HiveRoot

Defines a local hive to manipulate.

-w

Windows95Directory

Defines the paths to Windows 95 system. dat and user. dat files.

-i

n

Defines the display indentation multiple. Default is 4.

-o

OutputWidth

Defines how wide the output is to default OutputWidth is set to the width of the console window, if standard output (STDOUT) has not been redirected to a file. In the latter case, an OutputWidth of 240 is used.

-p

RegistryKeyPath

Defines where in the registry to start searching. All entries below this point in the registry hierarchy are also searched. If no path is specified, regfind searches the entire registry, which can be time consuming.

If the path contains spaces, it must be surrounded by quotation marks:

"Registry Key Path with Spaces"

-z

Defines to search for REG_SZ and REG_EXPAND_SZ values that are missing a trailing null character and/or have a length that is not a multiple of the size of a Unicode character.

-t

DataType

Defines which registry types to search. DataType can be REG_SZ, REG_MULTI_SZ, REG_EXPAND_SZ, REG_DWORD, REG_BINARY, or REG_NONE. Default is any of the _SZ types.

-b

Defines that regfind should look for occurrences of the SearchString inside of REG_BINARY data. Only valid with _SZ searches. Cannot be specified with a ReplacementString that is not the same length as the SearchString.

-B

Same functionality as - b, but also looks for ANSI version of string within REG_BINARY values.

-y

Defines that regfind should ignore case when searching. Only valid with _SZ searches.

-n

Defines to include key and value names in the search. You cannot use - n with - t.

SearchString

Defines the value to search for. If SearchString is not specified, regfind searches based on type. If SearchString contains spaces, you must wrap it in quotation marks (for example, "Search String With Spaces").

-r

ReplacementString

Defines an optional replacement string to replace any matches.

 

Table A.15. setx Command Options

Option

Qualifier

Description

/s

computer

Defines the name or IP address of a remote computer (local computer is default).

/u

domain\user

Runs the script with the permissions of the specified user account. The default is system permissions.

/p

password

Defines the password of the user account that is specified in the /u parameter.

shutdown Command

Shutdown. exe shuts down or restarts a computer and allows a restart explanation to be written to the event log. This allows the administrator to shut down or restart a local or remote computer. The syntax is

[View full width]

shutdown [{-i | - l | - s | - r | - a}] [-f] [-m \\ComputerName] [-t xxx] [-c "comment

graphics/ccc.gif"] [-d [u] [p]:xx:yy]

Table A.16. shutdown Command Options

Option

Qualifier

Description

-i

Displays the Remote Shutdown Dialog box. Must be the first option.

-l

Logs off the current user. This is also the default. Cannot be used with - m \\ComputerName.

-s

Shuts down the computer.

-r

Restarts the computer after shutdown.

-a

Aborts shutdown. Ignores other parameters except for - l and ComputerName. You can only use - a during the timeout period.

-f

Forces running applications to close.

-m

\\ComputerName

Defines the target computer. Cannot be used with - l.

-t

xxx

Sets the timer for system shutdown in xxx seconds. The default is 20 seconds.

-c

"comment"

Permits detailed comments about the reason for the shutdown. You can use a maximum of 127 characters. You must enclose the message in quotation marks.

systeminfo Command

Systeminfo. exe views the basic properties of a machine (such as CPU and memory). The systeminfo command displays detailed configuration information about a computer and its operating system, including operating system configuration, security information, product ID, and hardware properties, such as RAM, disk space, and network cards. The syntax is

systeminfo [/s computer [/u domain\user [/p password]]] [/fo {TABLE|LIST|CSV}] [/nh]

takeown Command

Takeown. exe allows administrators to take ownership of orphaned files. The takeown command implements a recovery scheme to allow access to a locked file. The syntax is

takeown [/s System [/u [Domain\User [/p [Password]]]] Filename

taskkill Command

TaskKill. exe is used to kill or stop a running process. The taskkill command ends one or more tasks or processes. Processes can be killed by process ID or image name. The syntax is

[View full width]

taskkill [/s computer] [/u domain\user [/p password]]] [/fi FilterName] [/pid ProcessID

graphics/ccc.gif]|[/im ImageName] [/f]

Table A.17. systeminfo Command Options

Option

Qualifier

Description

/s

computer

Defines the name or IP address of a remote computer (local computer is default).

/u

domain\user

Runs the script with the permissions of the specified user account. The default is system permissions.

/p

password

Defines the password of the user account that is specified in the /u parameter.

 

Table A.18. taskkill Command Options

Option

Qualifier

Description

/s

computer

Defines the name or IP address of a remote computer (local computer is default).

/u

domain\user

Runs the command with the account permissions of the user specified by user or domain\user. The default is the permissions of the user who issues the command.

/p

password

Defines the password of the user account that is specified in the /u parameter.

/fi

FilterName

Defines the types of process(es) to include in or exclude from termination.

/pid

ProcessID

Defines the process ID of the process to be terminated.

/im

ImageName

Defines the image name of the process to be terminated. Use the wildcard (*) to specify all image names.

/f

Defines that process(es) be forcefully terminated. This parameter is ignored for remote processes; all remote processes are forcefully terminated.

tasklist Command

TaskList. exe is used to view or identify all running processes with PIDs. The tasklist command displays a list of applications, services, and the process ID (PID) currently running on either a local or a remote computer. The syntax is

[View full width]

tasklist[.exe] [/s computer] [/u domain\user [/p password]]] [/fo {TABLE|LIST|CSV}] [/nh]

graphics/ccc.gif[/fi FilterName [/fi FilterName2 [ ... ]]] [/svc] [/v]

timeout Command

Timeout. exe pauses a batch file for a specified number of seconds. The timeout command pauses the command processor for the specified number of seconds. Timeout. exe is typically used in batch files. The syntax is

timeout /t TimeoutInSeconds [/nobreak]

tsecimp Command

Tsecimp. exe imports Telephony Application Programming Interface (TAPI) user account properties and access rights. The tsecimp command imports assignment information from an Extensible Markup Language (XML) file into the TAPI server security file (Tsec. ini). Administrators can use this command to display the list of TAPI providers and the lines or devices associated with each of them and validate the structure of the XML file without importing the contents. The syntax is

Table A.19. takeown Command Options

Option

Qualifier

Description

/s

computer

Defines the name or IP address of a remote computer (local computer is default).

/u

domain\user

Runs the script with the permissions of the specified user account. The default is system permissions.

/p

password

Defines the password of the user account that is specified in the /u parameter.

 

Table A.20. tasklist Command Options

Option

Qualifier

Description

/s

computer

Defines the name or IP address of a remote computer (local computer is default).

/u

domain\user

Runs the command with the account permissions of the user specified by user or domain\user. The default is the permissions of the user issuing the command.

/p

password

Defines the password of the user account that is specified in the /u parameter.

/fo {TABLE|LIST|CSV}

Defines the format to use for the output. Valid values are TABLE, LIST, and CSV. The default format for output is TABLE.

/nh

Suppresses column headers in the output. Valid when the /fo parameter is set to TABLE or CSV.

/fi

FilterName

Defines the types of process(es) to include in or exclude from the query.

/svc

Outputs all the service information for each process without truncation. Valid when the /fo parameter is set to TABLE.

/v

Directs that verbose task information be displayed in the output. To see complete verbose output without truncation, use in conjunction with the /svc parameter.

 

Из за большого объема этот материал размещен на нескольких страницах:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19