Overblog
Suivre ce blog Administration + Créer mon blog

VBS: REGEDIT: Get valuename for valuevalue

Publié le par damcuvelier

dim strComputer : strComputer = "." dim oReg dim value,valeur '// Registry variables: const HKEY_LOCAL_MACHINE = &H80000002 dim strKeyPath : strKeyPath = "" Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer &...

Lire la suite

vbs: Regedit : rename strKeyPath => strKeyPath & ".old"

Publié le par damcuvelier

rename = copy/rewrite/delete 'save of key : key.old oReg.createKey HKEY_LOCAL_MACHINE, strKeyPath & ".old" 'rewrite all value into new key oReg.EnumValues HKEY_LOCAL_MACHINE, strKeyPath, arrayValueNames, arrayValueTypes For i=0 To UBound(arrayValueNames)...

Lire la suite