Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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!

  • Community Leader
  • 26,047 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!

  • Community Leader
  • 26,047 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!

  • Community Leader
  • 26,047 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!

  • Community Leader
  • 26,047 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