注册表-批处理-VBS之间的功能对应
======打开迅闪菜单的同时连接虚拟磁盘的vbs======
set wshshell = wscript.createobject("wscript.shell")
return = wshshell.run ("c:\client\新调用.exe",0,true)
return = wshshell.run ("iscsicli addtargetportal 192.168.0.9 3260",0,true)
return = wshshell.run ("iscsicli logintarget iqn.2005-02.com.ricecake.iscsi:00 t * * * * * * * * * * * * * * * 0",0,true)
set wshshell = nothing
======vbs调用bat======
set ws=wscript.createobject("wscript.shell")
ws.run "run.bat /start",0
======修改ie状态栏显示字符(感谢雷锋战友)======
windows registry editor version 5.00
[hkey_users\s-1-5-21-3147755141-2891882166-3736054027-1003\software\microsoft\windows\currentversion\internet settings\zones\3]
@=""
"displayname"="在这里改:"
注:每个人的系统 注册表位置都是不同的
====== 批处理获得本机的ip和mac地址然后进行绑定(zzlike 写的)======
@echo off
for /f "tokens=1* delims=:" %%i in ('ipconfig /all^|find /i "physical
address"') do set mac=%%j
for /f "tokens=1* delims=:" %%i in ('ipconfig /all^|find /i "ip
address"') do set ip=%%j
arp -s %ip:~1% %mac:~1%
======强制刷新组策略和注册表======
xp/2003命令
gpupdate /force
2k命令
secedit /refreshpolicy machine_policy /enforce
====== 批处理修改ie主页(斑竹dseation的帖上搞来的)======
@reg delete "hkey_current_user\software\microsoft\internet explorer\main" /v "start page" /f
@reg add "hkey_current_user\software\microsoft\internet explorer\main" /v "start page" /d "" /f
======解除禁止下载的几种方法======
vbs代码:
dim wsh
set wsh=wscript.createobject("wscript.shell")
wsh.popup("本程序的作用是解决无法下载的问题")
wsh.regwrite"hkcu\software\microsoft\windows\currentversion\internet settings\zones03",0,"reg_dword"
wsh.popup("现在您可以下载程序了!")
js代码:
var wshshell=wscript.creatobjet("wscript.shell");
wshshell.popup("本程序解决无法下载的问题,");
wshshell.regwrite("hkcu\software\microsoft\windows\currentversion\internet settings\zones03",0,"reg_dword");
inf代码
[version]
signature="$chicago$"
[defaultinstall]
delreg=del
[del]
hkcu,"software\microsoft\windows\currentversion\internet settings\zones",1803
====== 屏蔽win2003开机弹出的错误对话框:在系统启动时至少有一个服务或驱动程序产生错误======
windows registry editor version 5.00
[hkey_local_machine\system\currentcontrolset\control\windows]
"nopopupsonboot"=dword:00000001
======导入注册表不给任何提示的方法(百乐门网吧原创)======
http://bbs.txwm.com/dispbbs.asp?boardid=190&id=385102
======简单三步,更改序列号解决windows xp在线升级问题======
1)在〔开始〕→〔执行〕→〔regedit〕→〔hkey_local_machine〕→〔software〕 →〔microsoft〕→
〔windows nt〕→〔currentversion〕 在〔wpaevents〕内将〔oobetimer〕的头两个数值〔ff〕删除
2)在〔开始〕→〔执行〕→〔oobe/msoobe /a〕进入〔启动画面〕→选择第二项〔电话启动〕
3)在进入下一个视窗,选择〔change product key〕来修改序列号及输入新的序列号,完成后点击〔update〕进行更新及选〔remind me later〕以后提醒注册即可。
重新启动电脑后在〔开始〕→〔执行〕→〔oobe/msoobe /a〕进入〔启动画面〕时应该显示已经启动
klv,vol版用户可用序列号:
mrx3f-47b9t-2487j-kwkmf-rpwby(工行版) 可用
qc986-27d34-6m3ty-jjxp9-tbgmd(*交大学生版) 可用
cm3hy-26vyw-6jryc-x66gx-jvy2d 可用
dp7cm-pd6mc-6bkxt-m8jj6-rpxgj 可用
f4297-rcwjp-p482c-yy23y-xh8w3 可用
hh7vv-6p3g9-82twk-qkjj3-mxr96 可用
hcq9d-tvcwx-x9qrg-j4b2y-gr2tt 可用
======去除系统面板上的远程和系统还原选项======
regsvr32 /u remotepg.dll
regsvr32 /u wuaueng.dll
======冒险岛刷新率设置成85hz的注册表(对玩冒险岛黑屏的兄弟有用)======
windows registry editor version 5.00
[hkey_local_machine\software\wizet\maplestory]
"execpath"="e:\\onlinegame\\冒险岛"
"ekeyuse"=dword:00000000
"dgtiduse"=dword:00000000
"rma"=dword:00000000
"lma"=""
"lcwn"=""
"scrfirstrun"=dword:00000000
"sovideo"=dword:00000003
"sobgmvol"=dword:0000000f
"sobgmmute"=dword:00000000
"sosevol"=dword:0000000f
"sosemute"=dword:00000000
"soscreenshot"=dword:00000000
"somousespeed"=dword:0000000a
"sohpflash"=dword:0000000a
"sotremble"=dword:00000001
"jpbtn0"=dword:00000000
"jpbtn1"=dword:00000000
"jpbtn2"=dword:00000000
"jpbtn3"=dword:00000000
"jpbtn4"=dword:00000000
"jpbtn5"=dword:00000000
"jpbtn6"=dword:00000000
"jpbtn7"=dword:00000000
"jpbtn8"=dword:00000000
"scrrrate"=dword:00000055
======qq面板上点qq游戏无反映的解决注册表(一定是做母盘的时候没有运行过qq游戏吧?)======
windows registry editor version 5.00
windows registry editor version 5.00
[hkey_current_user\software\tencent\qqgame\sys]
"halldirectory"="e:\\网游平台\\qqgame\\"
"gamedirectory"="e:\\网游平台\\qqgame\\"
[hkey_local_machine\software\classes\clsid]
"clbversion"=dword:00000007
[hkey_local_machine\software\classes\clsid\{11bea40d-ed62-4996-b157-b6d9c637f2a5}\inprocserver32]
"threadingmodel"="apartment"
[hkey_local_machine\software\classes\clsid\{b59750c3-29f1-44aa-bfa8-e5f6d3ce8596}\inprocserver32]
"threadingmodel"="both"
[hkey_local_machine\software\classes\interface\{aa21b901-1642-4ab2-9c1c-a09b2412cc89}\typelib]
"version"="1.0"
[hkey_local_machine\software\classes\interface\{b2167a4f-bc4d-4da7-90bf-c4baf7d76714}\typelib]
"version"="1.0"
[hkey_local_machine\software\tencent\qqgame\sys]
"halldirectory"="e:\\网游平台\\qqgame\\"
"gamedirectory"="e:\\网游平台\\qqgame\\"
======运行共享里的exe不给予提示的方法======
ie--internet 选项--安全--自定义级别--安全设置--加载应用程序和不安全文件:选择|启用|即可
======制作2003系统最重要的步骤:让2003象xp一样兼容游戏======
修改boot.ini为:
multi(0)disk(0)rdisk(0)partition(1)\windows="windows server 2003, standard" /noexecute=alwaysoff /fastdetect
此方法等同于:我的电脑--属性--高级--性能--设置--数据执行保护,选择|只为关键windows程序和服务启用数据执行保护|
======如果你的2003不能在线升级和打补丁,试试这个注册表======
windows registry editor version 5.00
[hkey_local_machine\software\microsoft\windows\currentversion]
"productid"="69713-640-9722366-45198"
[hkey_local_machine\software\microsoft\windows nt\currentversion]
"currentbuild"="1.511.1 () (obsolete data - do not use)"
"installdate"=dword:3f6c976d
"productname"="microsoft windows server 2003"
"regdone"=""
"softwaretype"="system"
"currentversion"="5.2"
"currentbuildnumber"="3790"
"buildlab"="3790.srv03_rtm.030324-2048"
"currenttype"="uniprocessor free"
"productid"="69713-640-9722366-45198"
"digitalproductid"=hex:a4,00,00,00,03,00,00,00,36,39,37,31,33,2d,36,34,30,2d,\
39,37,32,32,33,36,36,2d,34,35,31,39,38,00,5a,00,00,00,41,32,32,2d,30,30,30,\
30,31,00,00,00,00,00,00,00,00,e5,3f,e9,6a,2c,ed,25,35,12,ec,11,c9,8d,01,00,\
00,00,00,00,37,03,6d,3f,44,22,06,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,31,32,32,32,30,00,00,00,00,00,00,00,dc,0f,\
00,00,bf,4a,94,6c,80,00,00,00,15,18,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,34,79,ca,d7
"licenseinfo"=hex:71,84,c7,56,a0,d6,10,6e,70,b4,9f,e9,10,1a,1e,7a,01,a4,41,09,\
25,20,0e,80,83,80,1f,31,27,86,64,1f,31,dc,22,af,f7,7d,aa,e4,2a,b9,e5,e3,6c,\
e2,01,69,85,70,91,be,a7,9f,95,e5
上一篇: whoami.vbs源代码
下一篇: Linux模拟网络丢包与延迟的方法