text stringlengths 0 4.23k |
|---|
repair-bde C: D: -rk F:\RecoveryKey.bek –lf Z:\log.txt |
To attempt to repair drive C: and to write the content from drive C: to drive D: using the 48-digit recovery password specified, type: |
repair-bde C: D: -rp 111111-222222-333333-444444-555555-666666-777777-888888 |
Note |
The recovery password should be typed in eight blocks of six digits with a hyphen separating each block. |
To force drive C: to dismount, attempt to repair drive C:, and then to write the content from drive C: to drive D: using the recovery key package and recovery key file (RecoveryKey.bek) stored on drive F:, type: |
repair-bde C: D: -kp F:\RecoveryKeyPackage -rk F:\RecoveryKey.bek -f |
To attempt to repair drive C: and to write the content from drive C: to drive D:, where you must type a password to unlock drive C: (when prompted), type: |
repair-bde C: D: -pw |
repair |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Repairs the RAID-5 volume with focus by replacing the failed disk region with the specified dynamic disk. |
A volume in a RAID-5 array must be selected for this operation to succeed. Use the select volume command to select a volume and shift the focus to it. |
Syntax |
repair disk=<n> [align=<n>] [noerr] |
Parameters |
Parameter |
Description |
disk=<n> |
Specifies the dynamic disk that will replace the failed disk region. Where n must have free space greater than or equal to the total size of the failed disk region in the RAID-5 volume. |
align=<n> |
Aligns all volume or partition extents to the closest alignment boundary. Where n is the number of kilobytes (KB) from the beginning of the disk to the closest alignment boundary. |
noerr |
for scripting only. When an error is encountered, DiskPart continues to process commands as if the error didn't occur. Without this parameter, an error causes DiskPart to exit with an error code. |
<n> |
<n> |
Examples |
To replace the volume with focus by replacing it with dynamic disk 4, type: |
repair disk=4 |
replace |
Replace existing files in a directory. If used with the /a option, this command adds new files to a directory instead of replacing existing files. |
Syntax |
replace [<drive1>:][<path1>]<filename> [<drive2>:][<path2>] [/a] [/p] [/r] [/w] |
replace [<drive1>:][<path1>]<filename> [<drive2>:][<path2>] [/p] [/r] [/s] [/w] [/u] |
Parameters |
Parameter |
Description |
[<drive1>:][<path1>]<filename> |
Specifies the location and name of the source file or set of files. The filename option is required, and can include wildcard characters (* and ?). |
[<drive2>:][<path2>] |
Specifies the location of the destination file. You can't specify a file name for files you replace. If you don't specify a drive or path, this command uses the current drive and directory as the destination. |
/a |
Adds new files to the destination directory instead of replacing existing files. You can't use this command-line option with the /s or /u command-line option. |
/p |
Prompts you for confirmation before replacing a destination file or adding a source file. |
/r |
Replaces Read-only and unprotected files. If you attempt to replace a Read-only file, but you don't specify /r, an error results and stops the replacement operation. |
/w |
Waits for you to insert a disk before the search for source files begins. If you don't specify /w, this command begins replacing or adding files immediately after you press ENTER. |
/s |
Searches all subdirectories in the destination directory and replaces matching files. You can't use /s with the /a command-line option. The command doesn't search subdirectories that are specified in Path1. |
/u |
Replaces only those files on the destination directory that are older than those in the source directory. You can't use /u with the /a command-line option. |
/? |
Displays help at the command prompt. |
[<drive1>:][<path1>]<filename> |
[<drive2>:][<path2>] |
Remarks |
As this command adds or replaces files, the file names appear on the screen. After this command is done, a summary line is displayed in one of the following formats: |
nnn files added |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.