kenedy Posted August 27, 2007 Posted August 27, 2007 ComputerIDSmall utility to identify computers. You supply parameters, ComputerID compares them with current computer. Can be used for configuration tasks after OS is installed.Requires NET Framevork 2.0 or higher to be installed and WMI related services running.Command line options (all are optional, order is not important, not case-sensitive):computerid.exe [mac=] [ip=] [name=] [vendor=] [model=] [mbvendor=] [mb=] [mbserial=]mac = network adapter MAC addressip = network adapter IP addressname = computer network namevendor = manufacturer information from SMBIOSmodel = model information from SMBIOSmbvendor = mainboard manufacturer information from BIOSmb = mainboard model information from BIOSmbserial = mainboard serial number from BIOSExample:computerid.exe IP=10.0.1.141 Name=EDIJS-NB Vendor=IBM MB=23884SG MBSerial=1C56E44X0HV MAC=00:06:1B:C4:C3:80If no command line options are supplied, lists identification information for current computer.Quotation marks must be used if option contains spaces. Example: computerid.exe mbvendor="Intel Corporation"Identifying result:If current computer matches all supplied parameters - exitcode and command line output is "1". If not - "0".ComputerID is not meant to work as standalone application, chosing how to retrieve result is up to you.Available methods are reading exitcode, reading output, redirecting output to file, running app withot command line options and analyzing output in your own program.ComputerID.zip
kenedy Posted August 27, 2007 Author Posted August 27, 2007 IPSetUtility for scripting IP parameters (needs more testing, lets call it beta version for now). Can be used for configuration tasks after OS is installed.Requires NET Framevork 2.0 or higher to be installed and WMI related services running.Features:Setting basic IP parameters from command lineConditional execution based on Computer name, MAC, IP, Adapter name, Subnet, Gateway, DNS matchReading commands from file (usefull combined with conditional execution)Full list of supported commands:ipset.exe [save[=fullpath\filename]] [load[=fullpath\filename]][ifname=] [ifmac=] [ifeth=] [ifip=] [ifsub=] [ifgw=] [ifdns=][dhcp] [ip=] [dns=] [name=]file operationssave[=fullpath\filename]writes IP settings for all network adapters to file (in "IFMAC= IP= sub= gw= dns=" format)ipset.txt in ipset.exe folder is used if no filename is specifiedload[=fullpath\filename]reads file line by line and attemts to execute each oneipset.txt in ipset.exe folder is used if no filename is specifiedload command does not work from fileconditions to matchifname= computer network nameifmac= MAC addressifeth= network adapter nameifip= IP addressifsub= subnet maskifgw= default gatewayifdns= DNS server address-Partial match works for ifeth. Example:ifeth="NetXtreme" will match "Broadcom NetXtreme Fast Ethernet" adapter.-ifmac, ifeth, ifip, ifsub, ifgw, ifdns must match a single adapterFor example if you have 2 network adapters:1) ip=10.0.1.10 dns=10.0.1.1 2) ip=10.0.1.11 dns=10.0.1.2this command will not execute since there is no unique matchipset ifip=10.0.1.10 ifdns=10.0.1.2 ip=10.0.1.20this command however, will change ip address of second adapteripset ifip=10.0.1.11 ifdns=10.0.1.2 ip=10.0.1.20commands to executedhcp enable dhcpip= set IP addressgw= set default gatewaysub= set subnet maskdns= set DNS server addressname= change computer network namedhcp also enables dhcp for DNS serversif ip= is used without specifying subnet mask, "255.255.255.0" is usedyou can specify multiple DNS servers by using "/" as delimiter:dns=10.0.1.2/10.0.1.3/10.0.1.4othercan be used in interactive mode (when starting program without command line parameters)list shows IP settings for all installed network adaptersselect - prompts for adapter to work withexit - exit programExamples: ipset ifip=10.0.1.144 ip=192.168.1.144 gw=192.168.1.1 dns=192.168.1.1-if network adapter with IP 10.0.1.144 is found on system, IP settings for that adapter are changedipset ifmac=01:00:1z:1x:1c:80 name=computer10-if network adapter with given MAC address is found on system, rename computer to "compter10"ipset ip=10.0.1.100 gw=10.0.1.1 dns=10.0.1.1-sets provided IP settings to first network adapterIPSet.zip
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now