无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 1334|回复: 5
打印 上一主题 下一主题

【讨论】非光盘集成 制作补丁批处理的研究

[复制链接]
跳转到指定楼层
1#
发表于 2007-8-28 17:39:40 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
老毛桃为我们制作的 SP2后补丁自动集成工具非常好用,这里要首先感谢老毛桃。不过作为补丁的自动集成安装 使用工具将补丁一起下载 然后存入移动U盘 硬盘安装 也是一种好办法至少对于没有刻录机进行光盘刻录的朋友是一个好选择。下面是其它两套 自动安装补丁的 源码 有什么问题希望能够和大家一起进行讨论@ECHO offSET TITLE=Windows 补丁安装脚本TITLE %TITLE%SETLOCAL ENABLEDELAYEDEXPANSIONSET PATCHFLAG=KBSET CAT=%PATCHFLAG%*.catSET PATCHLIST="%temp%\patcheslist.tmp"SET INSTALLED=√ 已安装SET NOTINSTALLED=× 未安装SET PATCH_TOTAL=0SET PATCH_NOTINSTALLED=0SET FLAG_INSTALLED=1*SET FLAG_NOTINSTALLED=0*:mainTITLE   正在搜索... -- %TITLE%ECHO   正在搜索当前目录"%cd%"及其子目录下的补丁...ECHO   如果想在搜索完成后立即安装未安装的补丁,请按回车。ECHO.REM 搜索补丁,没有搜索到则退出,否则继续。CALL :pfind || (call :error 1& goto :eof)ECHO.:confirmTITLE   请选择要安装的补丁 -- %TITLE%ECHO   搜索到如上%PATCH_TOTAL%个补丁,其中%PATCH_NOTINSTALLED%个未安装。安装全部请输入ALL,否则请直接按回车安装尚未安装的补丁。SET confirm=SET /p confirm=IF /i "%confirm%" == "ALL" (SET confirm=   ) ELSE IF not defined confirm (SET confirm=%FLAG_INSTALLED:~0,1%   ) ELSE GOTO confirmECHO.ECHO   正在安装,请稍候。安装程序不会抢占窗口焦点,所以你可以干点别的:)ECHO.call :setup %confirm%del %PATCHLIST% 2>nul >nulTITLE 安装已结束 -- %TITLE%ECHO.ECHO   安装已结束。要使补丁生效,你可能需要手动重新启动计算机。ECHO   按任意键退出。SET TITLE=ENDLOCALPAUSE >nulTITLE %ComSpec%goto :eofREM 安装补丁:setupif "%1" == "" (set patchsum=%PATCH_TOTAL%) ELSE set patchsum=%PATCH_NOTINSTALLED%set patch_counter=0FOR /f "eol=%1 usebackq tokens=2,*" %%i in (%PATCHLIST%) DO (    set /a patch_counter+=1    TITLE !patch_counter!/%patchsum%-%%i  -- %TITLE%    ECHO  %%i  !patch_counter!/%patchsum%    set nobackup=nobackup    echo %%i | find /i "%PATCHFLAG%8" 2>nul >nul && set nobackup=n    %%j /passive /norestart /!nobackup! 2>nul >nul)goto :eofREM 搜索当前目录下的补丁,返回非零值为失败。:pfindSET REG=HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UninstallSET listinreg="%temp%\listinreg.tmp"reg query %reg%>%listinreg%del %PATCHLIST% 2>nul >nulREM 补丁是一个压缩包FOR %%i in (*%PATCHFLAG%*.exe) DO CALL :pfind.sub %%~ni %%~fi %%~sfiREM 补丁在压缩包展开后的目录内FOR /r %%i in (%cat%) DO IF exist %%~dpiupdate.exe FOR /f %%j in ("%%~dpiupdate.exe") DO CALL :pfind.sub %%~ni %%~fj %%~sfjIF not exist %PATCHLIST% EXIT /b 1sort %PATCHLIST% /o %PATCHLIST%rem 得到补丁个数FOR /f "tokens=3 delims= " %%i in ('find /c /i "%FLAG_NOTINSTALLED%" %PATCHLIST%') DO SET PATCH_NOTINSTALLED=%%iFOR /f "tokens=3 delims= " %%i in ('find /c /i "%FLAG_INSTALLED%" %PATCHLIST%') DO SET /a PATCH_TOTAL=%%i + %PATCH_NOTINSTALLED%del %listinreg% 2>nul >nulIF not defined patch_total EXIT /b 2IF %patch_total% LSS 1 EXIT /b 3EXIT /b 0goto :eofREM 看看补丁安装了没,然后写到标准输出和%PATCHLIST%内:pfind.subIF "%3" == "" GOTO :eofCALL :getkbnum %1SET id=!errorlevel!IF not "!id!" == "-1" (   find /i "!id!" %listinreg% 2>nul >nul && (        set status=%FLAG_INSTALLED%& set isinstalled=%INSTALLED%   )||(set status=%FLAG_NOTINSTALLED%& set isinstalled=%NOTINSTALLED%)   ECHO !status! %PATCHFLAG%!id! %2>>%PATCHLIST%   ECHO  !isinstalled! %PATCHFLAG%!id! %3)goto :eofREM 返回给定字串中的KB号,返回-1表示失败。:getkbnumSETLOCAL ENABLEDELAYEDEXPANSIONSET str=%~1IF not defined str EXIT /b -1IF not defined PATCHFLAG SET PATCHFLAG=KBecho %PATCHFLAG%>getsize.tmpfor %%i in (getsize.tmp) do SET /a offset=%%~zi-2del getsize.tmp 2>nul >nulSET start=0REM 仅有%PATCHFLAG%则返回-1IF /i "%str%" == "%PATCHFLAG%" EXIT /b -1REM 删除%PATCHFLAG%前的字符,删除失败则返回-1:getkbnum.findkbIF "%1" == "!str!" (IF "!str:~%start%,%offset%!" == "" (EXIT /b -1    ) ELSE IF /i "!str:~%start%,%offset%!" == "%PATCHFLAG%" (SET str=!str:~%start%!    ) ELSE (SET /a start+=1 & goto getkbnum.findkb))REM 仅有%PATCHFLAG%则返回-1SET str=!str:~%offset%!IF "%str%" == "" EXIT /b -1SET start=0REM 保证%PATCHFLAG%后的第一个字符不是数字时,仍能返回-1IF "!str:~%start%,1!" GTR "9" EXIT /b -1IF "!str:~%start%,1!" LSS "0" EXIT /b -1REM 返回%PATCHFLAG%后的数字:getkbnum.findnumIF "!str:~%start%,1!" GTR "9" EXIT /b !str:~0,%start%!IF "!str:~%start%,1!" LSS "0" EXIT /b !str:~0,%start%!SET /a start+=1goto getkbnum.findnumENDLOCALEXIT /b -1:errorIF "%i" == "1" (ECHO 没有找到补丁。使用的搜索规则是:CAT:%cat%,PATCHFLAG:%PATCHFLAG%。程序已结束。& goto :eof)

[[i] 本帖最后由 cnn_5454 于 2007-8-29 12:06 PM 编辑 [/i]]

1.rar

1.88 KB, 下载次数: 97, 下载积分: 无忧币 -2

德国出品Windows XP自动补丁.rar

18.13 KB, 下载次数: 100, 下载积分: 无忧币 -2

2#
 楼主| 发表于 2007-8-28 17:41:24 | 只看该作者

德国人制作补丁 批处理a

