powershell scripts to verify/compare NTFS and shared permissions on the folders for source groups/users with target groups/users

If you have powershell scripts to do the following, would be great:

 verify/compare NTFS and shared permissions on the folders for source domain groups/users with target groups/users

In our scenario, the target forest users and groups have not been migrated, but recreated from scratch. Therefore they don't have sid history, linkage, etc. So, we are planning on migrating file server and need to verify that if group from source domain has access to SHARE then the target group/user should also have the same access to the share and same NTFS permissions. If the corresponding target group is not present, then I should see the validation fail message.

Here is example of group name in the source and corresponding group name in the target:
SOURCEDOMAIN\SecurityGroup1
TARGETDOMAIN\TRG_SecurityGroup1

The corresponding group in the target has the same name plus prefix "TRG" in front.

Thank you very much!
If such script is not possible, I was thinking then to get a script to export the permissions to excel.
creative555Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lionel MMSmall Business IT ConsultantCommented:
I use a batch file but I don't have it fully automated--still have lots of my interactions with it however you may find these two links helpful as I have been using them to slowly but surely trying to build my convert my script. I hope some other experts comes along and provides an already written script as all I can give you are these links  for DIY, sorry.
http://windowsitpro.com/powershell/managing-file-shares-windows-powershell

The Scripting Guy (great blog--has lots of other scripts here too)
http://blogs.technet.com/b/heyscriptingguy/archive/2010/09/16/how-to-use-powershell-to-create-shared-folders-in-windows-7.aspx
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
creative555Author Commented:
Perfect! Thank you very much!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.