I have a question i'm trying to copy the PC name witch is located in (HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlComputerNameComputerName) to a different registry key (HKEY_LOCAL_MACHINESOFTWAREIOLANSphereStation) but i can't get it to work.
I thought is should work with the script posted below but is doesn't it gives no error.
Set WshShell = Wscript.CreateObject("Wscript.Shell")
'Read the value of DefaultUserName :
reg = WSHShell.RegRead ("HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlComputerNameComputerNameComputerName")
'Replace the value with "Id" :
WshShell.RegWrite ("HKEY_LOCAL_MACHINESOFTWAREIOLANSphereStation"), "Id" ,"REG_SZ"
'Data Types :
As you probable already noticed i havent got that mutch experience with VBS Scripting.
I hope you guys can help me out al little.
Windows Xp Sp3
December 9, 2009 3:10 PM
December 18, 2009 12:48 AM