Jump to content


  • 0
anyweb

Introducing the windows-noob.com FrontEnd HTA ver 1.0

Question

Introduction:

After a lot of development and testing and countless changes it's time to release version 1.0 of the windows-noob.com FrontEnd HTA. This HTA can be used by Network administrators/techs to quickly make choices about Deployment Type (Backup, Reinstall, New Computer) for their migrations from Windows XP to Windows 7.

 

Update: This HTA has been updated with a new version here. Please review it's features.

The HTA comes with pre-written scripts that do the hard work for you and set variables based on choices made by the end user. These variables are in turn used by the backend Task Sequence to do the actual heavy lifting. If you stick to the default Task Sequence included here, then when you start it you'll see a password prompt

passsword.jpg

enter Password123 to continue, if you get it wrong it will abort the task Sequence so be careful smile.gif.

Once you've entered the password correctly the HTA itself will display, currently it's adjustable in size, you can edit the DeployMenu.hta to maximise it by editing the following lines,

<HTA:APPLICATION ID="objTest" APPLICATIONNAME="Frontend HTA" SCROLL="yes" SINGLEINSTANCE="yes">
<!HTA:APPLICATION ID="objTest" APPLICATIONNAME="Frontend HTA" SCROLL="No" SINGLEINSTANCE="YES" BORDER="none" CAPTION="no" WINDOWSTATE=MAXIMIZE SINGLEINSTANCE="yes">



frontendhta.jpg

The Backup option allows you to Backup the data in several different ways (option to run CHKDSK before backup, full WIM backup both locally and network, Offline Scanstate in WinPE which is then backed up to a network Share) and also allows you to Create a computer association between source and destination computer while in WinPE if you want to do traditional SMP based state backup (note however for SMP based scenarios that the scanstate must be performed separately while in the full Windows OS using a separate Task Sequence).]

Note: If the computer is has a computername matching MININT- then you will be prompted to enter a computername before backup continues.

backup.jpg

The Reinstall option allows users to Quickly backup data (using offline mode in WinPE and hardlinking) and install Windows 7 Enterprise on existing hardware. They can also optionally specify a user which will then become the Local Administrator of that computer.

Note: If the computer is has a computername matching MININT- then you will be prompted to enter a computername before Reinstall continues.

reinstall.jpg

The New Computer option allows you to choose regional and language options offline via drop down menus (4 languages offered, can be expanded upon easily). In addition, you can select to restore User data (or not), you can also select which OLD_computername profile to restore, or choose SMP if you want to use this New Computer as the Destination computer once a computer association has been previously made and the State captured.

new computer new installation.jpg

Requirements:

The HTA has the following prerequisites:-

* MDT 2010 update 1 integrated with ConfigMgr
* Maik Kosters Web Services 7.2 installed - quick quide here
* SCCM 2007 SP2 R2 or later
* Implement Offline scanstate in WinPE as shown here
* Install Language packs Offline using SCCM 2007 sp2


Features

The windows-noob.com HTA has the following features:-

The windows-noob.com FrontEnd HTA ver 1.0 is primarily used for Deploying (or migrating to) Windows 7, and it offers the following features,

  • Backup
  • Reinstall
  • New Computer

The three Operating System Deployment scenarios, Backup, Reinstall (refresh) and New Installation (bare metal/new computer) offer their own options, detailed below:-

Backup features
Chkdsk
full wim backup (local)
full wim backup (network)
Offline scanstate in WinPE (network)

Reinstall features
Chkdsk
full wim backup (local)
full wim backup (network)
Offline scanstate in WinPE (local using hardlinking)
Username becomes Local Administrator

New Computer Features
Regional settings (drop down choice)
Language Settings (drop down choice)
Username
Computername
Restore Users data (drop down choice, none, SMP or Offline via Network)


Additional Features

In addition to the above, you have the ability to:



Exit from the HTA
Open a command prompt
Create a Computer Association (see below)

computer association.jpg

Show information about a client, including IP Address, MAC address, GUID, etc (see below), Reboot or Shutdown.

show info.jpg

so that's the introduction now here's how to implement it in your lab..

Update:- If you want to use Multi Language or Multi Keyboard Layouts then please see this update

Share this post


Link to post
Share on other sites

Recommended Posts

  • 0

Download the HTA

 

Download the HTA files from here

 

wnb.zip

 

