When it was time to rebuild my labb environment again I decided to write a little .CMD file that helps med in the future. I did it for SCCM 2007 but now there is not that much to configure now that Webdav is not needed anymore, but I did it anyway.
Yes, I could have written it in Powershell but I didn’t I like to keep it simple. The script will install:
- .NET framework 4
- Client Push Windows 2008 R2 server OS hotfix pre-req, KB2552033
- Configure IIS
- Install WDS, RDC, BITS
You can download .NET Framework 4 : http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=17718
You can download KB2552033 here: http://support.microsoft.com/kb/2552033
Create a cmd file and copy the content below to it and place it in the same directory as the two downloaded files like this:
Prereq.cmd content:
ServerManagerCmd -i Application-Server
ServerManagerCmd -i Web-Server
ServerManagerCmd -i Web-Asp-Net
ServerManagerCmd -i AS-Web-Support
ServerManagerCmd -i AS-TCP-Activation
ServerManagerCMd -i Web-Metabase
ServerManagerCmd -i Web-Mgmt-Compat
ServerManagerCmd -i BITS
ServerManagerCmd -i RDC
ServerManagerCmd -i WDS
ServerManagerCmd -i FS-Fileserver
dotNetFx40_Full_x86_x64.exe /q /norestart
wusa.exe Windows6.1-KB2552033-x64.msu /quiet /norestart
I was not thinking and named the script ServerManagerCmd.cmd so when I ran the script, it was in an infinite loop.