Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have just reinstalled a PC with Windows 7 RTM (previously was RC).

The PC had a second hard disk, with various permissions set for the two local user accounts.

After reinstalling the two user's SIDs obviously no longer exist, so they show up as unknown SIDs in the folder security permissions tab.

I would like to know if there is a standard technique or utility/script to allow me to basically scan over the hard disc and update all old SIDs to new SIDs (assuming I know which SID belonged to who), so I don't have to manually reset all the permissions.

Thanks, Jack

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

You should be able to use icacls.exe to replace all instances of one SID with another:

C:\Users\reubeno>icacls /?
...
ICACLS directory [/substitute SidOld SidNew [...]] /restore aclfile
                 [/C] [/L] [/Q]
    applies the stored DACLs to files in directory.
...
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.