CentreStack Support is frequently asked if it is possible for the CentreStack Windows Client to support multiple cloud drives to emulate the "mapped drives" that end users are accustomed to seeing in a typical Windows client-server environment. The CentreStack Windows Client does not support multiple cloud drives. However, the desired state can be achieved using a startup script that calls the Windows Subst.exe command.
Suppose an existing Windows server named FS01 has three CIFS shares that are mapped like this:
- NET USE R: \\FS01\HR
- NET USE S: \\FS01\Sales
- NET USE T: \\FS01\Support
In this example, CentreStack is deployed such that there is a Team Folder that corresponds to each CIFS share on FS01:
- HR --> \\FS01\HR
- Sales --> \\FS01\Sales
- Support --> \\FS01\Support
When the Windows client is connected the Team Folders are subdirectories of the cloud drive (M: by default):
- M:\HR (Team Folder)
- M:\Sales (Team Folder)
- M:\Support (Team Folder)
Note that a CentreStack Group Policy determines whether the " (Team Folder)" text is appended to the Team Folder name, but the policy is enabled by default. The group policy is Group Policy > Folder and Storage > Do not append '(Team Folder)' to published folder.
To create the same R:, S:, and T: drives on the CentreStack client, create a text file named StartUpCS.cmd like this:
SUBST R: "M:\HR (Team Folder)"
SUBST S: "M:\Sales (Team Folder)"
SUBST T: "M:\Support (Team Folder)"
Then in CentreStack's cluster manager, upload StartUpCS.cmd in Group Policy > Client Setting Manager > Client Startup Script.
In order to remove the substituted drives when the Windows client shuts down, create another text file named ShutDownCS.cmd like this:
SUBST R: /D
SUBST S: /D
SUBST T: /D
Then in CentreStack's cluster manager, upload ShutDownCS.cmd in Group Policy > Client Setting Manager > Client Shutdown Script.