How to run PostTrans Install - Cannot Access Exchequer Drive while Elevated

The PostTrans install needs to access Exchequer directory while elevated as Administrator. We have several options to overcome this problem listed below:

Why do I need to do this?

Since Windows Vista, 7, 8 and 10, extra user security was added to windows, to protect users from malware etc. The PostTrans install (PostTransInstall.exe) is run as Administrator by Windows in order to install. But when run as Administrator, the PostTrans install can no longer access Exchequer because the Mapped drive (X in our example) is not mapped for Administrator (the elevated user which the install is running as).

Answer 1 - Enable "Linked Connections" using Exchequer setup program (Recommended)

"Linked Connections" is a windows option (in group Policies see Answer 2 for more info) which enables the Administrator to see the same network connections as the user which has been elevated. It is enabled by Exchequer, on new installations, as part of the system requirements.

They provide a utility program called "Exchequer Server Setup.exe", which is run on Server and all PC's. This may be in the Exchequer directory or the "WStation" sub folder.


Then press [Do Stuff]. You may need to reboot

[Download this utility]


Answer 2 - Enable "Linked Connections" Group Policy on Server Manually

This can be done in a number of ways on the server. Please see:

Enable Linked Connections

Mapped drives are not available from an elevated prompt when UAC is configured to "Prompt for credentials" in Windows

Now reboot client PC's for change to take affect.


Answer 3 - Single use method

Press [Windows Key] + X, to access support menu.

Open DOS prompt as administrator "Command Prompt (Admin)"

Enter "Net use X: \\MyServ\ExchequerShare /persistent:YES ", where \\MyServ\ExchequerShare is the share on your server

Enter "X:" and return

Enter "Dir" and return

You should now see the exchequer directory, the same as you normally see it.

Enter "PostTransInstall.exe" to install, it should work fine if the correct drive has been mapped.


Answer 4 - Permanent method

Please follow the following steps:

Step 1) Does PostTransInstall_rightclick_run_as_administrator.BAT already exist in the Exchequer directory. If so go to step 5.

Write a batch file, which we will run as Administrator, to map the Exchequer drive and run the PostTrans install as Administrator. Recent versions of PostTrans install will attempt to create this file, and run it when needed, so please stick to the exact name of the batch file.

You may need to turn on "Show file extensions" on your PC, else you will not see the .BAT extension. see: How to show file extensions

Step 2) Create a batch file in the Exchequer directory called PostTransInstall_rightclick_run_as_administrator.BAT

Step 3) Edit it in notepad to say:

Net use X: \\MyServ\ExchequerShare /persistent:YES
cd exchSQL

where \\MyServ\ExchequerShare is the network share on your server. And X is the Exchequer drive and ExchSQL is the Exchequer directory. Your NAMES may be different

Step 4) Save the file

Step 5) Right click on the new batch file and select "Run as Administrator"