Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Sample Script for setting permissions?


  • Please log in to reply

#1
BlutoniumBoy

BlutoniumBoy

    Member

  • Member
  • PipPip
  • 19 posts
Last week I inquired about how to pull a list of all folders from a shared network drive.

After comparing the list of all users folders to the users listed in Active directory, out of 2,100 users I have a list of 568 people who are without home drives. This was done with simple queries in Excel. I used simple Visual Basic program that created all 568 folders, now I need to set the permissions for all these folders using a script that can pull the user IDs from the spreadsheet and apply the proper permissions to each folder.

I seriously need to look into taking some scripting classes and after this little project, I think I will.

Any help till then would be greatly appreciated.

Edited by BlutoniumBoy, 20 December 2006 - 09:46 AM.

  • 0

Advertisements


#2
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
well...the easiest way to do this would have been through active directory users and computers....

you would right click on the user and choose the profile tab and set the "home folder" option to point to that folder on the proper server
(i.e. connect U: to \\servername\usersfolders\user'sfolder)
  • 0

#3
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
as a note...this would have also created the user's folders for you if they didn't exist
  • 0

#4
BlutoniumBoy

BlutoniumBoy

    Member

  • Topic Starter
  • Member
  • PipPip
  • 19 posts
Well giving the fact we had no idea who had home folders, who shouldn't have them (i.e. Vendor accounts), and would didn't... this was not possible. However, you are correct, this would have been easier if possible.

In any event a script is still needed, otherwise I would be here all week applying permissions for 568 users >.<

Edited by BlutoniumBoy, 20 December 2006 - 10:09 AM.

  • 0

#5
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
http://www.experts-e...Q_21019361.html

might give that a read?

http://support.microsoft.com/kb/135268
http://support.microsoft.com/kb/318754
and maybe those two
  • 0

#6
BlutoniumBoy

BlutoniumBoy

    Member

  • Topic Starter
  • Member
  • PipPip
  • 19 posts
Thanks for the links, dsenette. I will look into trying these methods. Not sure how yet I can do this but I will figure it out.
  • 0

#7
dsenette

dsenette

    Je suis Napoléon!

  • Administrator
  • 26,019 posts
  • MVP
i think it's going to be pretty difficult to do it all at once...since (i would assume) you're wanting standard "users folder" type permissions (i.e. only the user it belongs to and the administrators have access to it)
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP