pete Posted October 25, 2006 Report Posted October 25, 2006 I've just moved users, their passwords and SIDs from an NT4 domain to a 2003 one, I backed up the files on the old DC/fileserver using microsoft backup and am now restoring on the new dc/fileserver. As the SIDs moved over ok, I was kind of expecting the permissions to reflect new domain membership, but they haven't (though they have retained old domain acls, and can use them - 2-way trust). Have I missed something? If not, is there an easy way to script ACL changes such that an acl with OLDDOMAIN\JoeBloggs is converted to NEWDOMAIN\JoeBloggs? Is it possible to script this kind of search and replace with acls? Sorry, I didn't rtfm before I posted - just noticed subinacl does have search and replace functionality.
djm968 Posted October 25, 2006 Report Posted October 25, 2006 It is possible to script ACL changes. I would write a script to set or remove permissions as required, something like this should do the trick for /f "Tokens=1,2 Delims=," %%a in (createusers.txt) do ( cacls "userhomefolderpath\%%a" /T /G "newdomain\%%a":F /e cacls "userhomefolderpath\%%a" /T /E /R "olddomain\%%a" ) To run this script you will need to export usernames from the active driectory to a txt file.
Ric_ Posted October 25, 2006 Report Posted October 25, 2006 Also read the thread at http://edugeek.net/index.php?name=Forums&file=viewtopic&t=3314 for a script that might do what you want
ajbritton Posted October 25, 2006 Report Posted October 25, 2006 Did you use ADMT to migrate user accounts? If you did, then the new user accounts should have the old SIDs in the SID History fields.
pete Posted October 25, 2006 Author Report Posted October 25, 2006 Thanks all, Since the permissions from the old domain are still there I dumped a list of users and groups and then just called subinacl to replace domain1\user with domain\user2. However, the permissions make no sense (in terms of who can access what), so I need to grab a deputy head and make them to write down who should have what. @ajbritton, Yeah, I did. I was expecting olddomain\account to be automatically translated into newdomain\account when I looked at file > properties > security, but it didn't happen. Migrating files from a ~ 10 year old file share is interesting.cn
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now