人妻 一区 二区_午夜精品久久久久久不卡_日韩毛片av毛片黄色_夜夜看天天想人人爱

   用戶名:
   密  碼:
             
 用戶注冊(cè)!    忘記密碼?
 
 
 
手機(jī)號(hào)碼:15850899989
聯(lián)系電話:0523-82629588
 
聯(lián)系QQ:24小時(shí)維護(hù)QQ 隱身中……
  QQ維護(hù)群:60586583
 當(dāng)前位置:首頁(yè) - 新聞中心 - 常見問(wèn)題
 
  一鍵改機(jī)器名、IP、子網(wǎng)掩碼、DNS  
     
發(fā)布時(shí)間:2010.08.18 新聞來(lái)源:靖江星雨電腦維護(hù)有限公司 瀏覽次數(shù):
 

Dim Num
Num=Inputbox ("   一鍵改機(jī)器名、IP、子網(wǎng)掩碼、DNS"+chr(10)&chr(13)+"      ≡星雨電腦 QQ:4614851≡"+chr(10)&chr(13)+"        聯(lián)系電話:15850899989"+chr(10)&chr(13)+"請(qǐng)輸入機(jī)器編號(hào)【填小于255以下的整數(shù)】")
dim Name
if Num<10 then
   Name="hotel800"
else
   if Num<100 then
         Name="hotel80"
   else
             Name="hotel8"
       end if
end if
Set Sh = CreateObject("WScript.Shell")
Sh.RegWrite "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName\ComputerName",Name&Num,"REG_SZ"
Sh.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\NV Hostname",Name&Num,"REG_SZ"
Sh.RegWrite "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Hostname",Name&Num,"REG_SZ"
Set sh = Nothing
Set oShell = Nothing

strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colNetAdapters = objWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
strIPAddress = Array("192.168.1."&Num)
strSubnetMask = Array("255.255.255.0")
strGateway = Array("192.168.1.1")
For Each objNetAdapter in colNetAdapters
errEnable = objNetAdapter.EnableStatic(strIPAddress, strSubnetMask)
errGateways = objNetAdapter.SetGateways(strGateway)
Dim dns
dns=Array("221.228.255.1","218.2.135.1")
err=objNetAdapter.SetDNSServerSearchOrder(dns)
Next

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colComputers = objWMIService.ExecQuery _
("Select * from Win32_ComputerSystem")
For Each objComputer in colComputers
'ObjComputer.Rename("game" &Num)
Next
Set objNetworkSettings = objWMIService.Get("Win32_NetworkAdapterConfiguration")
objNetworkSettings.SetIPXVirtualNetworkNumber(Num)

 
地址:江蘇省靖江市中洲西路28號(hào)  電話:0523-82629588   24小時(shí)服務(wù)熱線:15850899989
郵編:214500 E-mail:admin@it0523.com  蘇ICP備17010739號(hào)