'Change Owner Name and Company Name

Dim WshShell, h, p1, p2, m, j, pm, jm, sMsg
Dim sInput, sDone

Set WshShell = WScript.CreateObject("WScript.Shell")

sMsg = "This script will Change Owners Name and Company." & vbCr & vbCr _
& "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, Vista and Windows 7 Tweaks")
If sInput = vbYes Then 

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, Vista and Windows 7 Tweaks"
End If
End If

