Link to home
Start Free TrialLog in
Avatar of jasonskaggs
jasonskaggsFlag for United States of America

asked on

Script to add a user to security setting

Can anyone help me with a quick script? I need to add 1 user with full permissions to all the files and folders in our company file structure without removing the security that is in place. I'm not good with scripts and don't know where to start.
Avatar of Ashish Patel
Ashish Patel
Flag of India image

You mean a VB script for adding user into ADSI?
Avatar of jasonskaggs

ASKER

No this would be an existing user. We have a corporate folder structure comprised of thousands of files and folders with little security inheritance. I need this user to have full security rights to all files and folders.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Htis works well, however when i run into a file i don't have access to it stops and i have to take ownership which removes the other permissions. Is there anyway past that?
Avatar of oBdA
oBdA

Only the obvious one: use an account that has permissions to all folders.
This is one of the reasons two accounts should have Full permissions on all folders: System and the local Administrators group.
Thanks i've just been taken ownership. To many people think they are being smart and more secure by removing the system accounts on thier personal folders.