Extract the files from the ZIP and copy Copy the WNB folder to your MDT 2010 Toolkit files Scripts directory, this folder contains the guts of our HTA with scripts and images in sub directories.

 

i.e:

 

scripts/wnb

 

mdt files.jpg

 

 

Download the Customsettings.ini

 

Download the Customsettings.ini file here (if the file is renamed by your browser to CustomSettings.ini.txt then please rename to Customsettings.ini)

 

CustomSettings.ini

 

Copy the Customsettings.ini file to your MDT 2010 Toolkit files package (ie: copy it to the root of that package), of course you could just place this file in your MDT 2010 Settings package but then everytime you change it you'll have to update two packages, this way it's quicker, only one package to update.

 

Open the Customsettings.ini file and edit it so that the webservices URL's point to the server address where you have setup your Web Services (currently they are pointing at my SCCM server which is hosting the Maik Koster 7.2 web services). Our customsettings.ini file is vital, if you make errors in this then your web services won't work and therefore the HTA won't work.

 

customsettings dot ini.jpg

 

Once you have both the CustomSettings.ini and WNB files and folders in place in your MDT 2010 Update 1 Toolkit Package, udpate the package to your Distribution Points.

 

Download the Task Sequence

 

The HTA by itself is no good without a back-end Task Sequence to make sense of all the variables we are setting, so we need a task sequence to do our work.

 

Download the Task Sequence from here windows-noob.com Frontend HTA v1.0.xml

 

Import the Task Sequence into ConfigMgr and fix all the Package references, currently the Task Sequence references the following packages (which you will have no problem resolving if you have met the requirements listed above).

 

<reference package="WNB000B0" /> = MDT 2010 Update 1 Files

<reference package="WNB000B1" /> = MDT 2010 Update 1 Settings

<reference package="WNB0003A" /> = USMT 4x86 *for offline scanstate in WinPE*

<reference package="WNB00059" /> = RunScanstate

<reference package="WNB0003F" /> = Windows 7 Enterprise 32 bit

<reference package="WNB00063" /> = Unattend.xml file

<reference package="WNB000AF" /> = Swedish Language Pack

<reference package="WNB000B3" /> = Norwegian Language Pack

<reference package="WNB000B5" /> = Finnish Language Pack

<reference package="WNB000B4" /> = Danish Language Pack

<reference package="WNB0004C" /> = Configuration Manager Client Package

<reference package="WNB000AB" /> = Set Network location hotfix

<reference package="WNB00041" /> = USMT 4 package

<reference package="WNB0008D" /> = HTA FrontEnd boot image

 

 

Download the Unattend.xml file

 

The regional settings and language settings need a back end Unattend.xml file, here's the one I use

 

OSD_variables_added.xml

 

Once you've got all the bits, dont forget to edit your customsettings.ini file to point to your webservices URL's. Update your DP's and start testing the HTA, feedback appreciated !

 

Below is a screenshot of the New Computer selection with some values selected, note the cool Data Restore options ;)

 

new computer values.jpg

 

Download the Workaround files

 

create a new RunScanstate package from these files, they are referenced in the Task Sequence and needed for offline scanstate and loadstate, if you had previously got the Offline Scanstate in WinPE working then you'll only need the two additional new batch files in this ZIP, namely

 


     
  • runLoadstate.bat
  • runscanstate-offline_no_hardlinking.bat

 

workaround.zip

 

 

cheers

niall

Share this post


Link to post
Share on other sites

  • 0

Known Issues

 

There are some known issues listed below, I will update here when they are resolved asap, please understand though that my time is limited so if i don't get around to fixing an issue please provide any solution you use, also if you find any problems please post them here:-

 

* Computer Association says 'unsuccessful' when in fact it is successful *check configmgr console to verify*

* The chosen restore profile code is missing from the task sequence, bug found (resolved, if you downloaded the Workaround or Task sequence before April 8th, 2011 then please download them again)

* If the Hard disk is blank (RAW) then the HTA will not display some images or even operate properly, workaround, use diskpart to partition the hdd first, then try again

* Leaving the Computername or TargetUser blank in New Computer crashes the Javascript, workaround, enter valid values ;)

* Choosing No Restore option in New Computer is ignored and it attempts to restore a profile called NULL and therefore fails as no profile of that name exists, fixed by modifying the Backup Restore State Options as per the screenshot below

 

uddir exists.jpg

