/PS-DriveLetterKeeper

PowerShell script used to automatically re-mount volumes (such as those on rotating backup drives) to the same drive letter.

Primary LanguagePowerShellBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

PS-DriveLetterKeeper

PowerShell script used to automatically re-mount volumes (such as those on rotating backup drives) to the same drive letter.

User Variables

All settings are stored in DriveLetterKeeper.xml

Target Drive Letter:
The drive letter you wish all disks in the set to maintain when mounted.
Example: DriveLetter = "v:"

Label Prefix:
The portion of the volume label shared by all disks in the set (This will be used to identify the volume to remount).
Example: LabelPrefix = "Backup"

Total Drives:
The total number of disks in the set:
Example: TotalDrives = "2"

Erase New Drive:
Erase the newly re-mounted volume:
Example: EraseNewDrv = "True"

Create Root Directory:
Create a folder by this name on the root of the re-mounted volume (Requires EraseDrive = "True"):
Example: MakeRootDir = "VeeamBackup"

Skip Prompts:
Execute script, with selected options, without prompting the user (unattended):
Example: SkipPrompts = "False"

Naming Convention

All volumes must be labeled with the text string defined in the Label Prefix variable, followed by a number (01 through 24). Example: Backup01, Backup02, ... , Backup12, etc.

Resources

List of resources used while building this script: