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.
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"
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..