Okay, I think I have discovered the issue and it appears that not all objects were being treated the same with respect to whether it affected the host system or not. This Approach...
See more...
Okay, I think I have discovered the issue and it appears that not all objects were being treated the same with respect to whether it affected the host system or not. This Approach will write to the host system registry regardless of the isolation Sub SetStringKey_HKLM(KeyPath,KeyName,Value) const HKEY_LOCAL_MACHINE = &H80000002 Computer = "." Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}! " & Computer & "\root\default:StdRegProv") oReg.SetStringValue HKEY_LOCAL_MACHINE,KeyPath,KeyName,Value End Sub This approach seems to operate inside the context of the virtual bubble Sub SetStringKey_HKLM(KeyPath,KeyName,Value) Set WSHShell = CreateObject("Wscript.Shell") WSHShell.RegWrite "HKEY_LOCAL_MACHINE\" & KeyPath & "\" & KeyName, Value,"REG_SZ" End Sub