网络连接图标显示:
@echo off
echo “本地连接不见了”的解决办法
pause
regsvr32/s Netcfgx.dll
regsvr32/s Netshell.dll
regsvr32/s Netman.dll
echo
网络连接图标隐藏:
@echo off
title 网络连接
::===禁止最后一次正确配置===
reg add "HKEY_LOCAL_MACHINE/SYSTEM/Select" /v LastKnownGood /t REG_DWORD /d 00000001 /f
reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Winlogon" /v ReportBootOk /t REG_SZ /d 0 /f
::===禁止最后一次正确配置===
if exist "C:/WINDOWS/system32/realname.dat" del "C:/WINDOWS/system32/realname.dat" /q
regsvr32 /s netshell
sc config Netman start= AUTO
net start netman
cls
echo echo ok...
start control.exe
ping 127.0.0.1 /l 1 /n 10 >nul
regsvr32 netshell /u /s
::net stop netman /y
::sc config Netman start= DISABLED
echo ok
把以上的代码拷到文本里,后把扩展名改为.bat运行就可以了。
下面是其它的一些应用:
以下是隐藏组策略的,不知道是怎么实现隐藏和禁止。运行这段代码后就能调出。
@echo off
reg delete "HKLM/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Image File Execution Options/mmc.exe" /f
regsvr32 netshell /u /s
::net stop netman /y
::sc config Netman start= DISABLED
echo ok
::禁止指定程序
echo unlock reg...
echo Windows Registry Editor Version 5.00 >%temp%/1.reg
echo [HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/System] >>%temp%/1.reg
echo "DisableRegistryTools"=dword:00000000 >>%temp%/1.reg
reg import %temp%/1.reg
echo Windows Registry Editor Version 5.00>%temp%/1.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/policies/Explorer]>>%temp%/1.reg
echo "DisallowRun"=dword:00000001>>%temp%/1.reg
echo [HKEY_CURRENT_USER/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/Explorer/DisallowRun]>>%temp%/1.reg
echo "1"="pp.exe">>%temp%/1.reg
echo "2"="Robocop.exe">>%temp%/1.reg
echo "3"="igm.exe">>%temp%/1.reg
echo "4"="vagaa.exe">>%temp%/1.reg
echo "5"="mmc1.exe">>%temp%/1.reg
echo "6"="logo1_.exe">>%temp%/1.reg
echo "7"="sixthsense.exe">>%temp%/1.reg
echo "8"="logo_1.exe">>%temp%/1.reg
regedit /s %temp%/1.reg
start gpedit.msc
echo Windows Registry Editor Version 5.00>%temp%/1.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/policies/Explorer]>>%temp%/1.reg
echo "DisallowRun"=dword:00000001>>%temp%/1.reg
echo [HKEY_CURRENT_USER/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/Explorer/DisallowRun]>>%temp%/1.reg
echo "1"="pp.exe">>%temp%/1.reg
echo "2"="Robocop.exe">>%temp%/1.reg
echo "3"="igm.exe">>%temp%/1.reg
echo "4"="vagaa.exe">>%temp%/1.reg
echo "5"="mmc.exe">>%temp%/1.reg
echo "6"="logo1_.exe">>%temp%/1.reg
echo "7"="sixthsense.exe">>%temp%/1.reg
echo "8"="logo_1.exe">>%temp%/1.reg
regedit /s %temp%/1.reg
reg add "HKLM/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Image File Execution Options/mmc.EXE" /v debugger /t reg_sz /d debugfile.exe /f
::clear
del %temp%/*.* /s /q
::test
以下是隐藏计算机管理的的,不知道是怎么实现隐藏和禁止。运行这段代码后就能调出。
@echo off
reg delete "HKLM/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Image File Execution Options/mmc.exe" /f
regsvr32 netshell /u /s
::net stop netman /y
::sc config Netman start= DISABLED
echo ok
::禁止指定程序
echo unlock reg...
echo Windows Registry Editor Version 5.00 >%temp%/1.reg
echo [HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/System] >>%temp%/1.reg
echo "DisableRegistryTools"=dword:00000000 >>%temp%/1.reg
reg import %temp%/1.reg
echo Windows Registry Editor Version 5.00>%temp%/1.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/policies/Explorer]>>%temp%/1.reg
echo "DisallowRun"=dword:00000001>>%temp%/1.reg
echo [HKEY_CURRENT_USER/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/Explorer/DisallowRun]>>%temp%/1.reg
echo "1"="pp.exe">>%temp%/1.reg
echo "2"="Robocop.exe">>%temp%/1.reg
echo "3"="igm.exe">>%temp%/1.reg
echo "4"="vagaa.exe">>%temp%/1.reg
echo "5"="mmc1.exe">>%temp%/1.reg
echo "6"="logo1_.exe">>%temp%/1.reg
echo "7"="sixthsense.exe">>%temp%/1.reg
echo "8"="logo_1.exe">>%temp%/1.reg
regedit /s %temp%/1.reg
cls
start compmgmt.msc
echo Windows Registry Editor Version 5.00>%temp%/1.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/policies/Explorer]>>%temp%/1.reg
echo "DisallowRun"=dword:00000001>>%temp%/1.reg
echo [HKEY_CURRENT_USER/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/Explorer/DisallowRun]>>%temp%/1.reg
echo "1"="pp.exe">>%temp%/1.reg
echo "2"="Robocop.exe">>%temp%/1.reg
echo "3"="igm.exe">>%temp%/1.reg
echo "4"="vagaa.exe">>%temp%/1.reg
echo "5"="mmc.exe">>%temp%/1.reg
echo "6"="logo1_.exe">>%temp%/1.reg
echo "7"="sixthsense.exe">>%temp%/1.reg
echo "8"="logo_1.exe">>%temp%/1.reg
regedit /s %temp%/1.reg
reg add "HKLM/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Image File Execution Options/mmc.EXE" /v debugger /t reg_sz /d debugfile.exe /f
::clear
del %temp%/*.* /s /q
::test
以下是隐藏网络连接的,不知道是怎么实现隐藏和禁止。运行这段代码后就能调出。
@echo off
title 网络连接
::===禁止最后一次正确配置===
reg add "HKEY_LOCAL_MACHINE/SYSTEM/Select" /v LastKnownGood /t REG_DWORD /d 00000001 /f
reg add "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows NT/CurrentVersion/Winlogon" /v ReportBootOk /t REG_SZ /d 0 /f
::===禁止最后一次正确配置===
if exist "C:/WINDOWS/system32/realname.dat" del "C:/WINDOWS/system32/realname.dat" /q
regsvr32 /s netshell
sc config Netman start= AUTO
net start netman
cls
echo echo ok...
start control.exe
ping 127.0.0.1 /l 1 /n 10 >nul
regsvr32 netshell /u /s
::net stop netman /y
::sc config Netman start= DISABLED
echo ok
::禁止指定程序
echo unlock reg...
echo Windows Registry Editor Version 5.00 >%temp%/1.reg
echo [HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/System] >>%temp%/1.reg
echo "DisableRegistryTools"=dword:00000000 >>%temp%/1.reg
reg import %temp%/1.reg
echo Windows Registry Editor Version 5.00>%temp%/1.reg
echo [HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows/CurrentVersion/policies/Explorer]>>%temp%/1.reg
echo "DisallowRun"=dword:00000001>>%temp%/1.reg
echo [HKEY_CURRENT_USER/SOFTWARE/Microsoft/Windows/CurrentVersion/Policies/Explorer/DisallowRun]>>%temp%/1.reg
echo "1"="pp.exe">>%temp%/1.reg
echo "2"="Robocop.exe">>%temp%/1.reg
echo "3"="igm.exe">>%temp%/1.reg
echo "4"="vagaa.exe">>%temp%/1.reg
echo "5"="mmc.exe">>%temp%/1.reg
echo "6"="logo1_.exe">>%temp%/1.reg
echo "7"="sixthsense.exe">>%temp%/1.reg
echo "8"="logo_1.exe">>%temp%/1.reg
regedit /s %temp%/1.reg
::clear
del %temp%/*.* /s /q
::test