Share this post


Link to post
Share on other sites

  • 0

Pure awesomeness

 

one challenge - running CHKDSK

 

would like the option of not running CHKDSK /r (or F) if the drive doesnt have errors

 

also - when running and fixing errors (or running with /f) the TS fails because the CHKDSK task errors out based on not being able to copy the log file (to the event logs)

 

Any thoughts ???

 

Excellent information

Share this post


Link to post
Share on other sites

  • 0

Thanks Niall!

 

Unfortunatly, I've got a few questions. I'm an HTA newb (started looking at them today) so please forgive me if they are a bit novice. Especially since I usually bite off more than I can chew...

 

So far, I've preinstalled all of the prerequisites (expect language packs) and tested most of them. I've downloaded the files you have posted on your post and put them in all the correct places. Even though I've done all of this, I am still missing a couple of things. I searched forums for the answers and found a couple, but still have some.

 

1. Even though it may call for it, my boss has hinted to me a few times that he doesn't want Language Packs being distributed. Therefore, I was going to see if it was possible to remove those steps. Should that be okay?

 

2. To make it easier to identify, I decided to edit the "windows-noob.com Frontend HTA v1.0.xml" with Notepad++ before Importing it. This way, I could just sub in the names of the packages that I needed. However, I wasn't 100% sure which packages the following were:

 

- MDT 2010 Update 1 Files - The package pointing to both x86 & x64 folders - right?

- MDT 2010 Update 1 Settings - How is that different from the MDT package? Don't remember creating one of those during pre-requisites

- RunScanState - Just a package pointing to the folder with the *now* 3 batch files in it (I guess what's in the workaround.zip)

- Unattend.xml file - I decided to just rename yours and create package. Does it need to be pointed to a Win7 factory WIM & for the package do I simply create one pointing to the folder with that XML file in it w/o adding a program?

- Set Network location hotfix - My best guess on what this is is "KB2509007 - New Advanced Client Hotfix" which was auto created

- HTA FrontEnd boot image - Searched everywhere. Would assume that it's a package pointing to folder with wnb.zip extracted.

 

I know that seems like a question for each line of your post, but it seems like I missed a page of instructions or something. If you have the time to help me, then I'd appreciate it. You've no doubt done plenty to help me in the past.

 

Thanks!

Share this post


Link to post
Share on other sites

  • 0

Thanks Niall!

 

 

 

1. Even though it may call for it, my boss has hinted to me a few times that he doesn't want Language Packs being distributed. Therefore, I was going to see if it was possible to remove those steps. Should that be okay?

 

yup no problem

 

2. To make it easier to identify, I decided to edit the "windows-noob.com Frontend HTA v1.0.xml" with Notepad++ before Importing it. This way, I could just sub in the names of the packages that I needed. However, I wasn't 100% sure which packages the following were:

 

- MDT 2010 Update 1 Files - The package pointing to both x86 & x64 folders - right?

- MDT 2010 Update 1 Settings - How is that different from the MDT package? Don't remember creating one of those during pre-requisites

- RunScanState - Just a package pointing to the folder with the *now* 3 batch files in it (I guess what's in the workaround.zip)

- Unattend.xml file - I decided to just rename yours and create package. Does it need to be pointed to a Win7 factory WIM & for the package do I simply create one pointing to the folder with that XML file in it w/o adding a program?

- Set Network location hotfix - My best guess on what this is is "KB2509007 - New Advanced Client Hotfix" which was auto created

- HTA FrontEnd boot image - Searched everywhere. Would assume that it's a package pointing to folder with wnb.zip extracted.

 

the MDT 2010 update 1 files (and settings packages) are created once you create a MDT task sequence and go through the wizard, to do this right click on task sequences, choose create microsoft deployment task sequence, go through the wizard, it creates both needed packages during the wizard

 

obviously you must have intergrated mdt 2010 update 1 with configmgr before trying that step.

as regards runscanstate, yup you've got it, use wsim to create your own or use mine as long as it matches the architecture of your win7 image,

 

the network location hotfix is just a step to install a patch in windows 7, see here, to save time you can leave it out also

I know that seems like a question for each line of your post, but it seems like I missed a page of instructions or something. If you have the time to help me, then I'd appreciate it. You've no doubt done plenty to help me in the past.

 

Thanks!

 

no worries !

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
Answer this question...

×   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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.