欧美阿v视频在线大全_亚洲欧美中文日韩V在线观看_www性欧美日韩欧美91_亚洲欧美日韩久久精品

主頁 > 知識庫 > 批處理設(shè)置windows服務(wù)器的代碼ThecSafe1.9.4第1/3頁

批處理設(shè)置windows服務(wù)器的代碼ThecSafe1.9.4第1/3頁

熱門標(biāo)簽:谷歌地圖標(biāo)注時間 廣州云外呼系統(tǒng)公司 岳陽縣地圖標(biāo)注app 好的人工智能電話機器人 地圖標(biāo)注銷售數(shù)據(jù) 中國地圖標(biāo)注省份顏色 百應(yīng)ai電話機器人銷售怎么樣 云南旅游地圖標(biāo)注app 地圖標(biāo)注位置有用嗎
@Echo Off
TITLE  常來網(wǎng)服務(wù)器高級安全設(shè)置器

:start
CLS
COLOR 1f
Rem 使用COLOR命令對控制臺輸出顏色進行更改
MODE con: COLS=32 LINES=21
Rem MODE語句為設(shè)定窗體的寬和高
Set tm1=%time:~0,2%
Set tm2=%time:~3,2%
Set tm3=%time:~6,2%
Echo %date% %tm1%點%tm2%分%tm3%秒 
Echo ================================
Echo 請選擇要進行的操作,然后按回車
Echo ───────────────
Echo.
Echo A. 一鍵搞定/全自動設(shè)置服務(wù)器
Echo 0. 清理系統(tǒng)垃圾文件
Echo 1. 給系統(tǒng)危險文件設(shè)置權(quán)限
Echo 2. 給系統(tǒng)危險文件夾設(shè)置權(quán)限
Echo 3. 系統(tǒng)服務(wù)優(yōu)化
Echo 4. 注冊表危險組件刪除
Echo 5. 防DDOS洪水攻擊處理
Echo 6. 導(dǎo)入常來網(wǎng)專用安全策略
Echo 7. 重啟IIS使設(shè)置生效
Echo 8. 刷新當(dāng)前時間
Echo 9. 鎖定計算機
Echo L. 注銷當(dāng)前用戶
Echo Q. 退出安全設(shè)置器
Echo.

:cho 
Set Choice=
Set /P Choice=選擇:
Rem 設(shè)定變量"Choice"為用戶輸入的字符
If Not "%Choice%"=="" Set Choice=%Choice:~0,1%
Rem 如果輸入大于1位,取第1位,比如輸入132,則返回值為1
Echo.
If /I "%Choice%"=="A" Goto Auto
If /I "%Choice%"=="0" Goto Clear
If /I "%Choice%"=="1" Goto SetFile
If /I "%Choice%"=="2" Goto SetFolder
If /I "%Choice%"=="3" Goto Service
If /I "%Choice%"=="4" Goto Reg
If /I "%Choice%"=="5" Goto Ddos
If /I "%Choice%"=="6" Goto Ipsec
If /I "%Choice%"=="7" Goto restartiis
If /I "%Choice%"=="8" Goto start
If /I "%Choice%"=="9" Goto lock
If /I "%Choice%"=="L" Goto logoff
If /I "%Choice%"=="Q" Goto End
Rem 為避免出現(xiàn)返回值為空或含空格而導(dǎo)致程序異常,需在變量外另加雙引號
Rem 注意,If語句需要雙等于號
Rem 如果輸入的字符不是以上數(shù)字,將返回重新輸入
Echo 選擇無效,請重新輸入
Echo.
Goto cho

:Clear
CLS
MODE con: COLS=80 LINES=18
COLOR 70
Echo.
Echo 正在清理系統(tǒng)垃圾文件,請稍等......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
del /f /s /q %windir%\temp\*.*
del /f /s /q %userprofile%\cookies\*.*
del /f /s /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"

Echo 清理系統(tǒng)垃圾完成! 請按任意鍵返回并選1繼續(xù)...
PAUSE >nul
Goto start

:SetFile
CLS
MODE con: COLS=80 LINES=18
COLOR 70
Echo.
Rem 刪除系統(tǒng)危險文件的訪問權(quán)限,只留管理組成員