@echo offclsrem Copyright (C) 2003-05 Ansgar Wiechers & Torsten Mannrem Contact: admin@ntsvcfg.deremrem This program is free software; you can redistribute it and/or modify it underrem the terms of the GNU General Public License as published by the Free Software Foundation;rem either version 2 of the License, or (at your option) any later version.rem This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;rem without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.rem See the GNU General Public License for more details.remrem You should have received a copy of the GNU General Public License along with this program;rem if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,rem MA 02111-1307, USA.echo.REM Tested on ... WinXP_SP2REM Always basic XP64 SupportREM Modifications to BITS service (cause of v5 WindowsUpdate) - #discharged#REM Additional notices corresponding to DHCP issueREM Variables problems during RESTORE_DEFAULT usage fixedREM SMBDEVICEENABLED Restore Bug fixedREM Mod_history-09-27-2005**11-08-2005**11-29-2005**12-07-2005**12-18-2005setlocalREM *** INIT_VARS ***set CHK_SVC=YESset XPSP2=FALSEset SERVER=FALSEset NT_SERVER_CHK=TRUE:STARTecho  "svc2kXp.cmd" v2.2_build7b (18.12.2005), published under GNU GPLecho  ================================================================set find=%SystemRoot%\System32\find.exeset regedit=%SystemRoot%\regedit.exeif not exist "%find%" goto :NOFINDif not exist "%regedit%" goto :NOREGEDITif not "%1" == "%*" goto :SYNTAXif /I "%1"=="/?" goto :HELPif /I "%1"=="/help" goto :HELPif /I "%1"=="-h" goto :HELPif /I "%1"=="--help" goto :HELPif /I "%1"=="-?" goto :HELPif /I "%1"=="--?" goto :HELPif /I "%1"=="/fix" goto :FIXgoto :VERSION:SYNTAXecho.echo.echo  !!Syntax error!!echo  ________________echo  Es kann nur ein oder kein Parameter angegeben werden.echo.echo  Only one or no parameter allowed.goto UIT:HELPecho.echo                                 -= Hilfe =-echo  Parameter:echo  /lan.......Einige Dienste fuer LAN-Betrieb werden nicht veraendert.echo  /std.......Schliesst alle Ports, einige Dienste bleiben unveraendert.echo  /all.......Setzt alle Vorschlaege nach www.ntsvcfg.de um (hardening).echo  /restore...Nimmt die zuletzt vorgenommenen Aenderungen zurueck.echo  /reLAN.....Reaktiviert Dienste, die fuer LAN-Betrieb benoetigt werden.echo  /default...Setzt alle Diensteinstellungen auf urspr黱gliche Werte zur點k.echo.echo  Parameters:echo  /lan.......Some services needed for LAN-usage stay unchanged!echo  /std.......Closes all Ports, but some services stay unchangedecho  /all.......Changes all issues recommended by www.ntsvcfg.de ("hardening")echo  /restore...Undo last changes.echo  /reLAN.....Reactivates services required for LAN.echo  /default...Restoring factory service settings (before first time usage)echo.echo  example: svc2kxp.cmd /allecho.set /P CHS= [Press "G" for GNU GPL informations or "Q" for quit]?if /I "%CHS%"=="G" goto :GNU_GPLif /I "%CHS%"=="Q" goto UIT_EXTCLSgoto :HELP:GNU_GPLCLSecho  Informations about GNU-General Public License for "svc2kxp.cmd"echo  ===============================================================echo.echo  Copyright (C) 2003-05 Ansgar Wiechers, Torsten Mannecho  Contact: admin@ntsvcfg.deecho.echo  This program is free software; you can redistribute it and/or modify it underecho  the terms of the GNU General Public License as published by the Free Softwareecho  Foundation; either version 2 of the License, or (at your option) any laterecho  version. This program is distributed in the hope that it will be useful, butecho  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY orecho  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for moreecho  details.echo.echo  You should have received a copy of the GNU General Public License along withecho  this program; if not, write to the:echo.echo  Free Software Foundation, Inc.echo  59 Temple Place, Suite 330echo  Boston, MA 02111-1307, USA.echo.set /P CHS= [Press "H" for help or "Q" for quit]?CLSif /I "%CHS%"=="H" goto :HELPif /I "%CHS%"=="Q" goto UIT_EXTgoto GNU_GPL:VERSIONecho  Checking system version ...if /I "%NT_SERVER_CHK%"=="FALSE" goto :SKIP_NT_SERVER_CHKREM Checking for running server version        "%regedit%" /e "%TEMP%\~svr.txt" "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ProductOptions"                 type "%TEMP%\~svr.txt"|"%find%" /i "Server" >NUL                if not errorlevel 1 set SERVER=TRUE                 type "%TEMP%\~svr.txt"|"%find%" /i "LanMan" >NUL                if not errorlevel 1 set SERVER=TRUE                if exist "%TEMP%\~svr.txt" del /F /Q "%TEMP%\~svr.txt"                if /I "%SERVER%"=="TRUE" goto :NTSERVER:SKIP_NT_SERVER_CHKver | "%find%"  /i "Windows 2000" > nulif not errorlevel 1 goto :OS2Kver | "%find%"  /i "Windows XP" > nulif not errorlevel 1 goto :OSXPver | "%find%"  /i "Microsoft Windows [Version 5.2.3790]" > nulif not errorlevel 1 goto :OSXP64echo  !!Failed!!echo  __________echo.echo  Dieses Script ist nur unter Windows 2000 oder XP lauffaehig!echo.echo  This script works only on Windows 2000/XP machines!echo.goto UIT:NOFINDecho.echo  !!Failed!!echo  __________echo.echo  Leider konnte folgende Datei nicht gefunden werden:echo.echo  Sorry, but following file is missing:echo.echo.echo  # %SystemRoot%\System32\FIND.EXEecho.echo.goto UIT:NOREGEDITecho.echo  !!Failed!!echo  __________echo.echo  Leider konnte folgende Datei nicht gefunden werden:echo.echo  Sorry, but following file is missing:echo.echo.echo  # %SystemRoot%\REGEDIT.EXEecho.echo.goto UIT:NTSERVERecho.echo  !!Failed!!echo  __________echo.echo  Dieses Script unterstuetzt keine NT Server Versionen!echo.echo  This script doesn't support NT server versions!echo.goto UIT:OS2Krem Specific OS Detection Iset SYSTEM=2krem Testing for XP ServicePacks        "%regedit%" /e "%TEMP%\~svclist.txt" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion"        type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 4" >NUL        if errorlevel==1 (                  type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 3" >NUL                  if errorlevel==1 (                        type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 2" >NUL                          if errorlevel==1 (                                type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 1" >NUL                                if errorlevel==1 (                                        echo  !Windows 2000 [no or unknown Service Pack] detected!                                        goto NO_2KSP                                        )                                echo  !Windows 2000 [Service Pack 1] detected!                                  goto :NO_2KSP                                )                        echo  !Windows 2000 [Service Pack 2] detected!                          goto :NO_2KSP                        )                echo  !Windows 2000 [Service Pack 3] detected!                goto :NO_2KSP                )        echo  !Windows 2000 [Service Pack 4] detected!        goto :NO_2KSP:NO_2kSPif exist "%TEMP%\~svclist.txt" del /F /Q "%TEMP%\~svclist.txt"goto :CONTINUE:OSXPrem Specific OS detection IIset SYSTEM=xprem Testing for XP ServicePack 2        "%regedit%" /e "%TEMP%\~svclist.txt" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion"        type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 2" >NUL        if errorlevel==1 (                  type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 1" >NUL                  if errorlevel==1 (                        SET XPSP2=FALSE                        echo  !Windows XP [no or unknown Service Pack] detected!                        goto NO_XPSP                        )                SET XPSP2=FALSE                  echo  !Windows XP [Service Pack 1] detected!                  goto :NO_XPSP                )        SET XPSP2=TRUE        echo  !Windows XP [ServicePack 2] detected!        goto :NO_XPSP:OSXP64rem Specific OS detection IIset SYSTEM=xprem Testing for XP ServicePack 2        "%regedit%" /e "%TEMP%\~svclist.txt" "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion"        type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 2" >NUL        if errorlevel==1 (                  type "%TEMP%\~svclist.txt"|"%find%" /i "Service Pack 1" >NUL                  if errorlevel==1 (                        SET XPSP2=FALSE                        echo  !EXPERIMENTAL! Windows XP64 [no or unknown Service Pack] detected!                        goto NO_XPSP                        )                SET XPSP2=FALSE                  echo  !EXPERIMENTAL! Windows XP64 [Service Pack 1] detected!                  goto :NO_XPSP                )        SET XPSP2=TRUE        echo  !EXPERIMENTAL! Windows XP64 [ServicePack 2] detected!        goto :NO_XPSP:NO_XPSPif exist "%TEMP%\~svclist.txt" del /F /Q "%TEMP%\~svclist.txt"goto :CONTINUE:CONTINUEREM Creating subdirectory "ntsvcfg" in userprofile if necessaryif not exist "%USERPROFILE%\ntsvcfg\*.*" mkdir "%USERPROFILE%\ntsvcfg"REM Moving old script backup files to ...\%USERNAME%\ntsvcfg :        if exist "%USERPROFILE%\dcom.reg" move /Y "%USERPROFILE%\dcom.reg" "%USERPROFILE%\ntsvcfg\dcom.reg"        if exist "%USERPROFILE%\dcomp.reg" move /Y "%USERPROFILE%\dcomp.reg" "%USERPROFILE%\ntsvcfg\dcomp.reg"        if exist "%USERPROFILE%\services.reg" move /Y "%USERPROFILE%\services.reg" "%USERPROFILE%\ntsvcfg\services.reg"        if exist "%USERPROFILE%\current_services_config.reg" move /Y "%USERPROFILE%\current_services_config.reg" "%USERPROFILE%\ntsvcfg\current_services_config.reg"        if exist "%USERPROFILE%\smb.reg" move /Y "%USERPROFILE%\smb.reg" "%USERPROFILE%\ntsvcfg\smb.reg"        if exist "%USERPROFILE%\FPRINT.REF" move /Y "%USERPROFILE%\FPRINT.REF" "%USERPROFILE%\ntsvcfg\FPRINT.REF"        if exist "%USERPROFILE%\handler_aim.reg" move /Y "%USERPROFILE%\handler_aim.reg" "%USERPROFILE%\ntsvcfg\handler_aim.reg"        if exist "%USERPROFILE%\handler_gopher.reg" move /Y "%USERPROFILE%\handler_gopher.reg" "%USERPROFILE%\ntsvcfg\handler_gopher.reg"        if exist "%USERPROFILE%\handler_telnet.reg" move /Y "%USERPROFILE%\handler_telnet.reg" "%USERPROFILE%\ntsvcfg\handler_telnet.reg"        if exist "%USERPROFILE%\services.reg.default" move /Y "%USERPROFILE%\services.reg.default" "%USERPROFILE%\ntsvcfg\services.reg.default"        if exist "%USERPROFILE%\dcom.reg.default" move /Y "%USERPROFILE%\dcom.reg.default" "%USERPROFILE%\ntsvcfg\dcom.reg.default"        if exist "%USERPROFILE%\dcomp.reg.default" move /Y "%USERPROFILE%\dcomp.reg.default" "%USERPROFILE%\ntsvcfg\dcomp.reg.default"        if exist "%USERPROFILE%\smb.reg.default" move /Y "%USERPROFILE%\smb.reg.default" "%USERPROFILE%\ntsvcfg\smb.reg.default"        if exist "%USERPROFILE%\handler_aim.reg.default" move /Y "%USERPROFILE%\handler_aim.reg.default" "%USERPROFILE%\ntsvcfg\handler_aim.reg.default"        if exist "%USERPROFILE%\handler_gopher.reg.default" move /Y "%USERPROFILE%\handler_gopher.reg.default" "%USERPROFILE%\ntsvcfg\handler_gopher.reg.default"        if exist "%USERPROFILE%\handler_telnet.reg.default" move /Y "%USERPROFILE%\handler_telnet.reg.default" "%USERPROFILE%\ntsvcfg\handler_telnet.reg.default"REM *****Declarations*****set SELECT="no"set SVC_BAK=%USERPROFILE%\ntsvcfg\services.regset SVC_SAV=%USERPROFILE%\ntsvcfg\current_services_config.regset DCOM_BAK=%USERPROFILE%\ntsvcfg\dcom.regset DCOMP_BAK=%USERPROFILE%\ntsvcfg\dcomp.regset SMB_BAK=%USERPROFILE%\ntsvcfg\smb.regset DCOM_TMP=%TEMP%\dcomoff.regset DCOMP_TMP=%TEMP%\dcompoff.regset SMB_TMP=%TEMP%\smboff.regset FPRINT=%USERPROFILE%\ntsvcfg\FPRINT.REFset HANDLER1=%USERPROFILE%\ntsvcfg\handler_aim.regset HANDLER2=%USERPROFILE%\ntsvcfg\handler_gopher.regset HANDLER3=%USERPROFILE%\ntsvcfg\handler_telnet.regset NB_TMP=%TEMP%\nb_off.vbsset srctmp=%USERPROFILE%\ntsvcfg\~srcreate.vbsset DHCP_CHANGES="YES"REM *****Options*****set SCHEDULER_ENABLED=NOset UseXPSysRestore=YESset RESTORE=NOset SVC_MOD=NOset USE_FPRINT=YESset Deactivate_NetBIOS=YESset RESTORE_MODE=2REM *****APP_PATHs******set NET=%SystemRoot%\system32\net.exeset SC=%SystemRoot%\system32\sc.exeset FC=%SystemRoot%\system32\fc.exeset IPCONFIG=%SystemRoot%\system32\ipconfig.exeecho  Checking available permissions: [local], please wait ..."%net%" user "%USERNAME%" 2> nul | "%find%"  /i "admin" | "%find%"  /i /v "name" > nulif errorlevel 1 (        echo     "         "          "     : [domain], please wait ...        "%net%" user "%USERNAME%" /domain 2> nul | "%find%"  /i "admin" | "%find%"  /i /v "name" > nul        if errorlevel 1 (                echo.                echo  Failed!                echo  __________                echo  Leider verfuegen Sie nicht ueber die erforderlichen Rechte!                echo  Melden Sie sich bitte als Administrator an.                echo.                echo  Sorry but you don't have the permissions required for this task.                echo  Please login as Administrator.                echo.                goto :END                )        )set IMPORT_OLD_FILES=FALSErem searching for sc.exeif not exist "%FPRINT%" echo  Checking for presence of SC.EXE ..."%sc%" qc > nul 2>&1if errorlevel 1 (        echo  !!Failed!!        echo  __________        echo  Die notwendige Datei SC.EXE konnte leider nicht unter        echo  [%SystemRoot%\SYSTEM32\] gefunden werden.        echo  Bitte laden Sie sich diese Datei von der unten genannten Adresse herunter:        echo.        echo  SC.EXE couldn't be found in [%SystemRoot%\SYSTEM32\].        echo  Please download it from following location:        echo.        echo.        echo            -= ftp://ftp.microsoft.com/reskit/win2000/sc.zip =-        echo.        echo                                Self-installing SC.EXE        echo                                ======================        echo  svx2kxp.cmd kann versuchen, die notwendige Datei selbst zu installieren.        echo  Hierzu benoetigen Sie eine bestehende Internetverbindung.        echo.        echo  svc2kxp.cmd may try to download the required file SC.EXE itself if an        echo  active internet connection exists.        goto :SC_DOWNLOAD        )if /I "%1"=="/all" (        set SELECT="/all"        goto :SKIP_MENUE        )if /I "%1"=="/relan" (        set SELECT="/relan"        goto :SKIP_MENUE        )if /I "%1"=="/std" (        set SELECT="/std"        goto :SKIP_MENUE        )if /I "%1"=="/default" goto :RESTORE_DEFAULTSrem checking for modified servicesif /I %CHK_SVC%==YES (        if /I %USE_FPRINT%==YES (                if exist "%FPRINT%" (                        rem Creating fingerprint of current service settings...                        if exist "%USERPROFILE%\ntsvcfg\svc2cmp.sav" del /F /Q "%USERPROFILE%\ntsvcfg\svc2cmp.sav"                        "%sc%" query type= service state= all bufsize= 8192 | %FIND% "SERVICE_NAME" >%TEMP%\~svclist.txt                        for /F "tokens=1*" %%a in (%TEMP%\~svclist.txt) do (                                echo %%b >>"%USERPROFILE%\ntsvcfg\svc2cmp.sav"                                "%sc%" query "%%b" | %FIND% "STATE" >>"%USERPROFILE%\ntsvcfg\svc2cmp.sav"                                "%sc%" qc "%%b" | %FIND% "DISPLAY_NAME" >>"%USERPROFILE%\ntsvcfg\svc2cmp.sav"                                "%SC%" qc "%%b" | %FIND% "START_TYPE" >>"%USERPROFILE%\ntsvcfg\svc2cmp.sav"                                echo. >> "%USERPROFILE%\ntsvcfg\svc2cmp.sav"                                )                        del "%TEMP%\~svclist.txt"                        "%FC%" "%FPRINT%" "%USERPROFILE%\ntsvcfg\svc2cmp.sav" >NUL                        if errorlevel 1 goto IFF                        goto OK                        IFF                        echo  Checking for modified services ... failed-services maybe modified! [E]valuate                        set SVC_MOD=YES                        goto :MOD_END                        :OK                        echo  Checking for modified services ... OK                        set SVC_MOD=NO                        if exist "%USERPROFILE%\ntsvcfg\svc2cmp.sav" del /F /Q "%USERPROFILE%\ntsvcfg\svc2cmp.sav"                        goto :MOD_END                        :MOD_END                        REM                        )                )        )set CHK_SVC=NOif /I "%1"=="/restore" goto :RESTORE:MENUEif /I "%1"=="/lan" goto :SKIP_MENUEecho.echo                            -= Auswahl / Overview =-echo.echo  Bitte waehlen sie einen Punkt aus, den sie ausfuehren moechten:echo.echo  (1) LAN:       Einige Dienste fuer LAN-Betrieb werden nicht veraendert.echo  (2) Standard:  Schliesst alle Ports, aber einige Dienste bleiben unveraendert.echo  (3) ALL:       Setzt alle Vorschlaege nach www.ntsvcfg.de um (hardening).echo  (4) Restore:   Nimmt die zuletzt vorgenommenen Aenderungen zurueck.echo  ______________________________________________________________________________echo.echo  Please choose one task you want to do:echo.echo  (1) LAN:       Some services needed for LAN-usage stay unchangedecho  (2) Standard:  Close ports but some services stay unchangedecho  (3) ALL:       Making all changes described at www.ntsvcfg.de (hardening)echo  (4) restore:   Restores last changes made.echo.set /P CHS= Bitte waehlen Sie/Please choose: [1],[2],[3],[4], [M]ore options or [Q]uit?if /I "%CHS%"=="1" (        set SELECT="/lan"        goto :SKIP_MENUE        )if /I "%CHS%"=="2" (        set SELECT="/std"        goto :SKIP_MENUE        )if /I "%CHS%"=="3" (        set SELECT="/all"        goto :SKIP_MENUE        )if /I "%CHS%"=="4" goto :RESTOREif /I "%CHS%"=="R" goto :RESTOREif /I "%CHS%"=="M" goto :MORE_OPTIONSif /I "%SVC_MOD%"=="YES" if /I "%CHS%"=="E" goto :EVALUATE_SERVICESif /I "%CHS%"=="G" goto :CREATING_NEW_FINGERPRINTif /I "%CHS%"=="Q" goto UITclsgoto :START:SKIP_MENUErem Checking if old restorefiles exists.rem if it is so old files will be restored before new changesif not exist "%SVC_BAK%" goto :NO_RESTOREif /I %RESTORE_MODE%==3 goto :NO_RESTOREif /I %RESTORE_MODE%==4 goto :NO_RESTOREset RESTORE=YESecho.echo  _______________________________________________________________________echo.echo  [Selected Restore Mode: %RESTORE_MODE%]echo.echo  # Achtung: Alte Sicherungsdateien gefunden!echo.echo     "Svc2kXp.cmd" wurde schon einmal ausgefuehrt. Damit neue Aenderungenecho     korrekt durchgefuehrt werden koennen, werden die Sicherungsdateienecho     eingespielt.echo.echo.echo    Attention: old restore-files found!echo.echo     This program runs not for the first time. To apply all new changesecho     correctly old restore files will used to get an definite state.echo.echo.echo  # Starting restore ...goto RESTORE_EXT:NO_RESTORErem query if taskplaner should runif /I "%SYSTEM%"=="2k" goto :SKIP_SQUERYif /I "%SYSTEM%"=="xp" (        if /I %SELECT%=="" goto :SKIP_SQUERY        if /I %SELECT%=="/all" goto :SKIP_SQUERY        if /I %XPSP2%==True (                set SCHEDULER_ENABLED=YES                goto :SKIP_SQUERY                )        )echo.echo.echo  Rueckfrage / Queryecho  ==================echo.echo  Soll der Dienst "Taskplaner" beendet werden?echo.echo  Wenn sie zeitgesteuerten Aufgaben [z.B. Antiviren-Updates] oder die automati-echo  sche Erstellung von Systemwiederherstellungspunkten nicht benoetigen, drueckenecho  Sie eine BELIEBIGE TASTE, um auch Port 135 [RPC] sowie Port 1025 [Taskplaner]echo  zu schliessen [empfohlen!]. Andernfalls druecken Sie "N"!echo.echo.echo  Should the "scheduler service" be disabled?echo.echo  If you have time-controlled tasks [i.e. AV-Updates] or you will not setecho  automatic system restore points press ANY KEY TO CONTINUE to close port 135echo  [RPC] and port 1025 [scheduler] instantly. Otherwise press "N"echo  ___________________________________________echo.set /P UNDO= Taskplaner beenden - Close scheduler [y/n]?if /I "%UNDO%"=="n" set SCHEDULER_ENABLED=YES

