Elevate user folder rights from an application

pgsmick

New Member
Joined
Apr 29, 2013
Messages
8
I have a VBA Excel-based timesheet program that allows employees to submit weekly timesheets. The application itself takes charge of creating each weekly timesheet and saving it to a specific network location (ActiveDirectory). At other times, the application also needs to be able to read and retrieve files from that folder. Users run the Excel application under their own credentials. Currently, all users have full rights to the folder so that the application can save and retrieve files there without any fuss.

The storage folder is difficult (but not impossible) for the typical user to find, but I would prefer to prevent all user access to that folder and still have the timesheet application be able to store files in that location.

What is the best way to do this reliably? Is there a way to elevate the application's network rights to an Admin level at the appropriate point(s) within the app (I do not mind including an elevated user's password within the application), and then drop them back to user level when the timesheet storage folder operations have completed?

Ideas about to do this or similar approaches would be greatly appreciated.

Thanks,
Peter.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Hello pgsmick,

Since Windows does not have built-in password protection for files and folders, you will need to use third party software. Winabilty Software offers Folder Guard for Windows 10, 8, 7, and XP.

You can check out the it's capabilities and cost Here
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,825
Messages
6,121,788
Members
449,049
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top