cscript.exe xcacls.vbs "%SystemDrive%/boot.ini" /G Administrators:F
cscript.exe xcacls.vbs "%SystemDrive%/boot.ini" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemDrive%/AUTOEXEC.BAT" /G Administrators:F
cscript.exe xcacls.vbs "%SystemDrive%/AUTOEXEC.BAT" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemDrive%/Program Files/Internet Explorer/iexplore.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemDrive%/Program Files/Internet Explorer/iexplore.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/net.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/net.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/net1.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/net1.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/cmd.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/cmd.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/ftp.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/ftp.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/scrrun.dll" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/scrrun.dll" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/shell.dll" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/shell.dll" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/netstat.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/netstat.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/regedit.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/regedit.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/secedit.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/secedit.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/gpresult.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/gpresult.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/gpupdate.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/gpupdate.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/at.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/at.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/attrib.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/attrib.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/format.com" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/format.com" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/logoff.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/logoff.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/shutdown.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/shutdown.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/telnet.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/telnet.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/wscript.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/wscript.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/doskey.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/doskey.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/help.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/help.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/ipconfig.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/ipconfig.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/nbtstat.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/nbtstat.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/print.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/print.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/xcopy.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/xcopy.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/edit.com" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/edit.com" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/regedt32.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/regedt32.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/reg.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/reg.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/register.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/register.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/replace.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/replace.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/nwscript.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/nwscript.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/share.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/share.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/ping.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/ping.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/ipsec6.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/ipsec6.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/netsh.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/netsh.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/debug.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/debug.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/route.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/route.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/tracert.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/tracert.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/powercfg.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/powercfg.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/nslookup.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/nslookup.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/arp.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/arp.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/rsh.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/rsh.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/netdde.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/netdde.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/mshta.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/mshta.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/mountvol.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/mountvol.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/tftp.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/tftp.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/setx.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/setx.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/find.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/find.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/finger.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/finger.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/where.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/where.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/regsvr32.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/regsvr32.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/cacls.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/cacls.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/sc.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/sc.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/shadow.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/shadow.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/runas.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/runas.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/wshom.ocx" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/wshom.ocx" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/wshext.dll" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/wshext.dll" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/shell32.dll" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/shell32.dll" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/zipfldr.dll" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/zipfldr.dll" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/PCHealth/HelpCtr/Binaries/msconfig.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/PCHealth/HelpCtr/Binaries/msconfig.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/notepad.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/notepad.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/regedit.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/regedit.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/winhelp.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/winhelp.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/winhlp32.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/winhlp32.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/notepad.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/notepad.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/edlin.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/edlin.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/posix.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/posix.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/atsvc.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/atsvc.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/qbasic.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/qbasic.exe" /G Administrators:F

cscript.exe xcacls.vbs "%SystemRoot%/system32/runonce.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/runonce.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/syskey.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/syskey.exe" /D Guests:F /E

cscript.exe xcacls.vbs "%SystemRoot%/system32/cscript.exe" /G Administrators:F
cscript.exe xcacls.vbs "%SystemRoot%/system32/cscript.exe" /D Guests:F /E

Echo 給系統(tǒng)危險文件設(shè)置權(quán)限設(shè)定完畢! 請按任意鍵返回并選2繼續(xù)...
PAUSE >nul
Goto start

:SetFolder
CLS
MODE con: COLS=80 LINES=18
COLOR 70
Echo.
Rem 刪除C盤所有的Everone權(quán)限
cd/ 

cscript.exe xcacls.vbs "%SystemDrive%" /r "Everyone" /e 
cscript.exe xcacls.vbs "%SystemRoot%" /r "Everyone" /e 
@REM "cscript.exe xcacls.vbs "%SystemRoot%/Registration" /r "Everyone" /e " 這個不能去Everyone權(quán)限
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings" /r "Everyone" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users" /r "Everyone" /e 
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Documents"  /r "Everyone" /e 
cscript.exe xcacls.vbs "%SystemDrive%/Inetpub/aspnet_client"  /r "Everyone" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data/Microsoft"  /r "Everyone" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data/Microsoft/HTML Help"  /r "Everyone" /e

