'Change Owner Name and Company Name

Dim WshShell, ObjShell, h, p1, p2, m, j, pm, jm
Dim sMsg, sInput, sDone

If WScript.Arguments.Count = 0 Then
Set ObjShell = CreateObject("Shell.Application") 
ObjShell.ShellExecute "wscript.exe",  """" & _
WScript.ScriptFullName &  """" & " RunAsAdmin", , "runas", 1 
Else

sMsg = "This script will Change Owners Name and Company." & vbCr & vbCr _
 & "Adding information can unintentionally change or delete values and cause components to stop working correctly." _
 & "  If you do not trust the source of this information, do not add it to the registry."  & vbCr  & vbCr _
 & "Would you like to continue?" 

sInput = MsgBox(sMsg, vbYesNo + vbInformation, "Paul's XP and Vista Tweaks")
If sInput = vbYes Then 

Set WshShell = WScript.CreateObject("WScript.Shell")

p1 = "HKLM\Software\Microsoft\Windows NT\CurrentVersion\" 

m = WshShell.RegRead(p1 & "RegisteredOwner")
j = WshShell.RegRead(p1 & "RegisteredOrganization")
h = "Change Owner and Company Name"
pm = InputBox("Type new Owner's name and click OK." , h, m)
If pm <> "" Then
WshShell.RegWrite p1 & "RegisteredOwner", pm

End If

jm = InputBox("Type new Company Name and click OK.", h, j)
If jm <> "" Then
WshShell.RegWrite p1 & "RegisteredOrganization", jm

sDone = "Name has been Changed!" & vbCr & vbCr _
 & "This script was downloaded from www.paulsxp.com."
MsgBox sDone , 64 ,"Paul's XP and Vista Tweaks"
End If
End If
End If