| 導購 | 订阅 | 在线投稿
分享
 
 
 

Windows NT/2000 系統默認共享清除工具 (批處理文件)

來源:互聯網網民  2006-12-17 09:48:38  評論

Windows NT/2000 系統默認共享清除工具 (批處理文件)

Windows NT/2000 系統默認共享清除工具 (批處理文件) Windows NT/2000 系統默認共享清除工具

作者:阿新(Seraph Chutium)

主頁:http://com.6to23.com/

================================================================================

使用方法:

例如,刪除系統默認共享:

delshare c d e ipc admin print

若本地硬盤盤符不是 C: D: E: ,請自行修改

如:

本地硬盤爲 C: D: E: X: Y: Z: ,則應改爲:

delshare c d e x y z ipc admin print

*** 支持可同時刪除 9 個共享目錄 ***

================================================================================

手動清除的簡單總結:

使用 Windows NT/2000 的管理工具poledit.exe(系統策略配置器),選擇 打開注冊表 -> 本地計算機 -> Windows NT 網絡 -> 共享 -> 將其中的兩個選項取消。

以上方法實際還是用的修改注冊表,實際清除過程在我做的delshare.bat實現過程如下:

echo 修改注冊表項,修改系統默認共享屬性

echo.

echo 生成 delshare.reg 准備修改注冊表

echo Windows Registry Editor Version 5.00> c:\delshare.reg

echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]>> c:\delshare.reg

echo "AutoShareWks"=dword:00000000>> c:\delshare.reg

echo "AutoShareServer"=dword:00000000>> c:\delshare.reg

echo 運行 delshare.reg 修改注冊表

regedit /s c:\delshare.reg

echo 刪除 delshare.reg 臨時文件

del c:\delshare.reg

================================================================================

另外做了一個在英文 Windows NT/2000 下使用的 delsharen.bat ,清除方法和中文版的相同,只是更改了運行的語言環境。

英文版全部代碼如下:

---====== http://chutium.top263.net/software/delsharen.bat =====---

@echo off

:Rem Check Parameters

if {%1}=={} goto :Usage

:Rem Main

echo.

echo ------------------------------------------------------

echo.

echo Delete share drivers

echo.

net share %1$ /delete

net share %2$ /delete

net share %3$ /delete

net share %4$ /delete

net share %5$ /delete

net share %6$ /delete

net share %7$ /delete

net share %8$ /delete

net share %9$ /delete

net stop Server

net start Server

echo.

echo Share drivers has been deleted completely.

echo.

echo ------------------------------------------------------

echo.

echo Edit registry

echo.

echo MAKE delshare.reg for edit registry

echo Windows Registry Editor Version 5.00> c:\delshare.reg

echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]>> c:\delshare.reg

echo "AutoShareWks"=dword:00000000>> c:\delshare.reg

echo "AutoShareServer"=dword:00000000>> c:\delshare.reg

echo RUN delshare.reg to edit registry

regedit /s c:\delshare.reg

echo DELETE temporary file: delshare.reg

del c:\delshare.reg

goto :END

:Usage

echo.

echo ------------------------------------------------------

echo.

echo Windows NT/2000 Default share drivers remove tools.

echo.

echo AUTHOR : Seraph Chutium

echo Homepage: http://com.6to23.com/

echo.

echo Error: Parameters False

echo.

echo *=*=* Please input parameters *=*=*

echo.

echo For example:

echo delshare c d e ipc admin print

echo.

echo If the local drivers is not C: D: E: , you mast change it

echo.

echo Give an example:

echo Local drivers is C: D: E: X: Y: Z:

echo delshare c d e x y z ipc admin print

echo.

echo *** It only can delete nine shares at one time ***

echo.

echo ------------------------------------------------------

goto :EOF

:END

echo.

echo ------------------------------------------------------

echo.

echo Windows NT/2000 Default share drivers removed completely.

echo.

echo AUTHOR : Seraph Chutium

echo Homepage: http://com.6to23.com/

echo.

echo ------------------------------------------------------

echo.

:EOF

---====== http://chutium.top263.net/software/delsharen.bat =====---

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

阿新 - Seraph Chutium

http://com.6to23.com/