[[i] 本帖最后由 cnn_5454 于 2007-8-29 12:07 PM 编辑 [/i]]
回复

使用道具 举报

3#
 楼主| 发表于 2007-8-28 17:41:56 | 只看该作者

B

:SKIP_SQUERYif not exist "%SVC_BAK%.default" (        echo.        echo  Creating backup of defaults ...        "%regedit%" /e "%SVC_BAK%.default" HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services        "%regedit%" /e "%DCOM_BAK%.default" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole        "%regedit%" /e "%DCOMP_BAK%.default" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc        "%regedit%" /e "%SMB_BAK%.default" HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters        "%regedit%" /e "%HANDLER1%.default" HKEY_CLASSES_ROOT\AIM        "%regedit%" /e "%HANDLER2%.default" HKEY_CLASSES_ROOT\gopher        "%regedit%" /e "%HANDLER3%.default" HKEY_CLASSES_ROOT\telnet        echo                             ... done.        )if exist "%SVC_BAK%" (        if /I %RESTORE_MODE%==2 goto :SKIP_SAVING        if /I %RESTORE_MODE%==4 goto :SKIP_SAVING        )rem saving registry settingsecho  _________________________________________________________________________echo.echo  [Selected Restore Mode: %RESTORE_MODE%]echo.echo     Saving services settings toecho       %SVC_BAK% ..."%regedit%" /e "%SVC_BAK%" HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servicesecho     Saving DCOM settings toecho       %DCOM_BAK% ..."%regedit%" /e "%DCOM_BAK%" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Oleecho     Saving DCOM standard protocols settings toecho       %DCOMP_BAK% ..."%regedit%" /e "%DCOMP_BAK%" HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpcecho     Saving SMB settings toecho       %SMB_BAK%"%regedit%" /e "%SMB_BAK%" HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parametersecho     Saving URL-Handler [AIM, GOPHER, TELNET] toecho       %HANDLER1%"%regedit%" /e "%HANDLER1%" HKEY_CLASSES_ROOT\AIMecho       %HANDLER2%"%regedit%" /e "%HANDLER2%" HKEY_CLASSES_ROOT\gopherecho       %HANDLER3%"%regedit%" /e "%HANDLER3%" HKEY_CLASSES_ROOT\telnetecho.echo  All done.echo  ___________________________________________echo.:SKIP_SAVINGif /I "%SYSTEM%"=="xp" (        if /I %UseXPSysRestore%==YES (                goto :XPSYSRESTORE                )        ):XPSYSRESTORE_DONErem reconfigure servicesrem startup: demandecho.echo  Setting services to "demand" ...echo  ___________________________________________echo.echo  # Checking DHCP ..."%ipconfig%" -all | "%find%"  /i "Lease" > nulif errorlevel 1 (        rem trying other method for DHCP        "%ipconfig%" -all | "%find%"  /i "DHCP-Server" > nul        if errorlevel 1 (          echo                ... no active DHCP found.          echo.          echo  Hinweis          echo  =======          echo  Ihre Konfiguration deutet an, das kein DHCP benoetigt wird. Falls          echo  Sie dennoch einen DSL-Internetzugang besitzen und DHCP irrtuemlich           echo  deaktivert wurde, kann es nach einem Neustart zu Problemen mit der           echo  Internetverbindung kommen. Starten sie zur Problembehebung den           echo  DHCP-Dienst manuell neu.          echo.          echo  Notice          echo  ======          echo  Your configuration indicates that DHCP no longer will be required.          echo  But if you use a DSL internet connection this choice probably           echo  might be wrong. If you experiences problems during accessing the           echo  internet please re-activate the "DHCP Service" manually.          echo.          echo  ___________________________________________          echo.          "%sc%" config DHCP start= demand          goto :SKIP_DHCP        ))set DHCP_CHANGES="NO"echo  ... DHCP active, status of service will NOT be changed!echo.:SKIP_DHCP"%sc%" config dmadmin start= demand"%sc%" config DNSCache start= demand"%sc%" config mnmsrvc start= demand"%sc%" config MSIServer start= demand"%sc%" config NetDDE start= demand"%sc%" config NetDDEdsdm start= demand"%sc%" config Netman start= demand"%sc%" config NTLMSsp start= demand"%sc%" config NtmsSvc start= demand"%sc%" config PolicyAgent start= demand"%sc%" config RASAuto start= demand"%sc%" config RASMan start= demand"%sc%" config RSVP start= demand"%sc%" config Scardsvr start= demand"%sc%" query ScardDrv | "%find%"  /i "OpenService FAILED" >NULif errorlevel 1 "%sc%" config ScardDrv start= demandif /I %XPSP2%==True (        rem If XP SP2 is installed there are less changes to XP-ICF        if /I %SELECT%=="/std" goto :SKIP_FIREWALL        )"%sc%" config SharedAccess start= demand:SKIP_FIREWALL"%sc%" config Sysmonlog start= demand"%sc%" config TAPISrv start= demand"%sc%" config TrkWks start= demand"%sc%" config UPS start= demand"%sc%" config W32Time start= demand"%sc%" config WMI start= demandif /I %SELECT%=="/all" (        "%sc%" config SamSs start= demand        "%sc%" config LmHosts start= demand        "%sc%" config Winmgmt start= demand        )if /I "%SYSTEM%"=="2k" (        "%sc%" config AppMgmt start= demand        "%sc%" config Browser start= demand        "%sc%" config clipsrv start= demand        "%sc%" config EventSystem start= demand        "%sc%" config Fax start= demand        "%sc%" config netlogon start= demand        "%sc%" config RPCLocator start= demand        "%sc%" config Utilman start= demand        if /I %SELECT%=="/all" (                "%sc%" config seclogon start= demand                "%sc%" config RPCSs start= demand                "%sc%" config lanmanServer start= demand                )        )if /I "%SYSTEM%"=="xp" (        "%sc%" config ALG start= demand        "%sc%" config FastUserSwitchingCompatibility start= demand        "%sc%" config helpsvc start= demand        "%sc%" config ImapiService start= demand        "%sc%" config Nla start= demand        "%sc%" config RdSessMgr start= demand        "%sc%" config seclogon start= demand        "%sc%" config stisvc start= demand        "%sc%" config SwPrv start= demand        "%sc%" config TermService start= demand        "%sc%" config upnphost start= demand        "%sc%" config VSS start= demand        "%sc%" query WmdmPmSp | "%find%"  /i "OpenService FAILED" >NUL        if errorlevel 1 "%sc%" config WmdmPmSp start= demand        "%sc%" config WmiApSrv start= demand        rem Wireless Zero Configuration - fuer WLAN-Verbindungen notwendig.        rem Falls erforderlich auf AUTO stellen.        rem "%sc%" config WZCSVC start= demand        )echo.rem startup: autoecho  Setting services to "auto" ..."%sc%" config dmserver start= auto"%sc%" config eventlog start= auto"%sc%" config PlugPlay start= auto"%sc%" config ProtectedStorage start= auto"%sc%" config sens start= auto"%sc%" config spooler start= autoif /I "%SYSTEM%"=="2k" (        "%sc%" config lanmanworkstation start= auto        "%sc%" config alerter start= auto        )if /I "%SYSTEM%"=="xp" (        "%sc%" query InteractiveLogon | "%find%"  /i "OpenService FAILED" >NUL        if errorlevel 1 "%sc%" config InteractiveLogon start= auto        "%sc%" config Audiosrv start= auto        "%sc%" config CryptSvc start= auto        "%sc%" config RPCSs start= auto        "%sc%" config ShellHWDetection start= auto        "%sc%" config srservice start= auto        "%sc%" query uploadmgr | "%find%"  /i "OpenService FAILED" >NUL        if errorlevel 1 "%sc%" config uploadmgr start= auto        "%sc%" config WebClient start= auto        )echo.rem startup: disabledecho  Setting services to "disabled" ..."%sc%" config cisvc start= disabled"%sc%" config MSDTC start= disabled"%sc%" config RemoteAccess start= disabled"%sc%" config TlntSvr start= disabled"%sc%" config messenger start= disabledif /I %SELECT%=="/all" (        "%sc%" query BITS | "%find%"  /i "SERVICE_NAME" >NUL        if not errorlevel 1 "%sc%" config BITS start= disabled        "%sc%" query wuauserv | "%find%"  /i "SERVICE_NAME" >NUL        if not errorlevel 1 "%sc%" config wuauserv start= disabled        "%sc%" config schedule start= disabled        "%sc%" config RemoteRegistry start= disabled        )if /I "%SYSTEM%"=="xp" (        "%sc%" config ERSvc start= disabled        "%sc%" config HidServ start= disabled        "%sc%" config SSDPSRV start= disabled        if /I %SELECT%=="/lan" (                if /I %SCHEDULER_ENABLED%==NO "%sc%" config schedule start= disabled                )        if /I %SELECT%=="/std" (                if /I %SCHEDULER_ENABLED%==NO "%sc%" config schedule start= disabled                )        if /I %XPSP2%==True (                echo.                echo  XPSP2: Disabling Security Center ...                "%sc%" config wscsvc start= disabled                )        )echo.echo  ------------------echo  # Checking and stopping unnecessary system services ...echo."%sc%" query cisvc | "%find%"  /i "4  RUNNING" >NUL        if not errorlevel 1 "%net%" stop cisvc"%sc%" query RemoteAccess | "%find%"  /i "4  RUNNING" >NUL        if not errorlevel 1 "%net%" stop RemoteAccess"%sc%" query TlntSvr | "%find%"  /i "4  RUNNING" >NUL        if not errorlevel 1 "%net%" stop TlntSvr"%sc%" query MSDTC | "%find%"  /i "4  RUNNING" >NUL        if not errorlevel 1 "%net%" stop MSDTC"%sc%" query messenger | "%find%"  /i "4  RUNNING" >NUL        if not errorlevel 1 "%net%" stop messengerif /I %SELECT%=="/all" (        "%sc%" query BITS | "%find%"  /i "SERVICE_NAME" >NUL        if not errorlevel 1 (                "%sc%" query BITS | "%find%"  /i "4  RUNNING" >NUL                if not errorlevel 1 "%net%" stop BITS                )        "%sc%" query wuauserv | "%find%"  /i "SERVICE_NAME" >NUL        if not errorlevel 1 (                "%sc%" query wuauserv | "%find%"  /i "4  RUNNING" >NUL                if not errorlevel 1 "%net%" stop wuauserv                )        "%sc%" query schedule | "%find%"  /i "4  RUNNING" >NUL        if not errorlevel 1 "%net%" stop schedule        )if /I "%SYSTEM%"=="xp" (        if /I %SELECT%=="/lan" (                if /I %SCHEDULER_ENABLED%==NO "%net%" (                        "%sc%" query schedule | "%find%"  /i "4  RUNNING" >NUL                        if not errorlevel 1 "%net%" stop schedule                        )                )        if /I %SELECT%=="/std" (                if /I %SCHEDULER_ENABLED%==NO "%net%" (                        "%sc%" query schedule | "%find%"  /i "4  RUNNING" >NUL                        if not errorlevel 1 "%net%" stop schedule                )        if /I %XPSP2%==True (                "%sc%" query wscsvc | "%find%"  /i "4  RUNNING" >NUL                if not errorlevel 1 "%net%" stop wscsvc                )        )echo  ------------------echo  Disabling DCOM ...echo REGEDIT4 > "%DCOM_TMP%"echo. >> "%DCOM_TMP%"echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole] >> "%DCOM_TMP%"echo "EnableDCOM"="N" >> "%DCOM_TMP%"echo "EnableDCOMHTTP"="N" >> "%DCOM_TMP%"echo. >> "%DCOM_TMP%"echo. >> "%DCOM_TMP%""%regedit%" /s "%DCOM_TMP%"del /F /Q "%DCOM_TMP%"echo  Disabling DCOM standard protocols ...echo REGEDIT4 > "%DCOMP_TMP%"echo. >> "%DCOMP_TMP%"echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc] >> "%DCOMP_TMP%"echo "DCOM Protocols"=hex(7):00,00,00,00 >> "%DCOMP_TMP%"echo. >> "%DCOMP_TMP%"echo. >> "%DCOMP_TMP%""%regedit%" /s "%DCOMP_TMP%"del /F /Q "%DCOMP_TMP%"   echo  Disabling port 135 (maybe 1025 too) ...   echo    - Removing RPC Client Protocols   echo REGEDIT4 > "%SMB_TMP%"   echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\ClientProtocols] >> "%SMB_TMP%"   echo. >> "%SMB_TMP%"   if /I %SCHEDULER_ENABLED%==NO (    echo    - Advanced RPC Configuration    echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\Internet] >> "%SMB_TMP%"    echo "PortsInternetAvailable"="N" >> "%SMB_TMP%"    echo "UseInternetPorts"="N" >> "%SMB_TMP%"    echo. >> "%SMB_TMP%"    )   if /I %XPSP2%==TRUE (    echo    - Advanced RPC Configuration    echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\Internet] >> "%SMB_TMP%"    echo "PortsInternetAvailable"="N" >> "%SMB_TMP%"    echo "UseInternetPorts"="N" >> "%SMB_TMP%"    echo. >> "%SMB_TMP%"    )   echo    - Removing needless URL Handler [AIM,gopher,telnet]   echo [-HKEY_CLASSES_ROOT\AIM] >> "%SMB_TMP%"   echo [-HKEY_CLASSES_ROOT\gopher] >> "%SMB_TMP%"   echo [-HKEY_CLASSES_ROOT\telnet] >> "%SMB_TMP%"   echo. >> "%SMB_TMP%"   echo. >> "%SMB_TMP%"  "%regedit%" /s "%SMB_TMP%"  del /F /Q "%SMB_TMP%"if /I %SELECT%=="/all" (        echo.        echo  Disabling SMB port 445 ...        echo REGEDIT4 > "%SMB_TMP%"        echo. >> "%SMB_TMP%"        echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters] >> "%SMB_TMP%"        echo "SMBDeviceEnabled"=dword:00000000 >> "%SMB_TMP%"        echo. >> "%SMB_TMP%"        echo. >> "%SMB_TMP%"        "%regedit%" /s "%SMB_TMP%"        del /F /Q "%SMB_TMP%"        set REBOOT_REQUIRED=yes        )if /I %SELECT%=="/std" (        echo.        echo  Disabling SMB port 445 ...        echo REGEDIT4 > "%SMB_TMP%"        echo. >> "%SMB_TMP%"        echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters] >> "%SMB_TMP%"        echo "SMBDeviceEnabled"=dword:00000000 >> "%SMB_TMP%"        echo. >> "%SMB_TMP%"        echo. >> "%SMB_TMP%"        "%regedit%" /s "%SMB_TMP%"        del /F /Q "%SMB_TMP%"        set REBOOT_REQUIRED=yes        )if /I %SELECT%=="/std" goto :NB_DISABLEif /I %SELECT%=="/all" goto :NB_DISABLEgoto :SKIP_NB_DISABLE:NB_DISABLE  if /I %DEACTIVATE_NETBIOS%==NO (                echo.                echo.  Due problems with SP2 and deactivating NetBIOS this option                echo   will be skipped.                echo.                goto :SKIP_NB_DISABLE                )  rem Because of problems with SP2 Netbios:  if /I %XPSP2%==True (                echo.                echo  Note:                echo  -----                echo  If you experiencing problems after updating Windows XP with                echo  Service Pack 2 please do following:                echo.                echo                          set Deactivate_NetBIOS=NO                echo.                )  rem *** Thx2 Johannes Lichtenberger for the following lines using VBScript***  echo  Disable NetBios on all local interfaces ...  echo.  echo On Error Resume Next>> "%nb_tmp%"  echo.>> "%nb_tmp%"  echo TcpipoverNetbios = 2 '0=NetbiosfromDHCP 1=EnableNetbios 2=DisableNetbios>> "%nb_tmp%"  echo.>> "%nb_tmp%"  echo strComputer = ".">> "%nb_tmp%"  echo Set objWMIService = GetObject("winmgmts:\\" ^& strComputer ^& "\root\cimv2")>> "%nb_tmp%"  echo Set objNICs = objWMIService.ExecQuery _>> "%nb_tmp%"  echo    ("Select * From Win32_NetworkAdapterConfiguration Where IPEnabled = True")>> "%nb_tmp%"  echo For Each objNic In objNICs>> "%nb_tmp%"  echo    errTcpipNetbios = objNic.SetTCPIPNetBIOS(TcpipoverNetbios)>> "%nb_tmp%"  echo Next>> "%nb_tmp%"  "%SYSTEMROOT%\SYSTEM32\CSCRIPT.EXE" "%nb_tmp%"  del /F /Q "%nb_tmp%"  set REBOOT_REQUIRED=yes:SKIP_NB_DISABLErem Skip Billboard because /all is usedif /I %SELECT%=="/all" goto :SW_ALLif /I %SELECT%=="/std" goto :SW_ALLif /I %SELECT%=="/relan" goto :SW_ALLecho.echo  ___________________________________________________________________echo.echo                   *** Zusammenfassung / Result ***echo.echo  Es wurden NICHT alle Aenderungen umgesetzt!echo  Um alle Vorschlaege von kssysteme.de umzusetzen, verwenden Sieecho  bitte den Parameter '/all' oder waehlen Sie im Menue den Punkt "3".if /I %DHCP_CHANGES%=="YES" (                 echo.                  echo  Wichtiger DHCP Hinweis                  echo  ======================                  echo  Ihre Konfiguration deutete an, das kein DHCP benoetigt wird. Falls                  echo  Sie jedoch einen DSL-Internetzugang besitzen und DHCP irrtuemlich                   echo  deaktivert wurde, kann es nach einem Neustart zu Problemen mit der                   echo  Internetverbindung kommen. Starten sie zur Problembehebung den                   echo  DHCP-Dienst von Hand neu.                  echo.                )echo.echo  Not all changes could be performed. To change all issues listedecho  on www.ntsvcfg.de please use parameter '/all' or select item "3"!if /I %DHCP_CHANGES%=="YES" (                 echo.                  echo  Important DHCP Notice                  echo  =====================                  echo  Your configuration indicates that DHCP will no longer be required.                  echo  But if you are using a DSL internet connection this choice probably                   echo  might be wrong. If you experiences problems during accessing the                   echo  internet please re-activate the "DHCP Service" manually.                echo.                )echo  ___________________________________________________________________:SW_ALLif /I %SELECT%=="/relan" (        rem startup: auto        echo.        echo  ------------------        echo  Re-enabling services ...        "%sc%" config LmHosts  start= auto        "%sc%" config RemoteRegistry start= auto        "%sc%" config SamSs start= auto        "%sc%" config Winmgmt start= auto        if /I "%SYSTEM%"=="2k" (                "%sc%" config RPCSs start= auto                "%sc%" config lanmanServer start= auto                "%sc%" config seclogon start= auto                )        if /I "%SYSTEM%"=="XP" (                rem "%sc%" config SharedAccess start= auto                )        rem start re-enabled services        echo.        echo  ------------------        echo  [Re]starting services ...        echo.        "%sc%" query RemoteRegistry | "%find%"  /i "1  STOPPED" >NUL        if not errorlevel 1 "%net%" start RemoteRegistry        "%sc%" query SamSs | "%find%"  /i "1  STOPPED" >NUL        if not errorlevel 1 "%net%" start SamSs        "%sc%" query LmHosts | "%find%"  /i "1  STOPPED" >NUL        if not errorlevel 1 "%net%" start LmHosts        "%sc%" query Winmgmt | "%find%"  /i "1  STOPPED" >NUL        if not errorlevel 1 "%net%" start Winmgmt        if /I "%SYSTEM%"=="2k" (                "%sc%" query LanmanServer | "%find%"  /i "1  STOPPED" >NUL                if not errorlevel 1 "%net%" start lanmanServer                "%sc%" query RPCSs | "%find%"  /i "1  STOPPED" >NUL                if not errorlevel 1 "%net%" start RPCSs                "%sc%" query Seclogon | "%find%"  /i "1  STOPPED" >NUL                if not errorlevel 1 "%net%" start seclogon                )        if /I "%SYSTEM%"=="XP" (                rem "%net%" start SharedAccess                )        rem enable SMB port 445        echo.        echo  ------------------        echo  Enabling SMB port 445 ...        echo REGEDIT4 > "%SMB_TMP%"        echo. >> "%SMB_TMP%"        echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters] >> "%SMB_TMP%"        echo "SMBDeviceEnabled"=dword:00000001 >> "%SMB_TMP%"        echo. >> "%SMB_TMP%"        echo. >> "%SMB_TMP%"        "%regedit%" /s "%SMB_TMP%"        del /F /Q "%SMB_TMP%"        set REBOOT_REQUIRED=yes        )rem Creating fingerprint of current service settings...if exist "%FPRINT%" del /F /Q "%FPRINT%"if /I %USE_FPRINT%==YES (        echo.        echo  Creating fingerprint which will take a few seconds ...        "%sc%" query type= service state= all bufsize= 8192 | %FIND% "SERVICE_NAME" > %TEMP%\~svclist.txt        for /F "tokens=1*" %%a in (%TEMP%\~svclist.txt) do (                echo %%b >>"%FPRINT%"                "%sc%" query "%%b" | %FIND% "STATE" >>"%FPRINT%"                "%sc%" qc "%%b" | %FIND% "DISPLAY_NAME" >>"%FPRINT%"                "%SC%" qc "%%b" | %FIND% "START_TYPE" >>"%FPRINT%"                echo. >> "%FPRINT%"                )        del "%TEMP%\~svclist.txt"        echo                                                      ... done.        )goto :END:RESTOREecho  ____________________________________________________echo.echo  Letzte Aenderungen zuruecknehmen [y/n]?set /P UNDO= Undo last changes [y/n]?if /I "%UNDO%"=="y" (        echo  _______________________________________________________________        echo.        echo  Hinweis:        echo  ========        echo  Moeglicherweise meldet Windows Fehler beim Importieren.        echo  Ignorieren Sie diese mit Klick auf "OK".        echo.        echo  Windows might probably report an error during importing the        echo  backups. Just ignore this by clicking the "OK" button!        echo  _______________________________________________________________        echo  Status:        echo  -------        :RESTORE_EXT        if exist "%SVC_BAK%" (                echo     Importing services ...                echo        ["%SVC_BAK%"]                "%regedit%" /s "%SVC_BAK%"                set action=""                )        if exist "%DCOM_BAK%" (                echo     Importing DCOM ...                echo        ["%DCOM_BAK%"]                "%regedit%" /s "%DCOM_BAK%"                )        if exist "%DCOMP_BAK%" (                echo     Importing DCOM-standard protocols ...                echo        ["%DCOMP_BAK%"]                "%regedit%" /s "%DCOMP_BAK%"                )        if exist "%SMB_BAK%" (                echo     Importing SMB-settings ...                echo        ["%SMB_BAK%"]                echo   - Removing SMBDeviceEnabled RegKey ...                echo REGEDIT4 > "%USERPROFILE%\smbpatch~.reg"                echo. >> "%USERPROFILE%\smbpatch~.reg"                echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters] >> "%USERPROFILE%\smbpatch~.reg"                echo "SMBDeviceEnabled"=- >> "%USERPROFILE%\smbpatch~.reg"                echo. >> "%USERPROFILE%\smbpatch~.reg"                echo. >> "%USERPROFILE%\smbpatch~.reg"                "%SystemRoot%\regedit.exe" /s "%USERPROFILE%\smbpatch~.reg"                del /F /Q "%USERPROFILE%\smbpatch~.reg"                "%regedit%" /s "%SMB_BAK%"                )        if exist "%HANDLER1%" (                echo     Importing URL_HANDLER AIM ...                echo        ["%HANDLER1%"]                "%regedit%" /s "%HANDLER1%"                )        if exist "%HANDLER2%" (                echo     Importing URL_HANDLER GOPHER ...                echo        ["%HANDLER2%"]                "%regedit%" /s "%HANDLER2%"                )        if exist "%HANDLER3%" (                echo     Importing URL_HANDLER TELNET ...                echo        ["%HANDLER3%"]                "%regedit%" /s "%HANDLER3%"                )        rem Skipping back to next state        if /I "%RESTORE%"=="YES" goto :NO_RESTORE        echo     Removing RPC Internet key ....        echo REGEDIT4 >"%USERPROFILE%\svc_fix.reg"        echo. >>"%USERPROFILE%\svc_fix.reg"        echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\Internet] >>"%USERPROFILE%\svc_fix.reg"        echo. >>"%USERPROFILE%\svc_fix.reg"        echo. >>"%USERPROFILE%\svc_fix.reg"        "%regedit%" /s "%USERPROFILE%\svc_fix.reg"        del /F /Q "%USERPROFILE%\svc_fix.reg"        rem Creating fingerprint of current service settings...        if exist "%FPRINT%" del /F /Q "%FPRINT%"        if /I %USE_FPRINT%==YES (                echo.                echo  Creating fingerprint which will take a few seconds ...                "%sc%" query type= service state= all bufsize= 8192 | %FIND% "SERVICE_NAME" > %TEMP%\~svclist.txt                for /F "tokens=1*" %%a in (%TEMP%\~svclist.txt) do (                        echo %%b >>"%FPRINT%"                        "%sc%" query "%%b" | %FIND% "STATE" >>"%FPRINT%"                        "%sc%" qc "%%b" | %FIND% "DISPLAY_NAME" >>"%FPRINT%"                        "%SC%" qc "%%b" | %FIND% "START_TYPE" >>"%FPRINT%"                        echo. >> "%FPRINT%"                        )                del "%TEMP%\~svclist.txt"                echo                                                      ... done.                )        echo.        echo  _______________________________________________________________        echo.        echo               *** Zusammenfassung / Result ***        echo.        echo  Die Ruecksicherung wurde ausgefuehrt. Wenn in der oberen Zeile        echo  keine Statusmeldungen zu sehen sind, existierten keine rueckzu-        echo  sichernden Dateien. Aktivieren Sie gegebenenfalls NetBios in        echo  den Eigenschaften der jeweiligen Netzwerkkarte.        echo  Bitte starten Sie abschliessend Ihren Rechner neu.        echo.        echo  Restore finished. If you don't see any messages in the status        echo  box above, there were no files to restore. Please reactivate        echo  NetBios for each NIC you want use with it and reboot afterwards.        echo  ________________________________________________________________        )goto :END:RESTORE_DEFAULTSecho.echo                     *** Restore Factory Settings ***echo.echo  ______________________________________________________________________________echo.echo  Einstellungen vor Erstanwendung des Scripts wiederherstellen (ausser NetBIOS)?set /P UNDO= Restore defaults (before using script, except NetBIOS) [y/n]?if /I "%UNDO%"=="y" (        echo.        echo   - Restoring original service settings [if exists] ...        if exist "%SVC_BAK%.default"         (                                        echo      "%SVC_BAK%.default"                                        "%regedit%" /s "%SVC_BAK%.default"                                        )        if exist "%DCOM_BAK%.default"         (                                        echo      "%DCOM_BAK%.default"                                        "%regedit%" /s "%DCOM_BAK%.default"                                        )        if exist "%DCOMP_BAK%.default"         (                                        echo      "%DCOMP_BAK%.default"                                        "%regedit%" /s "%DCOMP_BAK%.default"                                        )        if exist "%SMB_BAK%.default"        (                                        echo      "%SMB_BAK%.default"                                        echo   - Removing SMBDeviceEnabled RegKey ...                                        echo REGEDIT4 > "%USERPROFILE%\smbpatch~.reg"                                        echo. >> "%USERPROFILE%\smbpatch~.reg"                                        echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NetBT\Parameters] >> "%USERPROFILE%\smbpatch~.reg"                                        echo "SMBDeviceEnabled"=- >> "%USERPROFILE%\smbpatch~.reg"                                        echo. >> "%USERPROFILE%\smbpatch~.reg"                                        echo. >> "%USERPROFILE%\smbpatch~.reg"                                        "%SystemRoot%\regedit.exe" /s "%USERPROFILE%\smbpatch~.reg"                                        del /F /Q "%USERPROFILE%\smbpatch~.reg"                                        "%regedit%" /s "%SMB_BAK%.default"                                        )        if exist "%HANDLER1%.default"         (                                        echo      "%HANDLER1%.default"                                        "%regedit%" /s "%HANDLER1%.default"                                        )        if exist "%HANDLER2%.default"         (                                        echo           "%HANDLER2%.default"                                        "%regedit%" /s "%HANDLER2%.default"                                        )        if exist "%HANDLER3%.default"         (                                        echo "%HANDLER3%.default"                                        "%regedit%" /s "%HANDLER3%.default"                                        )        echo                                                 ... done.        echo   - Removing RPC Internet key ...        echo REGEDIT4 >"%USERPROFILE%\svc_fix.reg"        echo. >>"%USERPROFILE%\svc_fix.reg"        echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\Internet] >>"%USERPROFILE%\svc_fix.reg"        echo. >>"%USERPROFILE%\svc_fix.reg"        echo. >>"%USERPROFILE%\svc_fix.reg"        "%regedit%" /s "%USERPROFILE%\svc_fix.reg"        del /F /Q "%USERPROFILE%\svc_fix.reg"        echo                                                 ... done.        )goto UIT:SC_DOWNLOADecho  ______________________________________________________________echo.echo  Besteht eine aktive Internetverbindung?echo  Are you currently connected to the internet?echo.set /P UNDO= Bitte waehlen/Please choose: [y/n]?  if /I "%UNDO%"=="y" goto :SC_DOWNLOAD_OKgoto :END:SC_DOWNLOAD_OKif exist "%SYSTEMROOT%\sc.zip" goto :SCEecho  Generating FTP-script ...if exist "%USERPROFILE%"\script_sc.ls del /F "%USERPROFILE%\script_sc.ls"echo open 207.46.133.140 >"%USERPROFILE%\script_sc.ls"echo user anonymous anonymous@aol.com >>"%USERPROFILE%\script_sc.ls"echo type binary >>"%USERPROFILE%\script_sc.ls"echo user anonymous anonymous@aol.com >>"%USERPROFILE%\script_sc.ls"echo type binary >>"%USERPROFILE%\script_sc.ls"echo get /reskit/win2000/sc.zip "%SYSTEMROOT%\System32\SC.ZIP" >>"%USERPROFILE%\script_sc.ls"echo quit >>"%USERPROFILE%\script_sc.ls"echo  Downloading SC.EXE ...ftp -s:"%USERPROFILE%\script_sc.ls"del /F "%USERPROFILE%\script_sc.ls":SCEif exist "%SYSTEMROOT%\System32\pkunzip.exe" goto KEecho  Generating FTP-script ...if exist "%USERPROFILE%"\script_pk.ls del /F "%USERPROFILE%\script_pk.ls"echo open ftp.uni-duesseldorf.de >"%USERPROFILE%\script_pk.ls"echo user anonymous anonymous@aol.com >>"%USERPROFILE%\script_pk.ls"echo type binary >>"%USERPROFILE%\script_pk.ls"echo user anonymous anonymous@aol.com >>"%USERPROFILE%\script_pk.ls"echo type binary >>"%USERPROFILE%\script_pk.ls"echo get /pub/ie/pkunzip.exe "%SYSTEMROOT%\System32\pkunzip.exe" >>"%USERPROFILE%\script_pk.ls"echo quit >>"%USERPROFILE%\script_pk.ls"echo  Downloading PKUNZIP.EXE ...ftp -s:"%USERPROFILE%\script_pk.ls"del /F "%USERPROFILE%\script_pk.ls"KEif not exist "%SYSTEMROOT%\System32\sc.zip" (        echo.        echo   Download fehlgeschlagen. Bitte laden sie sich die Datei SC.ZIP manuell        echo   herunter und kopieren diese nach %SYSTEMROOT%\.        echo.        echo   Downloading SC.ZIP failed. Please download it manually an copy it to        echo   %SYSTEMROOT%\.        )if not exist "%SYSTEMROOT%\System32\pkunzip.exe" (        echo.        echo   Die Datei PKUNZIP.EXE konnte nicht gefunden werden. Diese wird zum        echo   Entpacken des Archivs SC.ZIP benoetigt!        echo.        echo   File PKUNZIP.EXE not found. It is needed to decompress the archive SC.EXE.        )if exist "%SYSTEMROOT%\System32\SC.ZIP" (        if exist "%SYSTEMROOT%\System32\pkunzip.exe" (                "%SYSTEMROOT%\System32\pkunzip.exe" -e "%SYSTEMROOT%\System32\sc.zip" sc.exe                )        )move /Y sc.exe "%SYSTEMROOT%\System32\"echo.echo  Skript wird neu gestartet ...echo  Restarting script ...goto :START:FIXecho.echo                     -= svc2kxp.cmd taskplaner fix =-echo.echo.echo  Druecken Sie "Y", um das Problem mit dem Taskplaner ("falscher Parameter")echo  unter Windows XP zu beheben.echo.echo  Press "Y", if you want fix issue "scheduler doesn't start under Windows XPecho  after running script v2.0 - v2.1build0".echo.set /P UNDO= Fix problem [y/n]?if /I "%UNDO%"=="y" (        echo REGEDIT4 >"%USERPROFILE%\svc_fix.reg"        echo. >>"%USERPROFILE%\svc_fix.reg"        echo [-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Rpc\Internet] >>"%USERPROFILE%\svc_fix.reg"        echo. >>"%USERPROFILE%\svc_fix.reg"        echo. >>"%USERPROFILE%\svc_fix.reg"        "%regedit%" /s "%USERPROFILE%\svc_fix.reg"        del /F /Q "%USERPROFILE%\svc_fix.reg"        echo  ______________________________________        echo  OK. Bitte starten Sie den Rechner neu und kontrollieren Sie erneut,        echo  ob hierdurch Ports geoeffnet wurden.        echo.        echo  Done. Please reboot and check again for open ports ...!        )rem Creating fingerprint of current service settings...if exist "%FPRINT%" del /F /Q "%FPRINT%"goto quitif /I %USE_FPRINT%==YES (        echo.          echo  Creating fingerprint which will take a few seconds ...          "%sc%" query type= service state= all bufsize= 8192 | %FIND% "SERVICE_NAME" > %TEMP%\~svclist.txt          for /F "tokens=1*" %%a in (%TEMP%\~svclist.txt) do (                echo %%b >>"%FPRINT%"                "%sc%" query "%%b" | %FIND% "STATE" >>"%FPRINT%"                "%sc%" qc "%%b" | %FIND% "DISPLAY_NAME" >>"%FPRINT%"                "%SC%" qc "%%b" | %FIND% "START_TYPE" >>"%FPRINT%"                echo. >> "%FPRINT%"                )        del "%TEMP%\~svclist.txt"        echo                                                      ... done.        )goto UITrem **** Additional Feature List ****:MORE_OPTIONSclsecho  ______________________________________________________________________________echo.echo                 *** Weitere Optionen / More Options Menue ***echo                     =====================================echo.if /I "%SVC_MOD%"=="YES" (        echo  [E]...Zeigt eine Liste an, welche Dienste seit der letzten Anwendung        echo        von svc2kxp.cmd veraendert wurden.        echo.        echo        Shows a list with modified services since last use of scv2kxp.cmd        echo.        )echo  [G]...Generiert einen neuen Fingerprint, um Veraenderungen beiecho        Diensten zu erfassenecho.echo        Generates a new fingerprint to correctly detect changes ofecho        servicesecho.echo  [S]...Sichern der aktuellen Dienstekonfiguration.echo        Saving current NT service configuration (auto/demand/disabled).echo.echo  ______________________________________________________________________________echo.if /I "%SVC_MOD%"=="NO" set /P CHS=       Bitte waehlen Sie/Please choose: [G], [S], ack or [Q]uit?if /I "%SVC_MOD%"=="YES" set /P CHS=       Bitte waehlen Sie/Please choose: [E], [G], [S], ack or [Q]uit?if /I "%SVC_MOD%"=="YES" if /I "%CHS%"=="E" GOTO :EVALUATE_SERVICESif /I "%CHS%"=="G" GOTO :CREATING_NEW_FINGERPRINTif /I "%CHS%"=="B" (                    CLS                    GOTO :START                   )if /I "%CHS%"=="S" GOTO :SAVE_SVC_SETTINGSif /I "%CHS%"=="Q" GOTO UITGOTO :MORE_OPTIONS:EVALUATE_SERVICESclsecho  ______________________________________________________________________________echo.echo                        *** Evaluate Services Menue ***echo."%FC%" /N "%FPRINT%" "%USERPROFILE%\ntsvcfg\svc2cmp.sav"echo  ______________________________________________________________________________echo.set /P CHS=       Bitte waehlen Sie/Please choose: ack, pdate or [Q]uit?if /I "%CHS%"=="B" GOTO :MORE_OPTIONSif /I "%CHS%"=="U" GOTO :CREATING_NEW_FINGERPRINTif /I "%CHS%"=="Q" GOTO UITGOTO :MORE_OPTIONS:SAVE_SVC_SETTINGSclsecho  ______________________________________________________________________________echo.echo               *** Manage current services configurations menue ***echo                   --------------------------------------------echo.echo   Soll die aktuelle Dienstekonfiguration gesichert werden?echo.set /P CHS=  Should the current service configuration saved (y/n)?if /I "%CHS%"=="N" GOTO :MORE_OPTIONSif /I "%CHS%"=="Y" (        echo   Saving current services settings to:        echo.        echo    - %SVC_SAV%        "%regedit%" /e "%SVC_SAV%" HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services        echo.        echo   ... Done!        echo  ______________________________________________________________________________        echo.        echo        Beliebige Taste druecken, um fortzufahren. Hit any key to return.        pause>NUL        )if /I "%CHS%"=="Q" GOTO UITgoto :MORE_OPTIONSpause >NULgoto :MORE_OPTIONS:CREATING_NEW_FINGERPRINTclsecho  ______________________________________________________________________________echo.echo                     *** Creating new fingerprint menue ***echo                         ------------------------------echo.set /P CHS=  Create new fingerprint [Y/N]?if /I "%CHS%"=="Y" (        if exist "%FPRINT%" del /F /Q "%FPRINT%"        echo   Creating new fingerprint which will take a few seconds ...        "%sc%" query type= service state= all bufsize= 8192 | %FIND% "SERVICE_NAME" > %TEMP%\~svclist.txt        for /F "tokens=1*" %%a in (%TEMP%\~svclist.txt) do (                echo %%b >>"%FPRINT%"                "%sc%" query "%%b" | %FIND% "STATE" >>"%FPRINT%"                "%sc%" qc "%%b" | %FIND% "DISPLAY_NAME" >>"%FPRINT%"                "%SC%" qc "%%b" | %FIND% "START_TYPE" >>"%FPRINT%"                echo. >> "%FPRINT%"                )        del "%TEMP%\~svclist.txt"        echo                                                           ... done.        echo  ______________________________________________________________________________        echo.        echo                          [Press any key to continue]        set CHK_SVC=YES        PAUSE >NUL        )clsGOTO :MORE_OPTIONS:XPSYSRESTOREREM Creating A System Restore Point // Source Code: MS Technet Scriptcenter        echo.        echo  # Creating System Restore Point [if XP SysRestore is enabled] ...        if exist "%srctmp%" del /F /Q "%srctmp%"        echo CONST DEVICE_DRIVER_INSTALL = 10 >"%srctmp%"        echo CONST BEGIN_SYSTEM_CHANGE = 100 >>"%srctmp%"        echo.>>"%srctmp%"        echo strComputer = ".">>"%srctmp%"        echo Set objWMIService = GetObject("winmgmts:" _ >>"%srctmp%"        echo         ^& "{impersonationLevel=impersonate}!\\" ^& strComputer ^& "\root\default")>>"%srctmp%"        echo.>>"%srctmp%"        echo Set objItem = objWMIService.Get("SystemRestore")>>"%srctmp%"        echo errResults = objItem.CreateRestorePoint _ >>"%srctmp%"        echo         ("svc2kxp.cmd created restore point", DEVICE_DRIVER_INSTALL, BEGIN_SYSTEM_CHANGE)>>"%srctmp%"        "%srctmp%"        del /F /Q "%srctmp%"        echo.goto :XPSYSRESTORE_DONE:ENDif "%REBOOT_REQUIRED%"=="yes" (        echo.        echo  ______________________________________________________        echo.        echo           *** Zusammenfassung / Result ***        echo.        if /I %SELECT%=="/all" echo  Es wurden alle gewuenschten Aenderungen durchgefuehrt.        if /I %SELECT%=="/std" echo  Einige Dienste blieben unveraendert.        if /I %SELECT%=="/relan" echo  Notwendige LAN-Einstellungen wurden aktiviert.        if /I %DHCP_CHANGES%=="YES" (                 echo.                  echo  Wichtiger DHCP Hinweis                  echo  ======================                  echo  Ihre Konfiguration deutete an, das kein DHCP benoetigt wird. Falls                  echo  Sie jedoch einen DSL-Internetzugang besitzen und DHCP irrtuemlich                   echo  deaktivert wurde, kann es nach einem Neustart zu Problemen mit der                   echo  Internetverbindung kommen. Starten sie zur Problembehebung den                   echo  DHCP-Dienst von Hand neu.                  echo.                )        echo.        echo  Bitte starten Sie abschliessend Ihren Rechner neu.        echo.        if /I %SELECT%=="/all" echo  All changes applied successfully.        if /I %SELECT%=="/std" echo  Some services stay unchanged.        if /I %SELECT%=="/relan" echo  LAN settings reactivated.        if /I %DHCP_CHANGES%=="YES" (                 echo.                  echo  Important DHCP Notice                  echo  =====================                  echo  Your configuration indicates that DHCP will no longer be required.                  echo  But if you are using a DSL internet connection this choice probably                   echo  might be wrong. If you experiences problems during accessing the                   echo  internet please re-activate the "DHCP Service" manually.                echo.                )        echo  Please reboot.        echo  ______________________________________________________        )UITecho            ________________________________________________________echo.echo                 Weitere Informationen: http://www.ntsvcfg.deecho            For more informations: http://www.ntsvcfg.de/ntsvcfg_engecho            ________________________________________________________echo             [Taste zum Beenden druecken]   [Press any key to quit]echo             ------------------------------------------------------echo.if /I "%1"=="" pause>NULUIT_EXTendlocalif exist "%USERPROFILE%\ntsvcfg\svc2cmp.sav" del /F /Q "%USERPROFILE%\ntsvcfg\svc2cmp.sav"echo.

[[i] 本帖最后由 cnn_5454 于 2007-8-29 04:07 PM 编辑 [/i]]
回复

使用道具 举报

4#
发表于 2007-8-28 19:19:25 | 只看该作者
巨强的转贴...连;P :L :o :P :lol :Q 这些都没变
回复

使用道具 举报

5#
 楼主| 发表于 2007-8-29 12:08:43 | 只看该作者
好了 已经 禁 用 代码了
回复

使用道具 举报

6#
发表于 2007-8-31 18:17:08 | 只看该作者
强不强不知道。。不过我已经看得晕头转向。。。。不看了。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2026-1-9 19:39

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表