PCbanter

PCbanter (http://www.pcbanter.net/index.php)
-   General XP issues or comments (http://www.pcbanter.net/forumdisplay.php?f=18)
-   -   Automation of Permissions (http://www.pcbanter.net/showthread.php?t=1019495)

Phyxious May 6th 08 09:13 PM

Automation of Permissions
 
I am trying to find an easy way to copy permissions on a local machine. We
are switching users from one domain to another so any files or folders
created by the user from the old domain will not be available to the same
user on the new domain.

Is there a program or a way to script, to search every file and folder's
permissions, and wherever Domain1\username is apply Domain2\username to those
files and folder with the same exact permissions??

If I am leaving anything out or you just don't understand what I am asking,
please do not hesitate to slap me :)


Pegasus \(MVP\)[_1059_] May 6th 08 10:27 PM

Automation of Permissions
 

"Phyxious" wrote in message
...
I am trying to find an easy way to copy permissions on a local machine. We
are switching users from one domain to another so any files or folders
created by the user from the old domain will not be available to the same
user on the new domain.

Is there a program or a way to script, to search every file and folder's
permissions, and wherever Domain1\username is apply Domain2\username to
those
files and folder with the same exact permissions??

If I am leaving anything out or you just don't understand what I am
asking,
please do not hesitate to slap me :)


Permcopy.exe (Windows Resource Kit) can be used when copying
permissions from one area to another. However, your case is different.
If I understand you correctly then you have created a new set of users
on the new domain, using the same account names as on the old domain.
In spite of the identical name, Windows would treat them as different
users, hence permcopy would not achieve the desired aim.

Dumpacl.zip from http://robot.pbwiki.com/UsefulTools includes the file
"SystemTools.exe" which lets you list the ACLs of all folders on a
partition. You could use this list as a basis for a script to duplicate
those same permissions on the new server. This is not a trivial task -
I estimate that it would take some three hours to write & test such
a program in VB Script.



Pegasus \(MVP\)[_1062_] May 6th 08 10:27 PM

Automation of Permissions
 

"Phyxious" wrote in message
...
I am trying to find an easy way to copy permissions on a local machine. We
are switching users from one domain to another so any files or folders
created by the user from the old domain will not be available to the same
user on the new domain.

Is there a program or a way to script, to search every file and folder's
permissions, and wherever Domain1\username is apply Domain2\username to
those
files and folder with the same exact permissions??

If I am leaving anything out or you just don't understand what I am
asking,
please do not hesitate to slap me :)


Permcopy.exe (Windows Resource Kit) can be used when copying
permissions from one area to another. However, your case is different.
If I understand you correctly then you have created a new set of users
on the new domain, using the same account names as on the old domain.
In spite of the identical name, Windows would treat them as different
users, hence permcopy would not achieve the desired aim.

Dumpacl.zip from http://robot.pbwiki.com/UsefulTools includes the file
"SystemTools.exe" which lets you list the ACLs of all folders on a
partition. You could use this list as a basis for a script to duplicate
those same permissions on the new server. This is not a trivial task -
I estimate that it would take some three hours to write & test such
a program in VB Script.




All times are GMT +1. The time now is 08:53 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2004 - 2006 PCbanter
Comments are property of their posters