this is my script but it does not delete the strvalue.
Option Explicit
Const HKEY_LOCAL_MACHINE = &H80000002
Dim strComputer
Dim objRegistry
Dim strKeyPath
Dim strValueName
Dim strValue
Dim arrValues
Dim intValue
strComputer = "."
Set objRegistry=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\default:StdRegProv")
'Get String value
strKeyPath = "Software\Microsoft\Windows NT\CurrentVersion\Windows"
strValueName = "AppInit_DLLs"
strValue = "PGPmapih.dll"
objRegistry.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
'Delete String value
strKeyPath = "Software\Microsoft\Windows NT\CurrentVersion\Windows"
strValueName = "AppInit_DLLs"
objRegistry.DeleteValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue