SCCM scripted install note: Webdav prerequisite

http://technet.microsoft.com/en-us/library/cc431377.aspx

Installing SCCM 2007 on Server 2008 or Server 2008 R2 has a number of prerequisites related to IIS, namely:

– Remote Differential Compression
– IIS 7.0 for 2008, IIS 7.5 for 2008 R2
– BITS Server Extensions/Background Intelligent Transfer Services (BITS), Remote Differential Compression, WebDAV Publishing (2008 R2 only), ASP.NET, Windows Authentication
– On 2008, webdav needs to be installed manually

Most of these can be easily taken care of by installing the correct roles/role services on the platforms in question. This is easy to do on 2008/2008R2 using servermanagercmd.exe, e.g.:


servermanagercmd.exe -install BITS Web-Asp-Net

Once you have IIS installed (and on 2008, have manually installed webdav) you need to configure webdav. This can be done using the following scripted commands via the appcmd.exe utility which comes with IIS7.


%WinDir%\System32\InetSrv\appcmd.exe set config "Default Web Site" /section:system.webServer/webdav/authoring /enabled:true /commit:apphost
%WinDir%\System32\InetSrv\appcmd.exe set config "Default Web Site" /section:system.webServer/webdav/authoringRules /+[users='*',path='*',access='Read'] /commit:apphost
%WinDir%\System32\InetSrv\appcmd.exe set config "Default Web Site" /section:system.webServer/webdav/authoring /fileSystem.allowHiddenFiles:true /commit:apphost
%WinDir%\System32\InetSrv\appcmd.exe set config "Default Web Site" /section:system.webServer/webdav/authoring /properties.allowAnonymousPropfind:true /commit:apphost
%WinDir%\System32\InetSrv\appcmd.exe set config "Default Web Site" /section:system.webServer/webdav/authoring /properties.allowInfinitePropfindDepth:true /commit:apphost
%WinDir%\System32\InetSrv\appcmd.exe set config "Default Web Site" /section:system.webServer/webdav/authoring /properties.allowCustomProperties:false /commit:apphost

This performs the same actions as the instructions here.

Advertisements