Installing SCCM 2007 Prerequisites unattended

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

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:

  1. Copy the text below and save in a .cmd file
  2. Launch a Command Prompt using the “Run as Administrator” option.
  3. 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

11 Comments

Add a Comment

Your email address will not be published. Required fields are marked *