Jump to content

How to change the Registration name?


Nerwin

Recommended Posts


This can be done with some simple vb script:

Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."

Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")

strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion"

strEntryName1 = "RegisteredOwner"
strEntryName2 = "RegisteredOrganization"

strValue1 = "User"
strValue2 = "Organization"

objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strEntryName1,strValue1
objReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strEntryName2,strValue2

Edited by cluberti
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...