text
stringlengths
0
4.23k
Specifies the volume name that is the target of the mount point. The volume name uses the following syntax, where GUID is a globally unique identifier: \\?\volume\{GUID}\. The brackets { } are required.
/d
Removes the volume mount point from the specified folder.
/l
Lists the mounted volume name for the specified folder.
/p
Removes the volume mount point from the specified directory, dismounts the basic volume, and takes the basic volume offline, making it unmountable. If other processes are using the volume, mountvol closes any open handles before dismounting the volume.
/r
Removes volume mount point directories and registry settings for volumes that are no longer in the system, preventing them from being automatically mounted and given their former volume mount point(s) when added back to the system.
/n
Disables automatic mounting of new basic volumes. New volumes are not mounted automatically when added to the system.
/e
Re-enables automatic mounting of new basic volumes.
/s
Mounts the EFI system partition on the specified drive.
/?
Displays help at the command prompt.
[<drive>:]<path>
<volumename>
\\?\volume\{GUID}\
{ }
Remarks
If you dismount your volume while using the /p parameter, the volume list will show the volume as not mounted until a volume mount point is created.
If your volume has more than one mount point, use /d to remove the additional mount points before using /p. You can make the basic volume mountable again by assigning a volume mount point.
If you need to expand your volume space without reformatting or replacing a hard drive, you can add a mount path to another volume. The benefit of using one volume with several mount paths is that you can access all local volumes by using a single drive letter (such as C:). You don't need to remember which volume corresponds to which drive letter—although you can still mount local volumes and assign them drive letters.
C:
Examples
To create a mount point, type:
mountvol \sysmount \\?\volume\{2eca078d-5cbc-43d3-aff8-7e8511f60d0e}\
move
Moves one or more files from one directory to another directory.
Important
Moving encrypted files to a volume that doesn't support Encrypting File System (EFS) results will result in an error. You must first decrypt the files or move them to a volume that supports EFS.
Syntax
move [{/y|-y}] [<source>] [<target>]
Parameters
Parameter
Description
/y
Stops prompting for confirmation that you want to overwrite an existing destination file. This parameter might be preset in the COPYCMD environment variable. You can override this preset by using the -y parameter. The default is to prompt before overwriting files, unless the command is run from within a batch script.
-y
Starts prompting for confirmation that you want to overwrite an existing destination file.
<source>
Specifies the path and name of the file(s) to move. To move or rename a directory, the source should be the current directory path and name.
<target>
Specifies the path and name to move files to. To move or rename a directory, the target should be the desired directory path and name.
/?
Displays help at the command prompt.
<source>
<target>
Examples
To move all files with the .xls extension from the \Data directory to the \Second_Q\Reports directory, type:
move \data\*.xls \second_q\reports\
mqbkup
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Backs up MSMQ message files and registry settings to a storage device and restores previously-stored messages and settings.
Both the backup and the restore operations stop the local MSMQ service. If the MSMQ service was started beforehand, the utility will attempt to restart the MSMQ service at the end of the backup or the restore operation. If the service was already stopped before running the utility, no attempt to restart the service is made.
Before using the MSMQ Message Backup/Restore utility you must close all local applications that are using MSMQ.
Syntax
mqbkup {/b | /r} <folder path_to_storage_device>