欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

vbscript 注冊表腳本書寫

 更新時間:2008年06月15日 20:46:46   作者:  
用vbscript實現(xiàn)的修改注冊表的腳本,建議大家看看
WScript.Echo "Enabling Kerberos Logging..."
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set StdOut = WScript.StdOut
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_ 
strComputer & "\root\default:StdRegProv")
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
'===============================================================================
'創(chuàng)建項的位置
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
'啟動創(chuàng)建項目的類型
'=====================================1'REG_SZ 字符串值==========================================
strValueName = "SysExplr"
'創(chuàng)建字符串的名稱
strValue = "d:\\Herosoft\\HeroV8\\SYSEXPLR.EXE"
'創(chuàng)建字符串的數(shù)據(jù)
oReg.SetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
'所創(chuàng)建的類型字符串
'=====================================2.REG_DWORD DWORD值===========================================
strValueName = "DWORD Value Name"
'創(chuàng)建DWORD名稱
dwValue = 82
'創(chuàng)建DWORD數(shù)據(jù)
oReg.SetDWORDValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,dwValue
'所創(chuàng)建類型DWORD
'=======================================3.REG_EXPAND_SZ 可擴充字符串值=========================================
strValueName = "Expanded String Value Name"
'創(chuàng)建擴充字符串名稱
strValue = "%PATHEXT%"
'字符串?dāng)?shù)據(jù)
oReg.SetExpandedStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
'所創(chuàng)建類型為擴充字符串
'========================================4.REG_MULTI_SZ 多字符串值=========================================
strValueName = "Multi String Value Name"
'創(chuàng)建多字符串名稱
arrStringValues = Array("first string", "second string","third string", "fourth string")
'創(chuàng)建多字符串值
oReg.SetMultiStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,arrStringValues
'所創(chuàng)建類型為多字符串值
'======================================================================================
oReg.DeleteKey HKEY_LOCAL_MACHINE, strKeyPath

strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath
WScript.Echo "-=[Complete!]=-"

相關(guān)文章

最新評論