Menu
CCMEXEC.COM – Enterprise Mobility
  • Home
  • General
  • Configuration Manager
  • Windows 10
  • Intune
  • GitHub
  • Windows 11
  • About the author
CCMEXEC.COM – Enterprise Mobility

Installing SCCM 2007 Prerequisites unattended

Posted on March 15, 2011March 12, 2011 by Jörgen Nilsson
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 thoughts on “Installing SCCM 2007 Prerequisites unattended”

  1. Markus says:
    March 16, 2011 at 8:39 am

    Cheers Mate!

    Reply
  2. Björn says:
    March 16, 2011 at 11:31 am

    Wow, this will save me a lot of time. Thank you for sharing this

    Reply
  3. Luke says:
    March 17, 2011 at 9:26 pm

    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!

    Reply
  4. Florian says:
    March 18, 2011 at 10:05 am

    Thank you!

    Reply
  5. Pingback: Markus Bäker » Prerequests für SCCM 2007 R3
  6. Markus Kugler says:
    July 4, 2011 at 11:51 am

    Great! Thanks a lot! It saved me a lot of time.

    Reply
  7. Barry Duncan says:
    July 18, 2011 at 4:00 am

    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.

    Reply
  8. Jörgen Nilsson says:
    July 18, 2011 at 10:12 am

    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

    Reply
  9. Eyas says:
    October 25, 2011 at 10:41 am

    Fantastic. you might want to consider using dism instead of servermanger to get around the last issue mentioned

    Reply
  10. Pingback: The knack » Blog Archive » System Center Configuration Manager 2007
  11. Russo says:
    July 18, 2012 at 2:33 am

    Awesome, saved some time there

    Reply

Leave a Reply Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

My name is Jörgen Nilsson and I work as a Senior Consultant at Onevinn in Malmö, Sweden. This is my blog where I will share tips and stuff for my own and everyone elses use on Enterprise Mobility and Windows related topics.
All code is provided "AS-IS" with no warranties.

Tweets by ccmexec

Recent Posts

  • Windows Servicing, Personal Teams and Success.cmd
  • Windows MDM Security Baseline – Settings Catalog
  • Configuring MS Edge Security Baseline v107 using Settings Catalog
  • Configuring Desktop App Installer using CSP and script?!
  • Customizing Taskbar and Start in Windows 11 22h2 with PowerShell

©2023 CCMEXEC.COM – Enterprise Mobility | WordPress Theme by Superb Themes
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT