Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

HI All,

I have a issue where I want to create a script (VB or Batch file) that when a user runs the script it will copy files from Folder1 to Folder2.

Here's the rub.

I don't want the users to have access to Folder2, I need them to run the scipt so they can't move files in manually and it does a bit of logging as well.

I have two ideas but don't know how feasible they are:

  1. The user calls the script but it runs under different permissions. How would I do this without the user seeing the account details.

  2. The user runs a scipt that runs a scheduled job on the server. The scheduled job would then run under different privileges but the users don't have access to the server so there may be an issue running a scheduled task.

Any other ideas would be grateful.

THanks in advance


share|improve this question

Folder2 may be shared with deny access to users, and the script mounts the share with custom credentials move files than disconnect the share.

There a trick for hiding network mapped drives on windows with the NoDrives dword at HKCU\Software\Microsoft\Windows\ CurrentVersion\Policies\Explorer.

PS: You can compile your .bat script with bat2exe to avoir users seeing the file content. AutoIT script may do the job also.

EDIT: See this article for configuring the NoDrives Dword Value.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.