2 Replies - 920 Views - Last Post: 23 July 2013 - 05:11 AM Rate Topic: -----

#1 mrkm1188  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 22-July 13

Create directory using Administrator credentials

Posted 22 July 2013 - 02:26 PM

Is there a way to create a folder based on certain credentials. I want users to be able to create a folder in a certain location on the network by running a VB app but they need administrator privilege's to create folders there. Is there such a function like CreateFolder(username, password, path) that creates the folder given the username and password? Or a simple way to make this happen? I've tried using impersonation but am lost and confused. Thank you

Is This A Good Question/Topic? 0
  • +

Replies To: Create directory using Administrator credentials

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 8909
  • View blog
  • Posts: 33,397
  • Joined: 12-June 08

Re: Create directory using Administrator credentials

Posted 22 July 2013 - 02:36 PM

Why does this folder (that you want to let everyone have create access to) have adin UAC locks on it? Seems... counter intuitive. Why not just fix the UAC level for the folder and skip the rest of the impersonation issue?
Was This Post Helpful? 0
  • +
  • -

#3 mrkm1188  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 22-July 13

Re: Create directory using Administrator credentials

Posted 23 July 2013 - 05:11 AM

We don't want user's to be able to create the folder's unless they use this program. We want to give them the ability to create the folder but only in this controlled environment.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1