Becky here is a UDF version that I just posted that can easily be used for the local computer or a remote computer as an Admin script.

ChangeOwner() - Change registered User and Owner for OS