How to mount a logical drive within a TSplus session
Este tutorial cubrirá los siguientes aspectos:
-
Comment déployer un script de connexion et avoir plusieurs scénarios de scripts de connexion.
-
Montar una carpeta específica dentro de una sesión desde el lado del cliente o del servidor.
Si desea publicar una carpeta en una unidad virtual lógica para sus usuarios, simplemente siga este procedimiento:
Prior to creating the script, open Windows Explorer and click on “Folder and search options.”
Then, click on the view tab and uncheck the box “Hide extensions for known types”:
Create a text document and modify the extension by naming it “logon.bat”:
Inside the file, enter for example this command to publish the Folder.exe folder:
subst Y: \tsclient\C\Users%USERNAME%\Documents
Then, on the start menu, type in gpedit.msc on the search taskbar. We are going to use local policy so that every user connecting to this server launches the script.
Accédez au menu de configuration de l'utilisateur, puis aux paramètres Windows, et enfin, aux Scripts (Connexion/Déconnexion). Double-cliquez sur le script de connexion, puis cliquez sur "Ajouter", puis sur "Parcourir".
Then, click on the “Show Files” button on the Logon Properties window and copy your logon.bat script into the path given by the Policy Editor, i.e.: “C:\Windows\System32\GroupPolicy\User\Scripts\Logon”
- You can copy this logon.bat file in C:\ProgramData if you want this script to be executed for all of your users.
- If you need a specific logon script for each user then copy the script in C:\Users\Username\AppData\Roaming
Now how do we make this Y drive appear in the user session? There are many ways to achieve this. You can create a new application within the admin tool and assign it to your users, doing so the shortcut will appear in the session.
If you connect to a session with mstsc.exe, don’t forget to go to the options menu, and on the Local Resources tab, under Local devices and resources, click on “More”, then check the box “Drives”.
If you want to assign this script only for non-admin users, follow this tutorial Si desea asegurar el acceso a una carpeta, consulte nuestra documentación para publicar un carpeta asegurada .