VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Prompt to enter a new Windows user name and then change it in the registry.

by Nathan (7 Submissions)
Category: Registry
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Fri 25th August 2000
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Prompt to enter a new Windows user name and then change it in the registry.

Rate Prompt to enter a new Windows user name and then change it in the registry.



Set WSHShell = WScript.CreateObject("WScript.Shell")

inpName = inputbox("Please enter the 'Current Username':")

WSHShell.RegWrite "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Current User", inpName, "REG_SZ"

Download this snippet    Add to My Saved Code

Prompt to enter a new Windows user name and then change it in the registry. Comments

No comments have been posted about Prompt to enter a new Windows user name and then change it in the registry.. Why not be the first to post a comment about Prompt to enter a new Windows user name and then change it in the registry..

Post your comment

Subject:
Message:
0/1000 characters