text stringlengths 0 4.23k |
|---|
Examples |
To verify the kernel32.dll file, type: |
sfc /verifyfile=c:\windows\system32\kernel32.dll |
To set up the offline repair of the kernel32.dll file with an offline boot directory set to D: and an offline windows directory set to D:\Windows, type: |
sfc /scanfile=D:\windows\system32\kernel32.dll /offbootdir=D:\ /offwindir=d:\windows |
shadow |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Enables you to remotely control an active session of another user on a Remote Desktop Session Host server. |
Syntax |
shadow {<sessionname> | <sessionID>} [/server:<servername>] [/v] |
Parameters |
Parameter |
Description |
<sessionname> |
Specifies the name of the session that you want to remotely control. |
<sessionID> |
Specifies the ID of the session that you want to remotely control. Use query user to display the list of sessions and their session IDs. |
/server:<servername> |
Specifies the Remote Desktop Session Host server containing the session that you want to remotely control. By default, the current Remote Desktop Session Host4 server is used. |
/v |
Displays information about the actions being performed. |
/? |
Displays help at the command prompt. |
<sessionname> |
<sessionID> |
<servername> |
Remarks |
You can either view or actively control the session. If you choose to actively control a user's session, you will be able to input keyboard and mouse actions to the session. |
You can always remotely control your own sessions (except the current session), but you must have Full Control permission or remote Control special access permission to remotely control another session. |
You can also initiate remote control by using Remote Desktop Services Manager. |
Before monitoring begins, the server warns the user that the session is about to be remotely controlled, unless this warning is disabled. Your session might appear to be frozen for a few seconds while it waits for a response from the user. To configure remote control for users and sessions, use the Remote Desktop Servi... |
Your session must be capable of supporting the video resolution used at the session that you are remotely controlling or the operation fails. |
The console session can neither remotely control another session nor can it be remotely controlled by another session. |
When you want to end remote control (shadowing), press CTRL+* (by using * from the numeric keypad only). |
* |
* |
Examples |
To shadow session 93, type: |
shadow 93 |
To shadow the session ACCTG01, type: |
shadow ACCTG01 |
shift |
Changes the position of batch parameters in a batch file. |
Syntax |
shift [/n <N>] |
Parameters |
Parameter |
Description |
/n <N> |
Specifies to start shifting at the Nth argument, where N is any value from 0 to 8. Requires command extensions, which are enabled by default. |
/? |
Displays help at the command prompt. |
<N> |
Remarks |
The shift command changes the values of the batch parameters %0 through %9 by copying each parameter into the previous one—the value of %1 is copied to %0, the value of %2 is copied to %1, and so on. This is useful for writing a batch file that performs the same operation on any number of parameters. |
If command extensions are enabled, the shift command supports the /n command-line option. The /n option specifies to start shifting at the Nth argument, where N is any value from 0 to 8. For example, SHIFT /2 would shift %3 to %2, %4 to %3, and so on, and leave %0 and %1 unaffected. Command extensions are enabled by de... |
You can use the shift command to create a batch file that can accept more than 10 batch parameters. If you specify more than 10 parameters on the command line, those that appear after the tenth (%9) will be shifted one at a time into %9. |
The shift command has no effect on the %* batch parameter. |
There's no backward shift command. After you implement the shift command, you can't recover the batch parameter (%0) that existed before the shift. |
Examples |
To use a batch file, called Mycopy.bat, to copy a list of files to a specific directory, type: |
@echo off |
rem MYCOPY.BAT copies any number of files |
rem to a directory. |
rem The command uses the following syntax: |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.