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.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!