Jump to content

vAgo

Member
  • Posts

    10
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Italy

About vAgo

vAgo's Achievements

0

Reputation

  1. i'd like to set network like ip address or dhcp service....etc...
  2. i found it strComputer = "." strAnswer=msgbox ("Use 192.168.1.141 / 24?" & vbcrlf & vbcrlf & "If not, you''ll be prompted to specify", vbYesNoCancel) if strAnswer = vbYes then Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colNetAdapters = objWMIService.ExecQuery _ ("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE") strIPAddress = Array("192.168.1.141") strSubnetMask = Array("255.255.255.0") strGateway = Array("192.168.1.100") strGatewayMetric = Array(1) For Each objNetAdapter in colNetAdapters errEnable = objNetAdapter.EnableStatic(strIPAddress, strSubnetMask) errGateways = objNetAdapter.SetGateways(strGateway, strGatewaymetric) If errEnable = 0 Then WScript.Echo "The IP address has been changed." Else WScript.Echo "The IP address could not be changed." End If Next elseif strAnswer = vbNo then Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2") Set colNetAdapters = objWMIService.ExecQuery _ ("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE") strIPAddress = array(inputbox("IP Address")) '' Array("192.168.1.141") strSubnetMask = array(inputbox("Mask")) '' Array("255.255.255.0") strGateway = array(inputbox("GW")) '' Array("192.168.1.100") strGatewayMetric = Array(1) For Each objNetAdapter in colNetAdapters errEnable = objNetAdapter.EnableStatic(strIPAddress, strSubnetMask) errGateways = objNetAdapter.SetGateways(strGateway, strGatewaymetric) If errEnable = 0 Then WScript.Echo "The IP address has been changed." Else WScript.Echo "The IP address could not be changed." End If Next else msgbox ("Operation Cancelled by User") end if it's a visual basic script!
  3. ok...but every pc in lan network have different ip address can i create a WINNT.SIF for each dvd?! i try to create some script.... this script set -ip address -group -subnet -gateway -domain etc.... plaese help!!!
  4. I not able to create some script for my unattended XP this script could be insert number of ip subnet gateway etc... and others network options like dhcp service and it's run after application install was finished help me and pardon "my english"
  5. for Pack Crystal XP 3-1.0 RC1 silent install it's possible? B) thx
  6. i'd like "browse" button..... .......great app......
  7. ....the download have problem...
×
×
  • Create New...