http://www.cnhack.org/

 
特别声明:以上内容(如有图片或视频亦包括在内)为网络用户发布,本站仅提供信息存储服务。
 
Windows NT/2000 系統默認共享清除工具 (批處理文件) Windows NT/2000 系統默認共享清除工具 (批處理文件) Windows NT/2000 系統默認共享清除工具 作者:阿新(Seraph Chutium) 主頁:http://com.6to23.com/ ================================================================================ 使用方法: 例如,刪除系統默認共享: delshare c d e ipc admin print 若本地硬盤盤符不是 C: D: E: ,請自行修改 如: 本地硬盤爲 C: D: E: X: Y: Z: ,則應改爲: delshare c d e x y z ipc admin print *** 支持可同時刪除 9 個共享目錄 *** ================================================================================ 手動清除的簡單總結: 使用 Windows NT/2000 的管理工具poledit.exe(系統策略配置器),選擇 打開注冊表 -> 本地計算機 -> Windows NT 網絡 -> 共享 -> 將其中的兩個選項取消。 以上方法實際還是用的修改注冊表,實際清除過程在我做的delshare.bat實現過程如下: echo 修改注冊表項,修改系統默認共享屬性 echo. echo 生成 delshare.reg 准備修改注冊表 echo Windows Registry Editor Version 5.00> c:\delshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]>> c:\delshare.reg echo "AutoShareWks"=dword:00000000>> c:\delshare.reg echo "AutoShareServer"=dword:00000000>> c:\delshare.reg echo 運行 delshare.reg 修改注冊表 regedit /s c:\delshare.reg echo 刪除 delshare.reg 臨時文件 del c:\delshare.reg ================================================================================ 另外做了一個在英文 Windows NT/2000 下使用的 delsharen.bat ,清除方法和中文版的相同,只是更改了運行的語言環境。 英文版全部代碼如下: ---====== http://chutium.top263.net/software/delsharen.bat =====--- @echo off :Rem Check Parameters if {%1}=={} goto :Usage :Rem Main echo. echo ------------------------------------------------------ echo. echo Delete share drivers echo. net share %1$ /delete net share %2$ /delete net share %3$ /delete net share %4$ /delete net share %5$ /delete net share %6$ /delete net share %7$ /delete net share %8$ /delete net share %9$ /delete net stop Server net start Server echo. echo Share drivers has been deleted completely. echo. echo ------------------------------------------------------ echo. echo Edit registry echo. echo MAKE delshare.reg for edit registry echo Windows Registry Editor Version 5.00> c:\delshare.reg echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters]>> c:\delshare.reg echo "AutoShareWks"=dword:00000000>> c:\delshare.reg echo "AutoShareServer"=dword:00000000>> c:\delshare.reg echo RUN delshare.reg to edit registry regedit /s c:\delshare.reg echo DELETE temporary file: delshare.reg del c:\delshare.reg goto :END :Usage echo. echo ------------------------------------------------------ echo. echo Windows NT/2000 Default share drivers remove tools. echo. echo AUTHOR : Seraph Chutium echo Homepage: http://com.6to23.com/ echo. echo Error: Parameters False echo. echo *=*=* Please input parameters *=*=* echo. echo For example: echo delshare c d e ipc admin print echo. echo If the local drivers is not C: D: E: , you mast change it echo. echo Give an example: echo Local drivers is C: D: E: X: Y: Z: echo delshare c d e x y z ipc admin print echo. echo *** It only can delete nine shares at one time *** echo. echo ------------------------------------------------------ goto :EOF :END echo. echo ------------------------------------------------------ echo. echo Windows NT/2000 Default share drivers removed completely. echo. echo AUTHOR : Seraph Chutium echo Homepage: http://com.6to23.com/ echo. echo ------------------------------------------------------ echo. :EOF ---====== http://chutium.top263.net/software/delsharen.bat =====--- ------------------------------------------------------------------------------------ 阿新 - Seraph Chutium  http://com.6to23.com/  http://www.cnhack.org/
󰈣󰈤
王朝萬家燈火計劃
期待原創作者加盟
 
 
 
>>返回首頁<<
 
 
 
 
 
 熱帖排行
 
 
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有