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:

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.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

The Scripting Guy (great blog--has lots of other scripts here too)

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!
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

From novice to tech pro — start learning today.