Managing System Center Configuration Manager (SCCM) often involves ensuring that the IIS (Internet Information Services) configuration is correctly set up, especially for Distribution Points (DPs). Misconfigured IIS settings can lead to deployment failures, content distribution issues, or client communication problems. This guide walks you through fixing default IIS configurations for SCCM DPs, troubleshooting common issues, and ensuring your environment runs smoothly. Before starting, ensure you have administrative access to the server hosting SCCM and IIS, and that you have a recent backup of IIS settings or the server itself, in case rollback is needed.
What You’ll Need
- Administrative access to the SCCM server
- Access to IIS Manager
- Proper permissions to modify IIS settings and restart services
- Basic understanding of IIS and SCCM architecture
- Optional: PowerShell with SCCM and IIS modules for scripting
Step-by-Step
- Verify IIS is Installed and Running:
- Open IIS Manager by typing ‘inetmgr’ in Run or Command Prompt.
- Ensure that the default website and relevant SCCM site system web services are running.
- If IIS is not installed, install the Web Server (IIS) role via Server Manager, including features like ASP.NET, ISAPI Extensions, and Static Content.
- Check Default IIS Website Bindings:
- In IIS Manager, select the ‘Default Web Site’.
- Click on ‘Bindings’ and verify that the site is bound to the correct IP address and port (usually 80 for HTTP, 443 for HTTPS).
- Ensure that there are no conflicting bindings that could prevent IIS from serving content properly.
- Reset IIS to Default Configuration:
- Open Command Prompt as administrator.
- Run the command:
iisreset /stopto stop IIS. - Delete or back up the existing IIS configuration files located in
C:\\\Windows\\\System32\\inetsrv\\config. - Run:
iisreset /startto restart IIS, which will regenerate default configuration files.
- Configure IIS for SCCM:
- Ensure that the necessary SCCM web services are enabled under IIS, like the SMS_WSUS_SYNC_MANAGER and Distribution Point sites.
- Check that the IIS application pools used by SCCM (e.g., ‘SMS Application Pool’) are running and configured for correct .NET versions.
- Adjust permissions on the IIS directories to allow SCCM server accounts to access content.
- Validate HTTPS Settings (if used):
- If HTTPS is configured, verify that SSL certificates are valid, not expired, and correctly bound to IIS.
- Ensure the certificate is trusted and has the correct hostname matching the site URL.
- Test Site Accessibility:
- Open a web browser and navigate to the site URL (e.g., http://:80). Confirm that the default page loads correctly.
- If HTTPS is configured, test https://:443.
- Use tools like curl or Postman to send requests and check for proper responses.
- Check SCCM Site System Status:
- Open the SCCM Console, navigate to Administration > Site Configuration > Servers and Site System Roles.
- Verify that the site system roles, especially Distribution Points, are marked as ‘Active’ and ‘Healthy.’
- Review the logs distmgr.log and smsdpprov.log for related errors.
- Restart IIS and SCCM Services:
- In Command Prompt, run
iisresetto restart IIS. - Restart SCCM services via services.msc or PowerShell:
Restart-Service -Name 'sms_agent_host','sms_site_component_manager'.
- In Command Prompt, run
- Test Content Distribution:
- Attempt to distribute content or deploy applications to the DP.
- Monitor the status in the SCCM console and review logs for errors.
Common Mistakes
- Not backing up IIS configurations before making changes, leading to difficult recovery if issues arise.
- Forgetting to restart IIS after configuration changes, which prevents new settings from taking effect.
- Using incorrect site binding settings, such as conflicting ports or IP addresses, causing IIS not to serve content properly.
- Applying SSL certificates incorrectly or using expired certificates, resulting in failed HTTPS connections.
- Overlooking permissions on IIS directories or site bindings, blocking access to SCCM clients or administrators.
- Misconfiguring the IIS application pools, such as using the wrong .NET version or incorrect identity settings.
Tips
- Regularly back up IIS configurations before making major changes.
- Use the IIS Diagnostics feature or Failed Request Tracing to identify specific issues.
- Ensure that the server’s firewall allows inbound traffic on required ports (80, 443, 8530, 8531, etc.).
- Keep IIS and Windows Server updated to the latest patches for security and stability.
- Use PowerShell scripts for automating repetitive tasks like restarting services or verifying configurations.
- Consult the SCCM and IIS logs regularly for signs of misconfiguration or errors.
Troubleshooting
If issues persist after following the above steps, consider the following troubleshooting tips:
- Check IIS Error Logs: Review the Windows Event Viewer under ‘Application’ and ‘System’ logs for IIS-related errors.
- Use IIS Diagnostic Tools: Run inetmgr diagnostics or use tools like Fiddler to trace HTTP/HTTPS requests and responses.
- Verify DNS and Hostname Settings: Confirm that DNS records point correctly to your server and that site URLs resolve properly.
- Review SCCM Logs: Focus on distmgr.log and smsexec.log for distribution point related errors.
- Test Connectivity: Use telnet or PowerShell to test port accessibility from client machines.
- Reinstall IIS Components: If corruption is suspected, remove and reinstall IIS roles and features, then reconfigure.
- Consult Microsoft Documentation: Use official resources for specific IIS or SCCM configuration issues.
Frequently Asked Questions
1. How do I reset IIS to default settings for SCCM?
Stop IIS with iisreset /stop, back up or delete the config files in C:\\Windows\\System32\\inetsrv\\config, then restart IIS with iisreset /start. This resets IIS to default configurations.
2. Why is my SCCM Distribution Point not accessible via IIS?
Check IIS bindings, ensure the site is running, verify SSL certificates if HTTPS is used, and confirm permissions are correct. Review IIS logs for errors.
3. How can I verify if IIS is serving SCCM content correctly?
Navigate to the site URL in a browser, check for the default page, and use tools like Fiddler or curl to test responses. Ensure that relevant ports are open and accessible.
4. What should I do if IIS is running but SCCM clients cannot connect?
Verify network connectivity, DNS resolution, port accessibility, and IIS site bindings. Also, check SCCM logs for client connection errors and ensure proper permissions.
5. How do I troubleshoot IIS SSL certificate issues for SCCM?
Ensure the certificate is valid, not expired, trusted, and correctly bound to IIS. Use IIS Manager to verify bindings and test HTTPS access. Check certificate store permissions.
6. Can I automate IIS configuration corrections for SCCM?
Yes, PowerShell scripts can be used to automate IIS site and application pool configuration, restart services, and verify settings, reducing manual effort and errors.
Maintaining proper IIS configuration for SCCM distribution points is crucial for reliable deployment and management. Regularly monitor logs, keep systems updated, and follow best practices outlined here to ensure your SCCM environment remains healthy and responsive.