Rem 刪除C盤所有的CREATOR OWNER權(quán)限
cd/ 

cscript.exe xcacls.vbs "%SystemRoot%" /r "CREATOR OWNER" /e
cscript.exe xcacls.vbs "%SystemDrive%" /r "CREATOR OWNER" /e
cscript.exe xcacls.vbs "%SystemRoot%/repair" /r "CREATOR OWNER" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32" /r "CREATOR OWNER" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/wbem" /r "CREATOR OWNER" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/config" /r "CREATOR OWNER" /e
cscript.exe xcacls.vbs "%SystemDrive%/Program Files" /r "CREATOR OWNER" /e
cscript.exe xcacls.vbs "%SystemDrive%/Program Files/WindowsUpdate" /r "CREATOR OWNER" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Documents"  /r "CREATOR OWNER" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data"  /r "CREATOR OWNER" /e

Rem 刪除C盤所有的Power Users權(quán)限
cd/ 

cscript.exe xcacls.vbs "%SystemRoot%" /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemRoot%/repair" /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32" /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/wbem" /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/config" /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Program Files" /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings" /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Program Files/WindowsUpdate" /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users" /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Documents"  /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data"  /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data/Microsoft"  /r "Power Users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data/Microsoft/HTML Help"  /r "Power Users" /e

Rem 刪除C盤所有的TERMINAL SERVER USER權(quán)限
cd/ 

cscript.exe xcacls.vbs "%SystemDrive%/Program Files" /r "TERMINAL SERVER USER" /e

Rem 添加Guests組拒絕權(quán)限[IUSR_XXX或某個虛擬主機用戶組禁止列目錄,可有效防止FSO類木馬]
cd/

cscript.exe xcacls.vbs "%SystemDrive%/Program Files" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemRoot%/repair" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemRoot%/system32" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemRoot%/system32/config" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemRoot%/system32/inetsrv" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemRoot%/system32/inetsrv/MetaBack" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemRoot%/system32/inetsrv/ASP Compiled Templates" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemRoot%/IIS Temporary Compressed Files" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemRoot%/Microsoft.NET/Framework/v1.1.4322/Temporary ASP.NET Files" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemRoot%/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data/Microsoft" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data/Microsoft/Crypto/DSS/achineKeys" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data/Microsoft/Crypto/RSA/MachineKeys" /D Guests:1;1 /E
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data/Microsoft/HTML Help" /D Guests:1;1 /E

Rem 刪除C盤的所有的users的訪問權(quán)限
cd/

cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users" /r "users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Documents"  /r "users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings/All Users/Application Data"  /r "users" /e
cscript.exe xcacls.vbs "%SystemDrive%" /r "users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Program Files" /r "users" /e
cscript.exe xcacls.vbs "%SystemDrive%/Documents and Settings" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/addins" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/AppPatch" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/Connection Wizard" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/Debug" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/Driver Cache" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/Help" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/IIS Temporary Compressed Files" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/java" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/msagent" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/mui" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/repair" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/Resources" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/security" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/TAPI" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/twain_32" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/Web" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/3com_dmi" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/administration" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/Cache" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/CatRoot2" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/Com" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/config" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/dhcp" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/drivers" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/export" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/icsxml" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/lls" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/LogFiles" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/MicrosoftPassport" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/mui" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/oobe" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/system32/ShellExt" /r "users" /e
@Rem cscript.exe xcacls.vbs "%SystemRoot%/system32/wbem" /r "users" /e 這里影響.NET程序的正常運行,所以去掉!

Rem 添加IIS_WPG的訪問權(quán)限
cscript.exe xcacls.vbs "%SystemDrive%" /g IIS_WPG:;b468 /e
cscript.exe xcacls.vbs "%SystemRoot%" /g IIS_WPG:b1468;b1468 /e
cscript.exe xcacls.vbs "%SystemDrive%/Program Files" /g IIS_WPG:r /e
cscript.exe xcacls.vbs "%SystemRoot%/Downloaded Program Files" /g IIS_WPG:c /e
cscript.exe xcacls.vbs "%SystemRoot%/Help" /g IIS_WPG:c /e
cscript.exe xcacls.vbs "%SystemRoot%/IIS Temporary Compressed Files" /g IIS_WPG:c /e
cscript.exe xcacls.vbs "%SystemRoot%/Offline Web Pages" /g IIS_WPG:c /e
cscript.exe xcacls.vbs "%SystemRoot%/System32" /g IIS_WPG:c /e
cscript.exe xcacls.vbs "%SystemRoot%/Tasks" /g IIS_WPG:c /e
cscript.exe xcacls.vbs "%SystemRoot%/Web" /g IIS_WPG:c /e

