{"id":3017,"date":"2021-02-16T13:48:28","date_gmt":"2021-02-16T12:48:28","guid":{"rendered":"https:\/\/laurentvanacker.com\/?p=3017"},"modified":"2022-12-09T09:50:11","modified_gmt":"2022-12-09T08:50:11","slug":"scom2019-via-automatedlab","status":"publish","type":"post","link":"https:\/\/laurentvanacker.com\/index.php\/2021\/02\/16\/scom2019-via-automatedlab\/","title":{"rendered":"SCOM 2019 via AutomatedLab"},"content":{"rendered":"<p><a href=\"#en-us\" name=\"fr-fr\">Go to English version<\/a><\/p>\n<p>[MAJ : 05\/05\/2021] Le script propos\u00e9 dans cet article a servi de base de travail Blake Drumm que l&rsquo;on peut trouver sur <a href=\"https:\/\/github.com\/v-bldrum\/SCOM-Scripts-and-SQL\/tree\/master\/AutomatedLab\">https:\/\/github.com\/v-bldrum\/SCOM-Scripts-and-SQL\/tree\/master\/AutomatedLab<\/a><\/p>\n<p>Toujours dans la veine d&rsquo;<a href=\"https:\/\/github.com\/AutomatedLab\/AutomatedLab\" target=\"_blank\" rel=\"noopener noreferrer\">AutomatedLab<\/a>, je propose dans cette article (qui fait suite \u00e0 <a href=\"https:\/\/laurentvanacker.com\/index.php\/tag\/automatedlab\/\">ceux-ci<\/a>) un petit environnement de test pour SCOM 2019 avec mise en place d&rsquo;un Management Pack IIS sur un serveur <a href=\"https:\/\/www.iis.net\/\">IIS<\/a>.<\/p>\n<p>J&rsquo;ai donc \u00e9labor\u00e9 le script <a href=\"https:\/\/github.com\/lavanack\/laurentvanacker.com\/blob\/master\/Windows%20Powershell\/SCOM\/AutomatedLab%20-%20SCOM%20-%202019.ps1\">suivant.<\/a><\/p>\n<p>L&rsquo;environnement est compos\u00e9 de 4 serveurs :<\/p>\n<ul>\n<li>DC01 : Contr\u00f4leur de domaine (contoso.com)<\/li>\n<li>IIS01 : Serveur <a href=\"https:\/\/www.iis.net\/\">IIS<\/a> sur lequel on installera le Management Pack IIS.<\/li>\n<li>SCOM01 : Server SCOM 2019 qui disposera des fonctionnalit\u00e9s <a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-mgmt-server?view=sc-om-2019\">Operations Manager Management Server<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-ops-console?view=sc-om-2019\">Operations Console<\/a> et <a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-web-console?view=sc-om-2019\">Operations Manager Web Console\u00a0<\/a><\/li>\n<li>SQL01: Serveur SQL Server 2019 (CU8 lors de la r\u00e9daction de cet article) avec les fonctionnalit\u00e9s\u00a0 <a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/reporting-services\/create-deploy-and-manage-mobile-and-paginated-reports\">SSRS<\/a> et <a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-reporting-server?view=sc-om-2019\">Operations Manager Reporting<\/a><\/li>\n<\/ul>\n<p>Le nom des serveurs est \u00e9crit dans le code (faites un \u00ab\u00a0Global Replace\u00a0\u00bb CTRL+H si les noms ne vous conviennent pas). De m\u00eame que certains autres param\u00e8tres tels que :<\/p>\n<ul>\n<li>Le nom du Lab (\u00ab\u00a0SCOM2019\u00a0\u00bb par d\u00e9faut)<\/li>\n<li>Le compte d&rsquo;administration \u00e0 utiliser (\u00ab\u00a0Administrator\u00a0\u00bb par d\u00e9faut)<\/li>\n<li>Le mot de passe associ\u00e9 (\u00ab\u00a0P@ssw0rd\u00a0\u00bb par d\u00e9faut)<\/li>\n<li>Le nom du domaine (FQDN et NetBIOS) (\u00ab\u00a0contoso.com\u00a0\u00bb et \u00ab\u00a0CONTOSO\u00a0\u00bb par d\u00e9faut)<\/li>\n<li>Les noms des comptes et groupes SCOM utilis\u00e9s<\/li>\n<li>&#8230;<\/li>\n<\/ul>\n<p>Une fois le script termin\u00e9, connectez-vous sur SCOM01 et d\u00e9marrez \u00ab\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-ops-console?view=sc-om-2019\">Operations Console<\/a>\u00ab\u00a0, allez dans la rubrique \u00ab\u00a0Monitoring\u00a0\u00bb et ensuite \u00ab\u00a0Windows Web Server State\u00a0\u00bb. Vous constaterez qu&rsquo;en plus du serveur SCOM01, la partie IIS du serveur IIS01 est aussi supervis\u00e9e.<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-3020 aligncenter\" src=\"https:\/\/laurentvanacker.com\/wp-content\/uploads\/2021\/02\/SCOM2019.png\" alt=\"\" width=\"750\" srcset=\"https:\/\/laurentvanacker.com\/wp-content\/uploads\/2021\/02\/SCOM2019.png 1011w, https:\/\/laurentvanacker.com\/wp-content\/uploads\/2021\/02\/SCOM2019-300x163.png 300w, https:\/\/laurentvanacker.com\/wp-content\/uploads\/2021\/02\/SCOM2019-768x416.png 768w\" sizes=\"(max-width: 1011px) 100vw, 1011px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Quelques liens utiles qui m&rsquo;ont aid\u00e9 \u00e0 construire cette solution :<\/p>\n<ul>\n<li><a href=\"https:\/\/rlevchenko.com\/2018\/01\/16\/automate-scom-2016-installation-with-powershell\/\">https:\/\/rlevchenko.com\/2018\/01\/16\/automate-scom-2016-installation-with-powershell\/<\/a><\/li>\n<li><a href=\"https:\/\/thesystemcenterblog.com\/2019\/07\/08\/installing-scom-2019-from-the-command-line\/\">https:\/\/thesystemcenterblog.com\/2019\/07\/08\/installing-scom-2019-from-the-command-line\/<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-reporting-server?view=sc-om-2019\">https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-reporting-server?view=sc-om-2019<\/a><\/li>\n<li><a href=\"https:\/\/redmondmag.com\/articles\/2020\/10\/26\/sql-server-reporting-for-scom.aspx\">https:\/\/redmondmag.com\/articles\/2020\/10\/26\/sql-server-reporting-for-scom.aspx<\/a><\/li>\n<li><a href=\"https:\/\/blog.aelterman.com\/2018\/01\/01\/silent-installation-and-configuration-for-sql-server-2017-reporting-services\/\">https:\/\/blog.aelterman.com\/2018\/01\/01\/silent-installation-and-configuration-for-sql-server-2017-reporting-services\/<\/a><\/li>\n<li><a href=\"https:\/\/blog.aelterman.com\/2018\/01\/03\/complete-automated-configuration-of-sql-server-2017-reporting-services\/\">https:\/\/blog.aelterman.com\/2018\/01\/03\/complete-automated-configuration-of-sql-server-2017-reporting-services\/<\/a><\/li>\n<li><a href=\"https:\/\/www.prajwaldesai.com\/install-scom-agent-using-command-line\/\">https:\/\/www.prajwaldesai.com\/install-scom-agent-using-command-line\/<\/a><\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"http:\/\/laurentvanacker.com\/wp-content\/uploads\/2017\/01\/012717_1333_Fusionnerde1.png\" alt=\"\" \/><\/p>\n<p><a href=\"#fr-FR\" name=\"en-us\">Aller \u00e0 la version fran\u00e7aise<\/a><\/p>\n<div class=\"tlid-results-container results-container\">\n<div class=\"tlid-result result-dict-wrapper\">\n<div class=\"result tlid-copy-target\">\n<div class=\"text-wrap tlid-copy-target\">\n<div class=\"result-shield-container tlid-copy-target\" tabindex=\"0\"><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fr\" data-phrase-index=\"0\">[Update: 05\/05\/2021] The script proposed in this article served as a basis for Blake Drumm&rsquo;s work which can be found on <a href=\"https:\/\/github.com\/v-bldrum\/SCOM-Scripts-and-SQL\/tree\/master\/AutomatedLab\">https:\/\/github.com\/v-bldrum\/SCOM-Scripts-and-SQL\/<\/a><\/span><a href=\"https:\/\/github.com\/v-bldrum\/SCOM-Scripts-and-SQL\/tree\/master\/AutomatedLab\"> <span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fr\" data-phrase-index=\"1\">tree \/ master \/ AutomatedLab<\/span><\/a><\/span><\/div>\n<div tabindex=\"0\"><\/div>\n<div class=\"result-shield-container tlid-copy-target\" tabindex=\"0\">Still working on <a href=\"https:\/\/github.com\/AutomatedLab\/AutomatedLab\" target=\"_blank\" rel=\"noopener noreferrer\">AutomatedLab<\/a>, I propose in this article (which follows these <a href=\"https:\/\/laurentvanacker.com\/index.php\/tag\/automatedlab\/\">ones<\/a>) <span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fr\" data-phrase-index=\"0\">a small test environment for SCOM 2019 with the implementation of an IIS Management Pack on an <a href=\"https:\/\/www.iis.net\/\">IIS<\/a> server.<\/span><\/span><\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<p>So I developed the following <a href=\"https:\/\/github.com\/lavanack\/laurentvanacker.com\/blob\/master\/Windows%20Powershell\/SCOM\/AutomatedLab%20-%20SCOM%20-%202019.ps1\">script<\/a>.\u00a0<a id=\"a1c12e5284a026a9c64e60982cd65099-5229870145b432fed53217e27bede5f07debcc1a\" class=\"js-navigation-open\" title=\"contoso.com.zip\" href=\"https:\/\/github.com\/lavanack\/laurentvanacker.com\/blob\/master\/Windows%20Powershell\/IIS\/AutomatedLab\/SQL%20%26%20Kerberos%20Delegation\/WideWorldImporters.zip\"><\/a><\/p>\n<p>The environment is composed of 4 servers:<\/p>\n<ul>\n<li>DC01: Domain Controller (contoso.com)<\/li>\n<li>IIS01: <a href=\"https:\/\/docs.microsoft.com\/en-us\/windows-server\/networking\/technologies\/network-load-balancing\">IIS<\/a> <span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fr\" data-phrase-index=\"0\">on which the IIS Management Pack will be installed.<\/span><\/span><\/li>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fr\" data-phrase-index=\"0\">SCOM01: Server SCOM 2019 with the <\/span><\/span><a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-mgmt-server?view=sc-om-2019\">Operations Manager Management Server<\/a>, <a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-ops-console?view=sc-om-2019\">Operations Console<\/a> and <a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-web-console?view=sc-om-2019\">Operations Manager Web Console<\/a>\u00a0features<\/li>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fr\" data-phrase-index=\"0\">SQL01: SQL Server 2019 (CU8 at the time of writing this article) with <\/span><\/span><a href=\"https:\/\/docs.microsoft.com\/en-us\/sql\/reporting-services\/create-deploy-and-manage-mobile-and-paginated-reports\">SSRS<\/a> et <a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-reporting-server?view=sc-om-2019\">Operations Manager Reporting<\/a> <span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fr\" data-phrase-index=\"0\">features<\/span><\/span><\/li>\n<\/ul>\n<p>The name of the servers is written in the code (make a \u00ab\u00a0Global Replace\u00a0\u00bb CTRL+H if the names do not suit you). As well as certain other parameters such as:<\/p>\n<div class=\"tlid-results-container results-container\">\n<div class=\"tlid-result result-dict-wrapper\">\n<div class=\"result tlid-copy-target\">\n<div class=\"text-wrap tlid-copy-target\">\n<ul>\n<li class=\"result-shield-container tlid-copy-target\" tabindex=\"0\"><span class=\"tlid-translation translation\" lang=\"en\"><span title=\"\">Lab name (\u00ab\u00a0SCOM2019\u00a0\u00bb by default)<\/span><\/span><\/li>\n<li class=\"result-shield-container tlid-copy-target\" tabindex=\"0\"><span class=\"tlid-translation translation\" lang=\"en\"><span title=\"\">The administration account (\u00ab\u00a0Administrator\u00a0\u00bb by default)<\/span><\/span><\/li>\n<li class=\"result-shield-container tlid-copy-target\" tabindex=\"0\"><span class=\"tlid-translation translation\" lang=\"en\"><span title=\"\">The associated password (\u00ab\u00a0P@ssw0rd\u00a0\u00bb by default)<\/span><\/span><\/li>\n<li class=\"result-shield-container tlid-copy-target\" tabindex=\"0\"><span class=\"tlid-translation translation\" lang=\"en\"><span title=\"\">The domain name (FQDN and NetBIOS) (\u00ab\u00a0contoso.com\u00a0\u00bb and \u00ab\u00a0CONTOSO\u00a0\u00bb by default)<\/span><\/span><\/li>\n<li class=\"result-shield-container tlid-copy-target\" tabindex=\"0\"><span class=\"tlid-translation translation\" lang=\"en\"><span class=\"\" title=\"\">The name of the used website (wideworldimporters.contoso.com)<\/span><\/span><\/li>\n<li tabindex=\"0\">The names of the SCOM accounts and groups used<\/li>\n<li tabindex=\"0\">&#8230;<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"FFpbKc\"><\/div>\n<div class=\"dePhmb\">\n<div class=\"eyKpYb\" data-language=\"en\" data-original-language=\"fr\" data-result-index=\"0\">\n<div class=\"J0lOec\"><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fr\" data-phrase-index=\"0\">Once the script is finished, connect to SCOM01 and start \u00ab\u00a0<a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-ops-console?view=sc-om-2019\">Operations Console<\/a>\u00ab\u00a0, go to the \u00ab\u00a0Monitoring\u00a0\u00bb section and then \u00ab\u00a0Windows Web Server State\u00a0\u00bb.<\/span> <span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fr\" data-phrase-index=\"1\">You will notice that in addition to the SCOM01 server, the IIS part of the IIS01 server is also supervised.<\/span><\/span><\/div>\n<\/div>\n<\/div>\n<p><img decoding=\"async\" class=\"size-full wp-image-3020 aligncenter\" src=\"https:\/\/laurentvanacker.com\/wp-content\/uploads\/2021\/02\/SCOM2019.png\" alt=\"\" width=\"750\" srcset=\"https:\/\/laurentvanacker.com\/wp-content\/uploads\/2021\/02\/SCOM2019.png 1011w, https:\/\/laurentvanacker.com\/wp-content\/uploads\/2021\/02\/SCOM2019-300x163.png 300w, https:\/\/laurentvanacker.com\/wp-content\/uploads\/2021\/02\/SCOM2019-768x416.png 768w\" sizes=\"(max-width: 1011px) 100vw, 1011px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b ChMk0b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fr\" data-phrase-index=\"0\">Some useful links that helped me to build this solution:<\/span><\/span>\n<ul>\n<li><a href=\"https:\/\/rlevchenko.com\/2018\/01\/16\/automate-scom-2016-installation-with-powershell\/\">https:\/\/rlevchenko.com\/2018\/01\/16\/automate-scom-2016-installation-with-powershell\/<\/a><\/li>\n<li><a href=\"https:\/\/thesystemcenterblog.com\/2019\/07\/08\/installing-scom-2019-from-the-command-line\/\">https:\/\/thesystemcenterblog.com\/2019\/07\/08\/installing-scom-2019-from-the-command-line\/<\/a><\/li>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-reporting-server?view=sc-om-2019\">https:\/\/docs.microsoft.com\/en-us\/system-center\/scom\/deploy-install-reporting-server?view=sc-om-2019<\/a><\/li>\n<li><a href=\"https:\/\/redmondmag.com\/articles\/2020\/10\/26\/sql-server-reporting-for-scom.aspx\">https:\/\/redmondmag.com\/articles\/2020\/10\/26\/sql-server-reporting-for-scom.aspx<\/a><\/li>\n<li><a href=\"https:\/\/blog.aelterman.com\/2018\/01\/01\/silent-installation-and-configuration-for-sql-server-2017-reporting-services\/\">https:\/\/blog.aelterman.com\/2018\/01\/01\/silent-installation-and-configuration-for-sql-server-2017-reporting-services\/<\/a><\/li>\n<li><a href=\"https:\/\/blog.aelterman.com\/2018\/01\/03\/complete-automated-configuration-of-sql-server-2017-reporting-services\/\">https:\/\/blog.aelterman.com\/2018\/01\/03\/complete-automated-configuration-of-sql-server-2017-reporting-services\/<\/a><\/li>\n<li><a href=\"https:\/\/www.prajwaldesai.com\/install-scom-agent-using-command-line\/\">https:\/\/www.prajwaldesai.com\/install-scom-agent-using-command-line\/<\/a><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>Laurent.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Go to English version [MAJ : 05\/05\/2021] Le script propos\u00e9 dans cet article a servi de base de travail Blake Drumm que l&rsquo;on peut trouver [&#8230;]<\/p>\n","protected":false},"author":2,"featured_media":2465,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,19,12],"tags":[20,54,48,25,39,41],"class_list":["post-3017","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-iis","category-powershell","category-securite-security","tag-net","tag-automatedlab","tag-github","tag-iis","tag-powershell","tag-securite"],"_links":{"self":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts\/3017","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/comments?post=3017"}],"version-history":[{"count":5,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts\/3017\/revisions"}],"predecessor-version":[{"id":3037,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/posts\/3017\/revisions\/3037"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/media\/2465"}],"wp:attachment":[{"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/media?parent=3017"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/categories?post=3017"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/laurentvanacker.com\/index.php\/wp-json\/wp\/v2\/tags?post=3017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}