Enables or disables the automount feature.
Syntax: AUTOMOUNT [ENABLE] [DISABLE] [SCRUB] [NOERR]
ENABLE Enables Windows to automatically assign drive letters
to volumes that are added to the system.
DISABLE Prevents Windows from automatically assigning drive letters
to volumes that are added to the system.
SCRUB Removes mounted folder pathnames, drive letters, mounted
folder directories, and registry settings, for volumes that
are no longer in the system. This prevents volumes that were
previously in the system from being automatically assigned
their former drive letters and mounted folder pathnames when
they are reintroduced to the system.
NOERR For scripting only. When an error is encountered, DiskPart
continues to process commands as if the error did not occur.
Without the NOERR parameter, an error causes DiskPart to exit
with an error code.
When the AutoMount feature is enabled (the default on some versions
of Windows Server), Windows automatically brings the volume online,
and, assigns a drive letter and a volume GUID pathname to the volume,
when the volume is added to the system. In storage area network (SAN)
configurations, disabling AutoMount prevents Windows from automatically
onlining the volume and assigning drive letters or volume GUID pathnames
to any new volumes that are visible to the system.
Note that the AutoMount feature could only be applied to basic disk
volumes on Windows versions released prior to Windows Vista. Starting
with Windows Vista, the AutoMount feature can be applied to both basic
and dynamic disk volumes.
Example:
AUTOMOUNT
AUTOMOUNT ENABLE
AUTOMOUNT DISABLE
Enables or disables command line editing on DOS system This is present for Compatibility with DOS systems. It has no effect ...
Enables or disables Emergency Management Services (EMS) /emsbaudrate: Specifies the baud rate to use while transferring data. ...
Enables or disables Loopback Adsress Virtualization based on whether 1 or 0 respectively. The call returns 0 for success ...
Enables or disables SessionDirectory according as whether Value is set to 0 or 1 respectively. The call returns 0 for success ...
Enables or disables the automount feature. Syntax: AUTOMOUNT ENABLE DISABLE SCRUB NOERR ENABLE Enables Windows to automatically ...
Enables or disables the Offline Files feature. Inspect the RebootRequired parameter to determine if a reboot is required. ...
Enables or Disables the Terminal. The function takes one parameter, the flag thatenables or disables it. The call returns ...
Enables or disables UserAuthenticationRequired. The function takes one parameter - the flag that enables or disables it. ...
Enables or disables VirtualIP according as whether Value is set to 0 or 1 respectively. The call returns 0 for success and ...