This small piece of code prompts for a new registered owner name, then updates the value in the Windows Registry. Note that this requires Administrator privileges.
#requires -RunAsAdministrator $NewName = Read-Host -Prompt 'Enter New Registered Windows Owner' Set-ItemProperty -Path 'HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion' -Name RegisteredOwner -Value $NewName -Type String
It serves as a template script for any change you may want to apply to the Windows Registry.