Rem 添加iis_wpg的訪問權(quán)限[裝了MACFEE的軟件專用]
Rem cscript.exe xcacls.vbs "%SystemDrive%/Program Files/Network Associates" /g IIS_WPG:r /e

Rem 添加users的訪問權(quán)限
cscript.exe xcacls.vbs "%SystemRoot%/temp" /g Everyone:m /e
cscript.exe xcacls.vbs "%SystemDrive%/Program Files/Common Files" /g Users:r /e
cscript.exe xcacls.vbs "%SystemRoot%/Microsoft.NET/Framework" /g users:b1468;b1468 /e



Rem 禁止[列出文件夾 / 讀取數(shù)據(jù)]此權(quán)限出現(xiàn)
Rem ------------------------------------------- 
Rem 添加Users的訪問權(quán)限[裝了PHP的服務(wù)器專用]
cscript.exe xcacls.vbs "C:\php5" /g users:b468;b468 /e
cscript.exe xcacls.vbs "%SystemRoot%/system32" /r "users" /e
cscript.exe xcacls.vbs "%SystemRoot%/System32" /g users:b468;b468 /e
Rem ------------------------------------------- 

Rem 刪除D盤的所有的users的訪問權(quán)限 
cscript.exe xcacls.vbs "D:\" /r "users" /e
cscript.exe xcacls.vbs "D:\" /r "everyone" /e
cscript.exe xcacls.vbs "D:\" /r "CREATOR OWNER" /e

Rem 刪除E盤的所有的users的訪問權(quán)限 
cscript.exe xcacls.vbs "E:\" /r "users" /e
cscript.exe xcacls.vbs "E:\" /r "everyone" /e
cscript.exe xcacls.vbs "E:\" /r "CREATOR OWNER" /e

Rem 刪除F盤的所有的users的訪問權(quán)限 
cscript.exe xcacls.vbs "F:\" /r "users" /e
cscript.exe xcacls.vbs "F:\" /r "everyone" /e
cscript.exe xcacls.vbs "F:\" /r "CREATOR OWNER" /e

Rem 刪除C盤Windows下的所有的危險文件夾

attrib %SystemRoot%/Web/printers -s -r -h
del %SystemRoot%\Web\printers\*.* /s /q /f
rd %SystemRoot%\Web\printers /s /q

attrib %SystemRoot%\Help\iisHelp -s -r -h
del %SystemRoot%\Help\iisHelp\*.* /s /q /f
rd %SystemRoot%\Help\iisHelp /s /q

attrib %SystemRoot%\system32\inetsrv\iisadmpwd -s -r -h
del %SystemRoot%\system32\inetsrv\iisadmpwd\*.* /s /q /f
rd %SystemRoot%\system32\inetsrv\iisadmpwd /s /q

Echo 給系統(tǒng)危險文件夾設(shè)置權(quán)限設(shè)定完畢! 請按任意鍵返回并選3繼續(xù)...
PAUSE >nul
Goto start

:Service
CLS
MODE con: COLS=80 LINES=18
COLOR 70
Echo.

@REM Application Experience Lookup Service
@REM 在應(yīng)用程序啟動時為應(yīng)用程序處理應(yīng)用程序兼容性查找請求。
@REM 建議: 禁用
sc config AeLookupSvc start= DISABLED
sc stop AeLookupSvc

@REM Background Intelligent Transfer Service
@REM 在后臺傳輸客戶端和服務(wù)器之間的數(shù)據(jù)。如果禁用了 BITS,一些功能,如 Windows Update,就無法正常運行。
@REM 建議: 禁用
sc config BITS start= DISABLED
sc stop BITS

