禁止新建快捷方式
方法一:存為REG運行
REGEDIT4
[-HKEY_CLASSES_ROOT\.lnk\ShellNew]
方法二:
刪除 shell32.dll 資源 >> 字符串 >> 1895 >> 30318,快捷方式(&S)
禁止xp sp2 2003打開文件安全警告
保存下面這段為REG文件。
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Associations]
"ModRiskFileTypes"=".exe"
開始--運行--CMD---gpupdate /force
刷新組策略~~
直接用批處理建立注冊表項目,并刷新組策略。下面這段保存為BAT格式。
reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Associations /v ModRiskFileTypes /t REG_SZ /d .exe /f
gpupdate /force
OEM,開機畫面、搜索引擎、一次性修改
存為bat
@echo off
color 0C
echo ************************************************************
echo * *
echo * OEM,開機畫面、搜索引擎、一次性修改 *
echo * *
echo ************************************************************
echo 設(shè)置OEM
start oem.exe
echo 替換搜索
ren c:\windows\system32\shdoclc.dll shdoclcbak.dll
copy /y shdoclc.dll c:\windows\system32\
ren c:\windows\system32\msgina.dll msginabak.dll
copy /y msgina.dll c:\windows\system32\
@pause
echo 請手用使用“替換”將explorer替換
start 替換.exe
@pause
AU3一鍵優(yōu)化+代碼
Func _RunDOS( $sCommand )
Return RunWait( @ComSpec & " /C """ & $sCommand & """", "", @SW_HIDE )
EndFunc
MSGBOX(0,"全能優(yōu)化","安裝前請確認(rèn)已經(jīng)裝好驅(qū)動程序,按確定鍵進行優(yōu)化!")
$master01=RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0001","MasterDeviceType")
$Slave01=RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0001","SlaveDeviceType")
$master02=RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0002","MasterDeviceType")
$Slave02=RegRead("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0002","SlaveDeviceType")
if $master01+$Slave01>0 then
if $master01=0 then regwrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0001","UserMasterDeviceType","REG_DWORD","3")
if $Slave01=0 then regwrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0001","UserSlaveDeviceType","REG_DWORD","3")
else
msgbox(0,"提示","主要IDE上沒有設(shè)備!",2)
EndIf
if $master02+$Slave02>0 then
if $master02=0 then regwrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0002","UserMasterDeviceType","REG_DWORD","3")
if $Slave02=0 then regwrite("HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4D36E96A-E325-11CE-BFC1-08002BE10318}\0002","UserSlaveDeviceType","REG_DWORD","3")
else
msgbox(0,"提示","次要IDE上沒有設(shè)備!",2)
ENDIF
msgbox(1,"提示","是否將虛擬內(nèi)存文件放置在D盤")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management","PagingFiles","REG_MULTI_SZ","D:\pagefile.sys 1024 1024")
msgbox(1,"提示","開始優(yōu)化系統(tǒng)服務(wù)!")
_RunDOS("sc config Alerter start= DISABLED")
_RunDOS("sc config ALG start= DISABLED")
_RunDOS("sc config AppMgmt start= DEMAND")
_RunDOS("sc config AudioSrv start= AUTO")
_RunDOS("sc config BITS start= DISABLED")
_RunDOS("sc config Browser start= DISABLED")
_RunDOS("sc config CiSvc start= DISABLED")
_RunDOS("sc config ClipSrv start= DISABLED")
_RunDOS("sc config COMSysApp start= DEMAND ")
_RunDOS("sc config CryptSvc start= DEMAND ")
_RunDOS("sc config DcomLaunch start= AUTO")
_RunDOS("sc config Dhcp start= DEMAND")
_RunDOS("sc config dmadmin start= DEMAND")
_RunDOS("sc config dmserver start= AUTO")
_RunDOS("sc config Dnscache start= DEMAND")
_RunDOS("sc config ERSvc start= DISABLED")
_RunDOS("sc config Eventlog start= AUTO")
_RunDOS("sc config EventSystem start= DEMAND")
_RunDOS("sc config helpsvc start= DISABLED")
_RunDOS("sc config HidServ start= DISABLED")
_RunDOS("sc config HTTPFilter start= DEMAND")
_RunDOS("sc config ImapiService start= DISABLED")
_RunDOS("sc config lanmanserver start= DISABLED")
_RunDOS("sc config lanmanworkstation start= AUTO")
_RunDOS("sc config LmHosts start= DISABLED")
_RunDOS("sc config Messenger start= DISABLED")
_RunDOS("sc config mnmsrvc start= DISABLED")
_RunDOS("sc config MSDTC start= AUTO")
_RunDOS("sc config MSIServer start= DEMAND")
_RunDOS("sc config NetDDE start= DISABLED")
_RunDOS("sc config NetDDEdsdm start= DISABLED")
_RunDOS("sc config Netlogon start= DISABLED")
_RunDOS("sc config Netman start= DEMAND ")
_RunDOS("sc config Nla start= DISABLED")
_RunDOS("sc config NtLmSsp start= DISABLED")
_RunDOS("sc config NtmsSvc start= DEMAND")
_RunDOS("sc config ose start= DEMAND")
_RunDOS("sc config PlugPlay start= AUTO")
_RunDOS("sc config PolicyAgent start= DEMAND")
_RunDOS("sc config ProtectedStorage start= AUTO")
_RunDOS("sc config RasAuto start= DEMAND")
_RunDOS("sc config RasMan start= DEMAND")
_RunDOS("sc config RDSessMgr start= DISABLED")
_RunDOS("sc config remoteAccess start= DISABLED")
_RunDOS("sc config remoteRegistry start= DISABLED")
_RunDOS("sc config RpcLocator start= DISABLED")
_RunDOS("sc config RpcSs start= AUTO")
_RunDOS("sc config SamSs start= AUTO")
_RunDOS("sc config SCardSvr start= DISABLED")
_RunDOS("sc config Schedule start= DISABLED")
_RunDOS("sc config seclogon start= AUTO")
_RunDOS("sc config SENS start= AUTO")
_RunDOS("sc config SharedAccess start= DEMAND")
_RunDOS("sc config ShellHWDetection start= AUTO")
_RunDOS("sc config Spooler start= DEMAND")
_RunDOS("sc config stisvc start= DEMAND")
_RunDOS("sc config swprv start= DISABLED")
_RunDOS("sc config SysmonLog start= DISABLED")
_RunDOS("sc config TapiSrv start= DEMAND")
_RunDOS("sc config TermService start= DISABLED")
_RunDOS("sc config Themes start= AUTO")
_RunDOS("sc config TrkWks start= DISABLED")
_RunDOS("sc config UMWdf start= DEMAND")
_RunDOS("sc config UPS start= DISABLED")
_RunDOS("sc config VSS start= DISABLED")
_RunDOS("sc config W32Time start= DISABLED")
_RunDOS("sc config WebClient start= DISABLED")
_RunDOS("sc config winmgmt start= AUTO")
_RunDOS("sc config WmdmPmSN start= DISABLED")
_RunDOS("sc config Wmi start= DEMAND")
_RunDOS("sc config WmiApSrv start= DISABLED")
_RunDOS("sc config wuauserv start= DISABLED")
_RunDOS("sc config WZCSVC start= DISABLED")
_RunDOS("sc config xmlprov start= DEMAND")
_RunDOS("sc config DcomLaunch start= AUTO")
_RunDOS("sc config FastUserSwitchingCompatibility start= DEMAND")
_RunDOS("sc config srservice start= DISABLED")
_RunDOS("sc config SSDPSRV start= DISABLED")
_RunDOS("sc config TlntSvr start= DISABLED")
_RunDOS("sc config upnphost start= DEMAND")
_RunDOS("sc config wscsvc start= DISABLED")
; 開始注冊表優(yōu)化程序
; 開啟使用空白密碼的本地賬戶只允許進行控制臺登錄
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa","limitblankpassworduse","REG_DWORD","1")
; 關(guān)閉默認(rèn)共享
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters","AutoShareServer","REG_DWORD","0")
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters","AutoShareWks","REG_DWORD","0")
; 顯示認(rèn)證碼
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Security","BlockXBM","REG_DWORD","0")
; 禁用桌面清理向?qū)?br>RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz","NoRun","REG_DWORD","1")
; 禁用錯誤報告,但在發(fā)生嚴(yán)重錯誤時通知我
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting","DoReport","REG_DWORD","0")
; 禁止Windows漫游氣球提醒
RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour","RunCount","REG_DWORD","0")
; 開啟啟動預(yù)讀,減少開機滾動條滾動次數(shù)
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters","EnablePrefetcher","REG_DWORD","1")
; 縮短XP的開關(guān)機的等待時間
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control","WaitToKillServiceTimeout","REG_EXPAND_SZ","500")
; 關(guān)閉分組相似任務(wù)欄按鈕
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced","TaskbarGlomming","REG_DWORD","0")
RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced","TaskbarGlomming","REG_DWORD","0")
; 系統(tǒng)失敗
; 不將事件寫入系統(tǒng)日志
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl","LogEvent","REG_DWORD","0")
; 不發(fā)送管理警報
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl","SendAlert","REG_DWORD","0")
; 禁用自動重啟動
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl","AutoReboot","REG_DWORD","0")
; 不寫入調(diào)試信息
RegWrite("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl","CrashDumpEnabled","REG_DWORD","0")
; 關(guān)閉磁盤空間不足的警告
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer","NoLowDiskSpaceChecks","REG_DWORD","1")
; 加快菜單顯示速度
RegWrite("HKEY_CURRENT_USER\Control Panel\desktop","MenuShowDelay","REG_SZ","0")
; 不保留網(wǎng)頁歷史中的訪問記錄
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Url History","DaysToKeep","REG_DWORD","0")
; 不加載多余的DLL文件
RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer","AlwaysUnloadDLL","REG_DWORD","1")
; 自動關(guān)閉停止響應(yīng)的程序
RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop","AutoEndTasks","REG_DWORD","1")
RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop","HungAppTimeout","REG_EXPAND_SZ","200")
RegWrite("HKEY_CURRENT_USER\Control Panel\Desktop","WaitToKillAppTimeout","REG_EXPAND_SZ","1000")
; 去除快捷方式的箭頭
RegDelete("HKEY_CLASSES_ROOT\lnkfile", "IsShortcut")
; 去除快捷方式字樣
RegWrite("HKEY_CLASSES_ROOT\lnkfile","","REG_SZ","")
消除任務(wù)欄SATA硬盤圖標(biāo)
. 點開始---->運行----> regedit
2. 找到鍵值 (電腦應(yīng)該只有下面的其中一個)HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\nvata
或
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\nvatabus
3. 新增一個 DWORD 值,名稱取名叫 DisableRemovable,值給 1
重啟以后 SATA 硬碟就不會變成可以移除設(shè)備了
使用后沒有后遺癥,打印機、鼠標(biāo)、U盤、移動硬盤等都可正常使用
如NF570U組RAID0后設(shè)置無效
在上面注冊表中加入后正常[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\nvatabus]
"DisableRemovable"=dword:00000001
加載預(yù)讀,加快進入系統(tǒng)桌面
首先,打上預(yù)讀的注冊表:(SB系統(tǒng)中默認(rèn)關(guān)掉了,如果你覺得要用到預(yù)讀,就把下面的注冊表內(nèi)容另存為REG文件導(dǎo)入即可)
程序代碼
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000003
;優(yōu)化預(yù)讀(啟動更快)("0"取消預(yù)讀;"1"只預(yù)讀應(yīng)用程序;"2"只預(yù)讀系統(tǒng)文件;"3"預(yù)讀系統(tǒng)文件和應(yīng)用程序(默認(rèn)值))
導(dǎo)入上面的文件后,還要注意一個地方就是一定要打開計劃任務(wù)Task Scheduler服務(wù)!
把這個服務(wù)設(shè)成自動后,把下面的命令拷到運行中執(zhí)行一次:
Rundll32.exe advapi32.dll,ProcessIdleTasks
再看一下你WINDOWS\prefetch\是不是多了一些文件?其中l(wèi)ayout.ini不要刪了。這些文件就是你剛才用過的命令預(yù)讀了。你可以試著打開一個文本文件,再關(guān)閉,你會發(fā)現(xiàn)預(yù)讀目錄中就會多了一個NOTE開頭的PIF文件了。這表示預(yù)讀成功!試著多重啟幾次,你會發(fā)現(xiàn)到桌面的速度大大加快了。
不過預(yù)讀有可能會增加轉(zhuǎn)圈次數(shù)。。。。呵,自己取舍吧。
教你刪除MAx DOS5.8密碼---不為忘記密碼而煩惱
教你刪除MAS DOS5.8密碼---
不為忘記密碼而煩惱
用記事本打開C:\MaxDOS\Maxkl.gz,
找到里面的“password --md5”,
這一行的內(nèi)容刪掉,再進MAXDOS就沒密碼了
去除鼠標(biāo)右鍵多余項
regsvr32 /u /s igfxpph.dll
reg delete HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v HotKeysCmds /f
reg delete HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v IgfxTray /f
怎樣刪除“我的電腦”右鍵菜單選項
首先單擊“開始”菜單中的“運行”命令,打開“運行”對話框,在“打開”欄里輸入“regedit”,
然后按“確定”。然后在打開的“注冊表編輯器”窗口中,打開
HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell ,
可以看到shell下的幾個子鍵,分別對應(yīng)”我的電腦“右鍵菜單中的幾項:Manage=管理,find=搜索。那么只要在多余的子鍵上右擊,選擇“刪除”即可,“我的電腦”右鍵菜單的多余選項就會相應(yīng)地被刪除。
另外如還想刪除“映射網(wǎng)絡(luò)驅(qū)動器”和“斷開網(wǎng)絡(luò)驅(qū)動器”選項,可通過如下方法:“開始”菜單→運行→輸入gpedit.msc →確定→用戶配置→管理模板→ windows組件→windows資源管理器→右邊第五行“刪除“映射網(wǎng)絡(luò)驅(qū)動器”和“斷開網(wǎng)絡(luò)驅(qū)動器””雙擊→選中“已啟用”→確定→ 一切搞定!
如何將"我的電腦"和"控制面板"設(shè)置為資源管理器那樣的風(fēng)格,打開時出現(xiàn)左邊的目錄樹形結(jié)構(gòu)?
控制面板→文件夾選項→文件類型→已注冊文件類型→資料夾→高級按鈕→在下一窗口中選擇"操作"欄中的"Explorer",點右下角的"設(shè)為默認(rèn)值",連續(xù)點兩次"關(guān)閉",退出設(shè)置。以后就可以用資源管理器的形式來打開"我的電腦"和"控制面板"了。
網(wǎng)吧系統(tǒng)安全隱患進程conime.exe!你的刪了么
第一步首先結(jié)速conime.exe進程,然后在system32中找到conime.exe將其刪除。
第二步修改注冊表找到:"HKEY_CURRENT_USER\Console"中的"LoadConIme"修改為"0"即可
--------------------------------------
conime.exe 進程說明:conime.exe是輸入法編輯器,允許用戶使用標(biāo)準(zhǔn)鍵盤就能輸入復(fù)雜的字符與符號! conime.exe同時可能是一個bfghost1.0遠程控制后門程序。此程序允許攻擊者訪問你的計算機,竊取密碼和個人數(shù)據(jù)。建議立即刪除此進程。”
以前總是不知什么時候這個進程就悄悄啟動了,后來才發(fā)現(xiàn)往往在運行cmd.exe之后會出現(xiàn)。但是conime.exe并不是cmd.exe的子進程,它的的父進程ID并沒有在任務(wù)管理器中顯示。
conime經(jīng)常會被病毒利用感染,建議刪除。
服務(wù)狀態(tài)備份
@echo off
@echo 本腳本用于幫助大家保存當(dāng)前系統(tǒng)服務(wù)狀態(tài)并在需要的時候進行恢復(fù)。
rem get current date and time
for /f "tokens=1,2,3 delims=-/. " %%j in ('Date /T') do set FILENAME=srv_%%j_%%k_%%l
for /f "tokens=1,2 delims=: " %%j in ('TIME /T') do set FILENAME=%FILENAME%_%%j_%%k.bat
rem get all service name
sc query type= service state= all| findstr /r /C:"SERVICE_NAME:" >tmpsrv.txt
echo Save Service Start State In %FILENAME%
rem save service start state into batch file
rem
echo @echo Restore The Service Start State Saved At %TIME% %DATE% >"%FILENAME%"
echo @pause >>"%FILENAME%"
for /f "tokens=2 delims=:" %%j in (tmpsrv.txt) do @( sc qc %%j |findstr START_TYPE >tmpstype.txt && for /f "tokens=4 delims=:_ " %%s in ( tmpstype.txt) do @echo sc config %%j start= %%s >>"%FILENAME%")
echo @pause >>"%FILENAME%"
del tmpsrv.txt
del tmpstype.txt
修改DNS、網(wǎng)關(guān)的VBS代碼。不需重起即時生效
存為.VBS
Const STR_GATEWAY = "192.168.1.254"
Const STR_NEWDNS1 = "221.6.4.67"
Const STR_NEWDNS2 = "192.168.1.254"
Set fs=CreateObject("Scripting.FileSystemObject")
strWinMgmt="winmgmts:{impersonationLevel=impersonate}"
Set objNICs = GetObject( strWinMgmt ).InstancesOf("Win32_NetworkAdapterConfiguration")
For Each objNIC In objNICs
If objNIC.IPEnabled Then
objNIC.SetDNSServerSearchOrder Array(STR_NEWDNS1,STR_NEWDNS2)
objNIC.SetGateways Array(STR_GATEWAY)
End If
Next
VBS隱藏批處理(非流傳版,可帶空格)
Set WshShell = WScript.CreateObject("WScript.Shell")
pro ="C:\Documents and Settings\Administrator\桌面\11.bat"
WshShell.Run chr(34) & pro & chr(34),0
VBS建立快捷方式
set WshShell = WScript.CreateObject("WScript.Shell") '設(shè)置CreateObject 方法
strDesktop = WshShell.SpecialFolders("Desktop") '取得“桌面”的路徑
set oShellLink = WshShell.CreateShortcut(strDesktop & "\騰訊QQ.lnk") '設(shè)置快捷方式
oShellLink.TargetPath = "d:\qq\QQ木馬清除.vbs" '快捷方式里的“目標(biāo)”
oShellLink.WindowStyle = 1 '快捷方式里的“運行方式”
oShellLink.Hotkey = "Ctrl+Alt+e" '快捷方式里的“快捷鍵”
oShellLink.IconLocation = "d:\qq\qq.exe, 0" '快捷方式的圖標(biāo)
oShellLink.Description = "騰訊QQ" '快捷方式里的“備注”
oShellLink.WorkingDirectory = "d:\qq" '快捷方式里的“起始位置”
oShellLink.Save '建立快捷方式
vbs修改盤符的代碼,可用于iscsi出盤后自動修改盤符
on error resume next
dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.run"diskpart"
WshShell.AppActivate"%systemroot%\system32\diskpart.exe"
WScript.Sleep 30
WshShell.SendKeys"select volume=d"
WshShell.SendKeys"{ENTER}"
WScript.Sleep 30
WshShell.SendKeys"remove"
WshShell.SendKeys"{ENTER}"
WScript.Sleep 30
WshShell.SendKeys"assign letter=z:"
WshShell.SendKeys"{ENTER}"
WScript.Sleep 30
WshShell.SendKeys"exit"
WshShell.SendKeys"{ENTER}"
VBS修改指定IP信息
設(shè)置IP
strIPAddress=Array("192.168.1.43")
'設(shè)置子網(wǎng)掩碼
strSubnetMask=Array("255.255.0.0")
'設(shè)置網(wǎng)關(guān)
DefaultIPGateway=Array("192.168.1.1")
'設(shè)置躍點數(shù)
GatewayCostMetric=Array("1")
'設(shè)置DNS服務(wù)器
DNSServer = Array("61.139.44.38", "61.139.2.69")
strComputer="."
Set objWMIService=GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colNetAdapters=objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
For Each objNetAdapter in colNetAdapters
'設(shè)置IP和子網(wǎng)掩碼
errEnable=objNetAdapter.EnableStatic(strIPAddress, strSubnetMask)
'設(shè)置網(wǎng)關(guān)和躍點數(shù)
errEnable=objNetAdapter.SetGateways(DefaultIPGateway,GatewayCostMetric)
'設(shè)置DNS
errEnable=objNetAdapter.SetDNSServerSearchOrder(DNSServer)
聯(lián)系客服
微信登錄中...
請勿關(guān)閉此頁面