<img alt="" src="https://secure.inventive52intuitive.com/789747.png" style="display:none;">
Mapping drives in AppSense Environment Manager

Mapping drives in AppSense Environment Manager

Posted by HTG

A feature of Windows Server 2008 R2 is the ability to give mapped drives a more “friendly” name for your users. It makes more sense for them to see “Financial data drive” rather than “Findata on FIN001” or “\\FIN001\Findata”. You can also set a friendly name in Group Policy Preferences when using the Map Drive function (see image below), so it would be a boon if we could instantiate the same option in AppSense Environment Manager.

It’s easy to find the way to do this in GPP, so to keep everything under one roof, we need to get a way to do it inside of Environment Manager
How then do we do this in EM itself then? Well, we have two options. The first is to use the Registry. To start, you’ll need to create your Drive Mapping Action

Then you need to create a Set Registry Value Action nested inside your Drive Mapping Action. The value should be created as follows

where ServerName is the name of the file server,
and SharName$ is the name of the share,
and Display Text is the friendly name you wish to show to the users

If you configure everything correctly, you should see your drive mapped something like this

The second option is to use a VBScript which you can call through Actions | Custom & Execute | Custom Action. Again, you’ll need to nest this action inside your Drive Mapping Action. The script you’ll need to use is shown below. As above, replace Display Text with the friendly name you wish to show to the users

On Error Resume Next
Set objShell = CreateObject(“Shell.Application”)
objShell.NameSpace(“F:”).Self.Name = “Display Text”
objShell.NameSpace(“K:”).Self.Name = “Display Text”
If Err = 0 Then
Wscript.Quit 0
Else
Wscript.Quit 1
End If

Either of the above two options should suffice to allow you to use friendly names for drive mappings, until AppSense provide us with a version of Environment Manager that does it natively.

Contact

Want to partner with us?

Get in touch to learn more about our services or arrange a free 30-minute consultation with one of our Secure Cloud Experts.

Get in touch
HTG - Contact CTA