@REM DHCP Client
@REM 為此計算機注冊并更新 IP 地址。如果此服務(wù)停止,計算機將不能接收動態(tài) IP 地址和 DNS 更新。如果此服務(wù)被禁用,所有明確依賴它的服務(wù)都將不能啟動。
@REM 建議: 禁用
sc config Dhcp start= DISABLED
sc stop Dhcp

@REM Network Location Awareness (NLA)
@REM 收集并保存網(wǎng)絡(luò)配置和位置信息,并在信息改動時通知應(yīng)用程序。
@REM 建議: 禁用
sc config Nla start= DISABLED
sc stop Nla

@REM Secondary Logon
@REM 啟用替換憑據(jù)下的啟用進程。如果此服務(wù)被終止,此類型登錄訪問將不可用。如果此服務(wù)被禁用,任何依賴它的服務(wù)將無法啟動。
@REM 建議: 禁用
sc config seclogon start= DISABLED
sc stop seclogon

@REM TCP/IP NetBIOS Helper
@REM 提供 TCP/IP (NetBT) 服務(wù)上的 NetBIOS 和網(wǎng)絡(luò)上客戶端的 NetBIOS 名稱解析的支持,從而使用戶能夠共享文件、打印和登錄到網(wǎng)絡(luò)。如果此服務(wù)被停用,這些功能可能不可用。如果此服務(wù)被禁用,任何依賴它的服務(wù)將無法啟動。
@REM 建議: 禁用
sc config LmHosts start= DISABLED
sc stop LmHosts

@REM Wireless Configuration
@REM 啟用 IEEE 802.11 適配器的自動配置。如果此服務(wù)停止,自動配置將不可用。如果此服務(wù)被禁用,所有明確依賴它的服務(wù)都將不能啟動。
@REM 建議: 禁用
sc config WZCSVC start= DISABLED
sc stop WZCSVC

@REM Distributed Transaction Coordinator
@REM 協(xié)調(diào)跨多個數(shù)據(jù)庫、消息隊列、文件系統(tǒng)等資源管理器的事務(wù)。如果停止此服務(wù),則不會發(fā)生這些事務(wù)。如果禁用此服務(wù),顯式依賴此服務(wù)的其他服務(wù)將無法啟動。
@REM 建議: 禁用
sc config MSDTC start= DISABLED
sc stop MSDTC

@REM Smart Card (智慧卡)
@REM 微軟:管理這個計算機所讀取智能卡的存取。如果這個服務(wù)被停止,這個計算機將無法讀取智能卡。如果這個服務(wù)被停用,任何明確依存于它的服務(wù)將無法啟動。
@REM 補充: 如果你不使用 Smart Card ,那就可以關(guān)了
@REM 依存: Plug and Play
@REM 建議: 禁用
sc config   SCardSvr start= DISABLED
sc stop SCardSvr

@REM Internet Connection Firewall (ICF) / Internet Connection Sharing (ICS)[For XP]
@REM 微軟:為您的家用網(wǎng)絡(luò)或小型辦公室網(wǎng)絡(luò)提供網(wǎng)絡(luò)地址轉(zhuǎn)譯、尋址及名稱解析服務(wù)和/或防止干擾的服務(wù)。
@REM 補充: 如果你不使用因特網(wǎng)聯(lián)機共享(ICS)或是 XP 內(nèi)含的因特網(wǎng)聯(lián)機防火墻(ICF)你可以關(guān)掉
@REM 依存: Application Layer Gateway Service、Network Connections、Network Location Awareness(NLA)、remote Access Connection Manager
@REM 建議: 禁用
sc config   SharedAccess start= DEMAND
sc stop SharedAccess

@REM Windows Image Acquisition (WIA) (Windows影像取得程序)
@REM 微軟: 為掃描儀和數(shù)字相機提供影像擷取服務(wù)。
@REM 補充:如果掃描儀和數(shù)字相機內(nèi)部具有支持WIA功能的話,那就可以直接看到圖檔,不需要其它的驅(qū)動程序,所以沒有掃描儀和數(shù)字相機的使用者大可關(guān)了
@REM 依存:remote Procedure Call (RPC)
@REM 建議: 禁用
sc config   stisvc start= DISABLED
sc stop stisvc

