Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

How to delete a Key of registry by VBScript?

$
0
0

How to delete a Key of registry by VBScript? like the strValueName under Software\Microsoft\Office\15.0\Lync\ConfAddin\test@contoso.com.cn.

---------------------------------------------------

Const HKEY_CURRENT_USER = &H80000001

strComputer = "."

Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
DIM strValueName, strValue
strKeyPath = "Software\Microsoft\Office\15.0\Lync\ConfAddin\test@contoso.com.cn"
strValueName = "UserSetting


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>