bjorne78 Posted July 2, 2010 Share Posted July 2, 2010 Hi all, I have a vbscript that I execute in my task sequence to set some variables during OSD. One of these variables needs to be used in customsettings.ini to connect to a server to retrieve a list of applications to install during my OSD Task sequence. The vbscript uses oTSEnv = CreateObject("Microsoft.SMS.TSEnvironment") to set the variables. I can see that the variable I need is set correctly when I output all the variables during OSD. My customsettings.ini looks like this: [settings]Priority=Default, getprogramsProperties=MyCustomProperty[Default]OSInstall=Y[getprograms]Program = http://%Servernamevariable%/Getprograms.asmxHow do I get this working? The %Servernamevariable% is of course the variable I set (explained above). It is for example testserver.mydomain.int. Do I have to use the propertiesline or? Maybe I can only use %variable% type with built in variable names and not my own? Link to comment Share on other sites More sharing options...
arwidmark Posted July 3, 2010 Share Posted July 3, 2010 (edited) You need to add the variable to the properties list, as well as set it before the Gather action in the task sequence/ Johan Edited July 3, 2010 by arwidmark Link to comment Share on other sites More sharing options...
bjorne78 Posted July 4, 2010 Author Share Posted July 4, 2010 Hi, I have tried now and it did´nt work. I added the variable (Servernamevariable) to the propertiesline. Is this line correct? Should I use %variable% syntax?Program = http://%Servernamevariable%/Getprograms.asmx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now