Thanks Joseph
I got it working on Server 2012 in the end. Here are the steps if anyone is interested.
I got it working on Server 2012 in the end. Here are the steps if anyone is interested.
- Commented out the call to InstallPrerequisites and install them manually.
- Add -Version 2 as an argument to the powershell calls. This was both in the bat file and in the scripts for when it create the UPS.
-
Comment out the lines which check and stop the default web site. Then go and stop and disable the default website manually. There seems to be an issue with using the -Version 2 call and importing the WebAdministration module.