After spending half a day to create a Powershell script to set owner rights on the home folders of our users, I found out Powershell is unable to set owner permissions by showing the error “The security identifier is not allowed to be the owner of this object” every time.
So the Powershell script below won’t work for me and I decided to try it the old fashion way: cmd with icacls.
