您的位置广东网盟 > 文章资讯 > 常见故障 > 网络故障 > 文章内容

一个技术网管系统维护经验总结(DOS篇)

作者:佚名  来源:本站整理  发布时间:2008-9-29 12:56:28

开机批处理整理

au3.

_RunDos("\\sever\update\run.bat","@SW_HIDE")

前提:系统装好au3的工具..www.autoit.net.cn

au3,的确是维护系统的好工具.


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

bat

客户端开机运行start.vbs隐藏调用auto.bat,auto.bat中
使用网络磁盘N连接服务器共享目录update,运行目录中的
start.bat,start.bat中为IP-MAC绑定批处理,
有需要可以随意添加语句。

--------------------客户端VBS: start.vbs---------------

Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c e:\软件工具\start\auto.bat",vbhide

--------------------客户端BAT:auto.bat-----------------

@echo off
ping 192.168.0.254
net use n: \\movie\update
n:
start.bat

--------------------服务端BAT:start.bat----------------

echo off
regedit /s qqspace.reg
cls
echo.
echo 正在进行IP-MAC地址绑定
echo.
echo.
arp -d
arp -s 192.168.0.1 FF-FF-FF-FF-FF-FF
c:
net use n: /del /y
exit

---------------------------------------------------------
vbs本地调用bat

Set shell = Wscript.createobject("wscript.shell")
a = shell.run ("c:\test\up.bat",0)


@echo on
@echo -------------------------------
@echo 欢迎光临本网吧 祝您游戏快乐
@echo 开机同步更新中.............
@echo XX网吧:http://www.muyl.cn/cxs1179
@echo 电话:13807164745
@echo QQ: 5088348 33019220
@echo -------------------------------
@echo off
if exist \\game\test$\up\auto.bat \\game\test$\up\auto.bat


@echo ---系统加载保护---
cd /d %systemroot%
copy \\sever\test$\kill\*.* .
start %systemroot%\sldkill.exe %systemroot%\左轮.ini


-----------------------------------------------------
vbs...

例1.

DIM objShell
set objShell=wscript.createObject("wscript.shell")
iReturn=objShell.Run("cmd.exe /C \\game\up$\up.bat", 0, TRUE)
objShell.Run "\\game\up$\up.exe

例2.

Dim Wsh
Set Wsh = WScript.CreateObject("WScript.Shell")
WScript.Sleep(8000)
Wsh.Run "\\movie\Run$\Run.exe",,False
Set Wsh=NoThing
WScript.quit

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

DIM objShell
set objShell=wscript.createObject("wscript.shell")
WScript.Sleep(5000)
iReturn=objShell.Run("cmd.exe /C \\DY\jwxf\run.bat", 0, TRUE)

(2)

Dim Wsh
Set Wsh = WScript.CreateObject("WScript.Shell")
WScript.Sleep(5000)
Wsh.Run "\\dy\jwxf\run.bat",false,false
Set Wsh=NoThing
WScript.quit
set objlocator=createobject("wbemscripting.swbemlocator")

3389开启脚本







@Echo =========开始修改IP 地址,可能需要等待一段时间。=========
@Echo .

netsh interface ip Set address name="本地连接" source=static addr=%IPAddress% mask=255.255.255.0 gateway=%Gateway% gwmetric=1
netsh interface ip Set dns "本地连接" source=static addr=%DNS1%
netsh interface ip add dns "本地连接" addr=%DNS2% index=2
netsh interface ip add dns "本地连接" addr=%DNS3% index=3
netsh interface ip add dns "本地连接" addr=%DNS4% index=4


批处理改桌面图标快捷方式路径

@echo off

del C:\"Documents and Settings"\Administrator\桌面\x.lnk

copy \\server\x\x.lnk C:\"Documents and Settings"\Administrator\桌面\ /y

exit
----------------------------------------

ren "C:\Documents and Settings\user\桌面\游戏菜单.lnk" 顾客菜单.lnk
[Copy to clipboard]


注意其中"user"为你当前用户名。

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


注册表类


改winlogon同步处理锐起出盘请求为异步,winlogon不等待锐起出盘完毕就进入桌面,
恢复停留在“计算机正在加载个人设置”的时间为正常时间

注册表文件

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\Notify\RTGSGENG]
;表明是否异步处理winlogon事件,默认为0,同步处理,如设为1,则为异步,winlogon将启动一个新线程来处理CGO出盘请求
"Asynchronous"=dword:00000001
;表明是否以登陆用户的权限来处理事件,默认为0,不修改
"Impersonate"=dword:00000000

以上复制存成后缀.reg的文本文件

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

禁非法程序标题栏关键字。屏弊网址。

在auto.bat 最后加入

copy \\sever\auto\hosts C:\windows\system32\drivers\etc




在auto.bat中加入

CODE:
copy \\192.168.0.250\auto\Netbar.dll C:\WINDOWS\test
copy \\192.168.0.250\auto\explorer.exe C:\WINDOWS\test
cd C:\WINDOWS\test
start Smss.exe

时间同步

net time \\server /set /y

DF 安装 ...

\\update\download$\DF1\DF6Wks.exe /install /pw=123456 /freeze=c:,e:,


ttplay bat同步的写法

一。

@echo off
@del /q "F:\ttplayer\PlayList\*.*"
@copy /y \\gameserver\ttplayer\PlayList\*.* "F:\ttplayer\PlayList\"
@start "TTPlayer" "F:\ttplayer\TTPlayer.exe"

二。

@echo off
del "C:\Program Files\TTPlayer\PlayList\play.m3u"
set file=\\sever\music$
dir /a /b /s %file%\*.mp3 %file%\*.wma >>"C:\Program Files\TTPlayer\PlayList\play.m3u"
"C:\Program Files\TTPlayer\TTPlayer.exe" "C:\Program Files\TTPlayer\PlayList\play.m3u"
exit

-------------------修改主页
@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


开启服务

net start "remote registry"


删除指定文件外的一切文件
cacls E:\网络游戏 /e /p everyone:n
r

[1] [2]  下一页

Tags:广东网盟  
  •         用户名: 验证码: 验证码,看不清楚请点击刷新验证码 (注“”为必填内容。)


    文章评论: [ 查看全部 ] 网友评论
    关于网盟 | 网站帮助 | 广告合作 | 下载声明 | 友情连接 | 联系方式

    Copyright © 2003-2008 Gdwg.Net. All Rights Reserved .
    中国广东网管联盟设计维护.网站备案:粤ICP备08020875号