prologic08
asked on
Use VBS to input data to a REG file and run it
I have a REG file that I use to config our Cisco Softphones. The REG file requires me to change one line of the code to the user who the account was created for. In our case, we use their SAM account name to create the account on the back end. In the attached file on line 38, I have to change the username in "HostName"="IPC-USERNAME" so in my case, it would look like "HostName"="IPC-prologic08 " if I was setting it up for myself.
I am looking to automate this process by installing the software and running the REG file with the SAM Account name already pulled and inputted into the REG file. My guess is that I have to create this as a VBS. I am not sure how to do this but to summarize, it would be like this:
VBS finds the SAM Account name, inputs the name into line 38 of the REG file in the space that says USERNAME. VBS runs the REG file that imports the data to the registry. VBS deletes the REG file. User opens up the Softphone software and all the configurations are done. User can start using softphone immediately.
Is there an easy way to do this or an easier way to do this? I never tried importing data to a REG file. I am even wondering if its even necessary to have the REG file and maybe instead have just a VBS that does everything. Can anyone help with this request please?
HKLM-Config.reg
I am looking to automate this process by installing the software and running the REG file with the SAM Account name already pulled and inputted into the REG file. My guess is that I have to create this as a VBS. I am not sure how to do this but to summarize, it would be like this:
VBS finds the SAM Account name, inputs the name into line 38 of the REG file in the space that says USERNAME. VBS runs the REG file that imports the data to the registry. VBS deletes the REG file. User opens up the Softphone software and all the configurations are done. User can start using softphone immediately.
Is there an easy way to do this or an easier way to do this? I never tried importing data to a REG file. I am even wondering if its even necessary to have the REG file and maybe instead have just a VBS that does everything. Can anyone help with this request please?
HKLM-Config.reg
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I appreciate your time and effort.
Glad to know it helped :)
ASKER
Open in new window