I have a list of hostnames and keys, which are comma separated. I need a script to run that grabs the hostname (from the host itslef), and tries to match it to this list, then it echo's the key to the end of a command line I want to execute.
The command to execute would be:
agent.exe -i asdfqeryuiuhdfanzmnvnzbznzb
That would import the key for computer_101. The script will be packaged with an installer, The installer will run the vbs at the end of it's routine, so I need the vbs to run one final command before it exits. That will automate the import of the keys for each host, so each host pick's out the right key to use from the list (inside the VBSCRIPT itself) because we are pushing out only one exe to all hosts. Let me know if that doesn't make sense, this is btw, the method we need to use (vbs).
Long story short, match host, keep list in vbs, exec final command.