We help IT Professionals succeed at work.

How to migrate a Website from Windows 2003 to Window 2012


We were using windows 2013 server in our network and my predecessors had setup a password reset utility on this server.
Basically they have created a shortcut pointing to the following URL  and when I click this shortcut  
http://Win2003 Server/SchooAdmin/spwr/spwr.hta

It asks to run and when I click run, it opens  a box , where it gives options to change password of students and put the new password  and click reset , it changes the password successfully.

Please see the attached IIS snapshot, the properties of the Default website and if I open the
C:\inetpub\wwwroot folder , I can see the SchoolAdmin and spwr folder and many files are there within this folder.

Now I would like to migrate this password reset program to a Windows 2012 server. Please let me know if there is a way successfully migrating this.
Watch Question

ok this sounds like a HTML appllication for self service password resets ? Dont think it has any dependency on databases, just has a connection to AD ?

Have you tried just copying the files to your 2012 boxs iis root folder.

There are some documentation available on how to do this:

hope it helps.
Shaun VermaakSenior Consultant
Awarded 2017
Distinguished Expert 2019
That is an HTA and it does not require IIS. It can run directly from a share.

If the tool is for resetting (new password) and not setting (supply old password and then new password), I would be concerned about the security of this.

I believe that anyone will be able to get the service account password or in the very least be able to run in the context thereof, even be able to change the user to someone else and reset the password.

Can you post HTA file?
Peter HutchisonSenior Network Systems Specialist
You can restrict access using NTFS and Share permissions to the users/groups who are authorized to run it.
If its a web site, you can restrict the web site by IP addresses or subnets.
Shaun VermaakSenior Consultant
Awarded 2017
Distinguished Expert 2019
But the source cannot be protected and if it contains the password it will be exposed



As this is setup in Windows 2003 server and internet explorer 8 is the last supported version. When accesing http://Win2003 Server/SchooAdmin/spwr/spwr.hta from the Windows XP , the page opens fine without any problems as attached .
Here is shows only the students , it doesn't allow to see any other users or service accounts. I have given access to run this HTA file only to designated  teachers who are password reset admin for students.

Now when I browse the following path from the Windows 7 IE11 it doesn't display properly , please see the attached.
http://Win2003 Server/SchooAdmin/spwr/spwr.hta

I thought after copying the directories to the new Windows 2012  it must display properly , but it is not displaying properly  and same as the second snapshot attached
when I browse from Windows 7  and ie11.
http://Win2012 Server/SchooAdmin/spwr/spwr.hta

But when I click any of the year  and click show users , it lists all the users.

Please let me know how to make this page display properly from IE 11as it displays when opened from IE6
Senior Network Systems Specialist
You may need to update the Internet Options, Internet Security esp. scripts as IE is more secure. I would consider re-writing the HTA program as a proper ASPX website.

See also https://social.technet.microsoft.com/Forums/exchange/en-US/c9538726-669c-4d89-a5fe-2224319e3395/hta-file-will-not-run-correctly?forum=ieitprocurrentver