Summary
Launching a custom executable from a custom action to retrieve all of the machine names and IP addresses in a particular domain in a local area networkSynopsis
Project Type: Basic MSI and Installscript MSIThis Knowledge Base article discusses how to retrieve all of the machine names and IP addresses in a particular domain in a local area network through a MSI-based installer built with InstallShield.
Discussion
An InstallShield custom action could be used to call a Windows command (as discussed below) to retrieve all of the machine names and IP addresses in a particular domain in a local area network. Unfortunately, InstallShield custom actions only retrieve the return code of the launched process executing a particular command. The custom action does not have access to manipulate the output from external commands executed by the custom action. However, a custom executable could be created that executes the net view command and parses the output, then the custom executable could be launched from a InstallShield EXE custom action.
The following Windows command should retrieve a list of machines names across a domain:
net view /domain:<DomainName>
where <DomainName> is the domain name for the network to search. The domain name should not include the top-level domain name (i.e. .com). Rather than specifying mydomain.com as the domain, mydomain should be specified. In that instance, the command should be as follows:
net view /domain:mydomain
Then, the output from the net view /domain:<DomainName> command would need to be parsed.
\\<MachineName>
ping <MachineName>
where <MachineName> is the machine name.
Additional Information
Here is a link to the online Microsoft documentation for the Net view command:
http://technet.microsoft.com/en-us/library/bb490719.aspx
Here is a link to the online Microsoft documentation for the ping command:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ping.mspx
Related Articles
Adobe Creative Cloud Insight Tooltip text showing the same content 7Number of Views Sample Code/API To Get Content Of License File Which The License Server (lmgrd/ansyslmd) Is Using 9Number of Views "Could not retrieve dashboard" error in IT Visibility 20Number of Views lc_next_conf Does Not Retrieve All the Feature Names 10Number of Views What is the meaning of received time in /features response of CLS REST API? 8Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Revenera Assistant
Case id: 00001065
Activity: Status change: 2 hours ago