After the last Configuration Manager 2007 installation I was tired of installing all the prerequisites so I thought I would solve it once and for all by finally complete the script for installation of the prerequisites. It has saved me a lot of time included the WebDAV configuration aswell today, I hope it will help more than me.
Installing WSUS however is not supported through ServerManagerCmd in Windows 2008 R2, so this is the only thing I install manually.The rest of the pre-requirements however was no problem on a Windows 2008 R2 server.
The cmd file below will install the following:
- IIS with the necessary role services
- BITS
- Remote differential compression
- .Net framework
- WDS
- WebDAV including the configuration of authoring rules and settings.
Here is how to use it:
- Copy the text below and save in a .cmd file
- Launch a Command Prompt using the “Run as Administrator” option.
- Execute the .cmd file
———————————————–
ServerManagerCmd -i Web-Server
ServerManagerCmd -i Web-Asp-Net
ServerManagerCmd -i Web-ASP
ServerManagerCmd -i Web-Windows-Auth
ServerManagerCMd -i Web-WMI
ServerManagerCmd -i Web-Mgmt-Compat
ServerManagerCmd -i Web-DAV-Publishing
ServerManagerCmd -i Application-Server
ServerManagerCmd -i BITS
ServerManagerCmd -i RDC
ServerManagerCmd -i WDS
ServerManagerCmd -i FS-Fileserver
%windir%\system32\inetsrv\AppCmd set config “Default Web Site/” /section:system.webServer/webdav/authoring /enabled:true /commit:apphost
%windir%\system32\inetsrv\AppCmd set config “Default Web Site/” /section:system.webServer/webdav/authoring /fileSystem.allowHiddenFiles:true /commit:apphost
%windir%\system32\inetsrv\AppCmd set config “Default Web Site/” /section:system.webServer/webdav/authoring /properties.allowAnonymousPropfind:true /commit:apphost
%windir%\system32\inetsrv\AppCmd set config “Default Web Site/” /section:system.webServer/webdav/authoring /properties.allowcustomproperties:false /commit:apphost
%windir%\system32\inetsrv\AppCmd set config “Default Web Site/” /section:system.webServer/webdav/authoring /properties.allowInfinitePropfindDepth:true /commit:apphost
%windir%\system32\inetsrv\AppCmd set config “Default Web Site/” /section:system.webServer/webdav/authoringRules /+[users=’*’,path=’*’,access=’Read’] /commit:apphost
Cheers Mate!
Wow, this will save me a lot of time. Thank you for sharing this
If you want to run the server manager commands via Powershell then you can use this:
Import-Module Servermanager
Add-WindowsFeature BITS, RDC, Web-DAV-Publishing, Web-Asp-Net, Web-Asp, Web-Windows-Auth, Web-Metabase, Web-WMI
Nice tip on the WebDav authoring rules!
Thank you!
Great! Thanks a lot! It saved me a lot of time.
Is this available as the powershell cmdlets? I keep getting messages about servermanager being deprecated and whatnot. I’ve seen the powershell cmdlet scripts, but can’t find it anywhere now. This is all I could find, but if you have it available as powershell that would be appreciated too!
Thanks.
Barry.
Hi,
Servermanagercmd still works for Windows 2008 R2 but this is the last version of it, so the script will still work for Windows 2008 r2. I am planning to update it to SCCM 2012 and Powershell.
/jörgen
Fantastic. you might want to consider using dism instead of servermanger to get around the last issue mentioned
Awesome, saved some time there