@REM MS Software Shadow Copy Provider[For XP]
@REM 微軟:管理磁盤區(qū)陰影復(fù)制服務(wù)所取得的以軟件為主的磁盤區(qū)陰影復(fù)制。如果停止這個服務(wù),就無法管理以軟件為主的磁盤區(qū)陰影復(fù)制。
@REM 補充: 如上所說的,用來備份的東西,如 MS Backup 程序就需要這個服務(wù)
@REM 依存:remote Procedure Call (RPC)
@REM 建議: 禁用
sc config   swprv start= DISABLED
sc stop swprv
123下一頁閱讀全文

標(biāo)簽:東營 三沙 南京 鄭州 周口 三明 天門 宜昌

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《批處理設(shè)置windows服務(wù)器的代碼ThecSafe1.9.4第1/3頁》,本文關(guān)鍵詞  批處理,設(shè)置,windows,服務(wù)器,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《批處理設(shè)置windows服務(wù)器的代碼ThecSafe1.9.4第1/3頁》相關(guān)的同類信息!
  • 本頁收集關(guān)于批處理設(shè)置windows服務(wù)器的代碼ThecSafe1.9.4第1/3頁的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    欧美阿v视频在线大全_亚洲欧美中文日韩V在线观看_www性欧美日韩欧美91_亚洲欧美日韩久久精品
  • <rt id="w000q"><acronym id="w000q"></acronym></rt>
  • <abbr id="w000q"></abbr>
    <rt id="w000q"></rt>
    日韩欧美在线综合网| 久久精品99国产精品| 成人av电影在线| 日本视频在线免费| 久久久欧美精品sm网站| 久久国产精品99久久久久久老狼 | 亚洲色图欧美激情| 国产69精品一区二区亚洲孕妇| 一区二区三区在线观看免费视频| xnxx国产精品| 狠狠网亚洲精品| 欧美激情久久久久久久| 国产欧美日韩视频在线观看| 国产成人在线视频网址| 26uuu成人网| 中文字幕亚洲电影| 91免费看`日韩一区二区| 欧美三级韩国三级日本三斤| 亚洲国产成人porn| 玖玖爱在线精品视频| 日韩亚洲欧美一区| 免费观看91视频大全| 欧美a在线播放| 日本一区二区视频在线| 高潮精品一区videoshd| 在线观看亚洲精品视频| 亚洲成a人片在线不卡一二三区 | 国内精品免费视频| 91.xcao| 蜜桃视频第一区免费观看| 中文字幕人妻一区二区三区在线视频| 欧美精品一区二区精品网| 国产一区二区三区在线观看精品| 美女网站视频色| 亚洲欧洲精品一区二区三区不卡| 可以看的av网址| 欧美电影在线免费观看| 美女一区二区在线观看| 911国产在线| 夜夜嗨av一区二区三区四季av| 日韩精品人妻中文字幕有码| 欧美xxxxxxxxx| 高清不卡在线观看av| 欧美性大战久久久| 日韩精品三区四区| 亚洲女同二女同志奶水| 亚洲欧美经典视频| 中文文字幕文字幕高清| 欧美激情一区二区三区蜜桃视频| www.亚洲色图.com| 91麻豆精品国产91久久久| 国精产品一区一区三区mba桃花| 色综合久久久久综合99| 亚洲第一搞黄网站| 天天躁日日躁aaaxxⅹ| 国产精品女人毛片| 逼特逼视频在线观看| 久久久综合视频| 性色av浪潮av| 精品国产免费久久| 99re在线精品| 精品日韩99亚洲| 99视频精品全部免费在线| 欧美一区二区在线免费播放| 国产白丝精品91爽爽久久| 欧美亚洲动漫另类| 国产一区在线观看视频| 欧美日韩免费视频| 国产一区二区h| 欧美久久免费观看| 国产999精品久久| 欧美一区二区不卡视频| 成人av午夜电影| 26uuu亚洲综合色| 一卡二卡三卡四卡五卡| 国产日韩欧美精品一区| 日本少妇一区二区三区| 欧美激情在线免费观看| 国产精品无码在线| 日韩一区在线播放| 人妻aⅴ无码一区二区三区 | 伊人色综合久久天天人手人婷| 69精品无码成人久久久久久| 亚洲夂夂婷婷色拍ww47 | 日产国产高清一区二区三区| 全网免费在线播放视频入口| 奇米影视7777精品一区二区| 在线免费亚洲电影| 国产精品综合久久| 日韩欧美不卡在线观看视频| 亚洲国产综合av| 国产精品全国免费观看高清| 波多野结衣 在线| 亚洲综合久久久| 国产色无码精品视频国产| 麻豆91在线播放免费| 欧美日本一区二区三区| av中文字幕亚洲| 日本一区二区三级电影在线观看 | 一区二区三区在线观看动漫| 国产小视频你懂的| 日韩—二三区免费观看av| 欧美色爱综合网| 成人精品小蝌蚪| 国产亚洲精品7777| 免费人成又黄又爽又色| 日韩福利视频网| 91精品欧美福利在线观看| 精品人妻人人做人人爽夜夜爽| 国产精品初高中害羞小美女文| 懂色av蜜臀av粉嫩av永久| 久久激五月天综合精品| 日韩免费成人网| 粉嫩av懂色av蜜臀av分享| 亚洲午夜成aⅴ人片| 欧洲精品一区二区三区在线观看| 成年人午夜久久久| 国产精品久久久久久久裸模| 亚洲欧美精品久久| 国产电影一区在线| 国产欧美日韩在线观看| 奇米网一区二区| 国产精品一区一区三区| 国产天堂亚洲国产碰碰| 青青青视频在线免费观看| 狠狠色2019综合网| 久久伊人中文字幕| 四虎国产成人精品免费一女五男| 国产尤物一区二区在线| 国产午夜精品在线观看| 免费精品在线视频| 成人小视频在线观看| 国产精品嫩草影院av蜜臀| 国产免费久久久久| av网站免费线看精品| 亚洲另类在线一区| 欧美调教femdomvk| 理论片大全免费理伦片| 日韩国产精品久久久久久亚洲| 日韩欧美一区二区在线视频| a天堂中文字幕| 黄色日韩网站视频| 国产精品色在线| 色偷偷成人一区二区三区91| 91麻豆免费看片| 亚洲成人av福利| 日韩久久久精品| 国产激情av在线| 成人精品国产福利| 亚洲精品综合在线| 337p亚洲精品色噜噜狠狠| 欧美特黄一区二区三区| 国产黄人亚洲片| 中文字幕在线观看一区| 欧美日韩亚洲国产综合| 91av在线免费| 国产麻豆成人传媒免费观看| 中文字幕亚洲成人| 欧美日韩dvd在线观看| 一级黄色性视频| 成人免费视频视频在线观看免费| 亚洲摸摸操操av| 欧美一区二区视频观看视频| 在线视频第一页| 成人免费视频视频在线观看免费| 亚洲一区在线看| 日韩精品一区二区三区蜜臀| а天堂中文在线资源| 亚洲欧美激情一区二区三区| 日本欧美一区二区在线观看| 国产亚洲欧美日韩俺去了| 色av一区二区| 欧洲一级黄色片| 丁香婷婷综合网| 婷婷开心激情综合| 国产亚洲精品福利| 欧美色爱综合网| 亚洲一级黄色录像| 91片黄在线观看| 美女视频免费一区| 亚洲日本在线a| 欧美大肚乱孕交hd孕妇| 一区二区在线观看免费视频| 国产激情视频网站| 国产精一品亚洲二区在线视频| 亚洲国产综合色| 久久久精品欧美丰满| 欧美性猛交xxxxxxxx| 青娱乐国产视频| 极品人妻一区二区| 国产在线播放一区三区四| 亚洲线精品一区二区三区| 久久久不卡影院| 欧美日韩大陆一区二区| 国产wwwwxxxx| 久久久久国产精品无码免费看| 福利电影一区二区| 日本三级亚洲精品| 一区二区三区不卡在线观看| 国产欧美日韩不卡免费|