When mapping a network drive in VMware Workstation using VMware Tools, it maps the drive, based on a Shared Folder, for only a Standard User. However, since InstallShield runs as an Administrator, the mapped network drive is inaccessible to the Administrator.
Having a mapped network drive for Standard users and Administrators is critical, because InstallShield users from companies with locked down environments are only given Administrator permissions on a VM in VMware Workstation.
VMware needs to update the VMware Tools in the VMware Workstation product.
To reproduce this issue, perform the following steps:
- With a Windows 10 virtual machine powered off, enable and configure Shared Folders in the Settings of the VMware VM.
- Configure the VM > Settings > Options > Shared Folders option, so that the host machine has a folder, for example, under the root of the C drive, that maps to a folder on a mapped network drive, automatically created by VMware Workstation.
- Log into the VM as the primary user, who is an Administrator, for example: Test
- Configure the VM > Settings > Options > Shared Folders option, so that the host machine has a folder, for example, under the root of the C drive, that maps to a folder on a mapped network drive, automatically created by VMware Workstation.
- Configure EnableLinkedConnections, on the Windows 10 VM, per the official Microsoft documentation by following the steps in the section titled Detail to configure the EnableLinkedConnections registry entry in the following article: Mapped drives are not available from an elevated prompt when UAC is configured to Prompt for credentials
- Open a command prompt not elevated to Administrator.
- Open a command prompt elevated to Administrator.
- Run the net use command in both command prompts. Note the following:
- In the non-elevated command prompt, the mapped network drive is listed.
- In the elevated command prompt, the mapped network drive is not listed.
- In File Explorer, the mapped network drive is accessible.
- In the Open dialog in InstallShield, the mapped network drive is not accessible.
Expected Result
The mapped network drive should be accessible, both in File Explorer and in InstallShield, as a Standard User and an Administrator.
Actual Result
The mapped network drive is only accessible to a Standard User, not the Administrator using InstallShield.
The workaround for this issue is as follows:
- Search for Task Scheduler on Windows search then open Task Scheduler.
- Right-click in the whitespace under the current scheduled tasks then select Create New Task (not Create Basic Task).
- Configure the following for the new scheduled task:
- Under the General tab, specify/perform the following:
- Name: my_network_drive_test1
- Example Author: <MACHINE NAME>\Test
- Description: This is a scheduled task to automatically map a network drive as an Administrator to make a Shared Folder accessible to the Administrator user running InstallShield.
- Select the radio button for Run only when user is logged on.
- Check the checkbox for Run with highest privileges.
- Select Configure for Windows 10 in the dropdown menu near the bottom of the dialog.
- Under the Triggers tab, specify/perform the following:
- Click New.
- Begin the task: At log on
- Select Specific user, for example, <MACHINE NAME>\Test
- Check Delay task for: 15 minutes
- Check Repeat task every hour for a duration of 1 day
- Make sure that the Enabled checkbox is checked.
- Under the Actions tab:
- Click New.
- Action: Start a program
- Program/script: Click the Browse... button. Browse to the test.bat file on the user's Desktop.
- Under the Conditions tab:
- Check the Start the task only if the computer is idle for 10 minutes checkbox.
- Select Wait for idle for: 1 hour
- Check the Stop if the computer ceases to be idle checkbox.
- Check the Start the task only if the computer is on AC power checkbox.
- Check the Stop if the computer switches to battery power checkbox.
- Under Settings:
- Check the Allow task to be run on demand checkbox.
- Check the Run task as soon as possible after a scheduled start is missed checkbox.
- Check the If the task fails, restart every 1 minute checkbox.
- Set Attempt to restart up to: 3 times
- Check the Stop the task if it runs longer than 3 days checkbox.
- Check the If the running task does not end when requested, force it to stop checkbox.
- Select If the task is already running, then the following rule applies: Do not start a new instance option from the dropdown menu.
- Under the General tab, specify/perform the following:
- Create a C:\test.bat, Windows batch file, with the following contents:
@ECHO OFF
net use Z: "\\vmware-host\Shared Folders" /persistent:yes
VMware needs to update the VMware Tools in the VMware Workstation product.
Related Articles
LM_SERVER_HIGHEST_FD - What is this and Why is it Needed? 11Number of Views How is InstallShield Multiplatform (ISMP) package evidence captured by FlexNet inventory agent? 21Number of Views Error "Wrong hostid on SERVER Line for License File, hostid is (Can't get hostid of type 15 []) When Locking to a Dongle" 18Number of Views Can Licenses be Activated Directly from Server Side Trusted Storage 9Number of Views What Is the InstallShield Wizard? 6Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago