RobinHood,

Did you get a chance to peruse my recent post that is asking a similar question?

Script for adding in a new ePolicy Orchestrator server

Essentially, this looks at an INI file for a string using READLINE and if it does not exist, it makes changes using WRITELINE, closes the file and then uses WRITEPROFILESTRING to make additional changes.

This should get you pointed in the right direction.

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's