Jump to content


anyweb

How can I dynamically deploy multiple operating systems with System Center 2012 R2 Configuration Manager ?

Recommended Posts

add a boot image to your task sequence and try again.

Share this post


Link to post
Share on other sites


make work around and run task sequence

and the get these error boot failure. Reboot and select proper boot device or insert boot media in selected boot device

Share this post


Link to post
Share on other sites

eh, you need to be more specific, what are you trying to do and can you attach some logs

Share this post


Link to post
Share on other sites

as i said in the first i was not able to run TS

i create new TS and copy and past your TS.Zip task sequence and then deploy it <<< OK

 

 

Enable HTA support to the boot wim and re distribute

 

it is Run and gather info and then restart with the error boot failure. Reboot and select proper boot device or insert boot media in selected boot device

post-25088-0-64455700-1409821574_thumb.png

Share this post


Link to post
Share on other sites

press f8 when it's running gather, and locate the smsts.log in x:\windows\temp\smstslog

 

attach that file here.

Share this post


Link to post
Share on other sites

Hey Niall... Is it possible to have more than one drop-down menu in the Multi.hta? For instance, have one drop down for Operating System version and have a second drop down for choosing which version of Microsoft Office to install?

Share this post


Link to post
Share on other sites

of course it's possible, you just have to write the code in the hta and the backend and then tie it all together in the task sequence :-)

Share this post


Link to post
Share on other sites

Ha! Sounds easy enough, except I looked at the coding in the HTA and went cross-eyed. Could you point me in the right direction, please sir?

 

of course it's possible, you just have to write the code in the hta and the backend and then tie it all together in the task sequence :-)

Share this post


Link to post
Share on other sites

hi, you'd have to modify the task sequence and the script to accomodate more options

Share this post


Link to post
Share on other sites

it is not working. Task sequence finish in 3 second. it is not display the Hta menu. I have attached my smsts.log file

 

the system restart by itself without deploying windows

 

please help me

 

 

smsts.log

Share this post


Link to post
Share on other sites

So, I'm really new to using SCCM to doing OSD. I was doing some trial runs with your HTA package and was having some luck but getting stuck on a black desktop with failed domain join. Turns out if was using the computers container. (I am a real noob at this). Now that I have that fixed ever time the HTA starts to load in WinPE it gets to the end and reboots the VM that I am experimenting on. Do you have an pointers for troubleshooting this reboot issue?

Edited by jdh201

Share this post


Link to post
Share on other sites

hi, what you can do is press f8 while it's deploying, and use cmtrace (or notepad) to monitor the smsts.log file available in x:\windows\temp\smstslog\smsts.log realtime to see what is working or not

 

if you want you can attach that log here so we can see the failure, good luck and welcome to the forums !

Share this post


Link to post
Share on other sites

I am trying to figure out how to add cmtrace to my winpe boot image because I will need to video tape the log since the machine reboots so fast.

 

And suddenly today it works......

 

Edit.

 

Now it isn't. It seems that when I added by in my Apply Drivers, Windows Settings, network Settings, Windows and ConfigMgr, and Applications that it broke again. I'm trying to put them back in one at a time and also seeing how I can install cmtrace still.

 

.... windows settings and network settings don't cause it.

 

..... and apply drivers doesn't crash it.

 

...... Can I use multiple Install Application tasks?

 

That did it. I was trying to use multiple "Install Application" tasks tied to the OSName variables. That seems to crash WinPE. That is kind of sad because what I really wanted to have was a staff and student item on the HTA menu not really to install two different operating systems, but to install two different sets of applications.

Edited by jdh201

Share this post


Link to post
Share on other sites
On ‎6‎/‎21‎/‎2017 at 10:44 PM, teaseler said:

Hi - Is it possible to have more than three OS's to choose from?

Not sure if you still need help with doing more than 3, but I just made it work today.

You have to edit the file called validation.js and add in the additional OS Values.

Validation.js is located under \common\js

Starting at Line #256 - I expanded it to have 6 options, but you could go for as many as you want:

 sHTML = "<option value='OSValue1'>" + oEnvironment("OSName1") + "</option>\n";
  if(oEnvironment("OSName2"))
   {sHTML = sHTML + "<option value='OSValue2'>" + oEnvironment("OSName2") + "</option>\n";
  }
 if(oEnvironment("OSName3"))
  {sHTML = sHTML + "<option value='OSValue3'>" + oEnvironment("OSName3") + "</option>\n";
  }
 if(oEnvironment("OSName4"))
  {sHTML = sHTML + "<option value='OSValue4'>" + oEnvironment("OSName4") + "</option>\n";
  }
 if(oEnvironment("OSName5"))
  {sHTML = sHTML + "<option value='OSValue5'>" + oEnvironment("OSName5") + "</option>\n";
  }
 if(oEnvironment("OSName6"))
  {sHTML = sHTML + "<option value='OSValue6'>" + oEnvironment("OSName6") + "</option>\n";
  }
 sHTML = "<select id='ImageDropDown' name='ImageDropDown'>\n" + sHTML + "</select>";
 sHTML = sHTML + "<div class='coupontooltip' style = 'border:1px solid black; padding: 10px;'>\n";
 sHTML = sHTML + oEnvironment("Tooltip1");
 sHTML = sHTML + "</div>\n";
 document.getElementsByName('tblNewDetails').item(0).innerHTML = sHTML;

 // process the refresh bits...

 sHTML = "<option value='OSValue1'>" + oEnvironment("OSName1") + "</option>\n";
 if(oEnvironment("OSName2"))
  {sHTML = sHTML + "<option value='OSValue2'>" + oEnvironment("OSName2") + "</option>\n";
  }
 if(oEnvironment("OSName3"))
  {sHTML = sHTML + "<option value='OSValue3'>" + oEnvironment("OSName3") + "</option>\n";
  }
 if(oEnvironment("OSName4"))
  {sHTML = sHTML + "<option value='OSValue4'>" + oEnvironment("OSName4") + "</option>\n";
  }
 if(oEnvironment("OSName5"))
  {sHTML = sHTML + "<option value='OSValue5'>" + oEnvironment("OSName5") + "</option>\n";
  }
 if(oEnvironment("OSName6"))
  {sHTML = sHTML + "<option value='OSValue6'>" + oEnvironment("OSName6") + "</option>\n";
  }

I just tested it with OS #6 and it's working great.  Hope this helps.

Share this post


Link to post
Share on other sites

This works really great thus far! 

We have only Win10 here at our site, however we run into instances where either a shared version for office is needed, to a standalone .msi for our warehouses.  The drop down menu and variable logic allowed me to have multiple "Install applications" steps re-using the same variables.  Works like a champ so far!

I do have one question: Can someone maybe direct me to where I can modify/expand the image selection drop down menu?

Share this post


Link to post
Share on other sites

Hej Niall, this is my first post after many years following your great posts, so thank you for your great effort (Tack).

Is there any limits on how many variables (options) to show in HTA? I'm struggling to make HTA show 6 language options, but it only shows 4 and the 4 are working fine.

Please find some screenshots in the attached doc, as I said it only show the first 4 and not showing German and italian:

OSName1 swedish

OSName2 English

OSName3 Frensh

OSName4 Spanish

OSName5 German

OSName6 Italian

What I'm doing wrong?

 

Thank you in advance.

 

 

=====================

Update (Resolved):

 

I figured it out by myself, it was validation.js, thanks anyway

 

Edited by Simosimo
Resolved

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...