Anybody have an example of how to write an octet string to a REG_SZ value?
A basic example of what I want to do:
The above appears to work, however the value in the registry displays as Chinese. Any help is greatly appreciated. This is my first time running into the octet-string and I have been unable to find any examples.
Regards,
Mark
A basic example of what I want to do:
Code:
On Error Resume Next
Const HKLM = &H80000002
strComputer = "."
Set objUser = GetObject _
("LDAP://cn=myerken,ou=management,dc=fabrikam,dc=com")
UserGUID = objUser.objectGUID
Set objReg = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")
strPath = "\SOFTWARE\Microsoft\Windows NT\CurrentVersion\" & _
"ProfileList\S-1-5-21-1443548379-341315552-1914419632-1108"
strName = "Guid"
objReg.SetStringValue HKLM, strPath, strName, UserGUID
The above appears to work, however the value in the registry displays as Chinese. Any help is greatly appreciated. This is my first time running into the octet-string and I have been unable to find any examples.
Regards,
Mark