{"id":3474,"date":"2015-10-01T22:09:00","date_gmt":"2015-10-01T20:09:00","guid":{"rendered":"https:\/\/www.derdack.com\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/"},"modified":"2020-07-02T13:34:02","modified_gmt":"2020-07-02T11:34:02","slug":"set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell","status":"publish","type":"post","link":"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/","title":{"rendered":"Set the Windows Service Account for all Enterprise Alert Services at once via PowerShell"},"content":{"rendered":"<div>Sometimes the Enterprise Alert services shall run under a Windows domain user account instead of under the \u201cLocalSystem\u201d account. This might be the case because of the required database access.<\/div>\n<div><\/div>\n<div>It can be quite annoying to set the credentials for all services manually. Therefore, the following PowerShell script will help you to do this very conveniently and automated:<\/div>\n<div><\/div>\n<div style=\"background: white\"><!--?prettify linenums=true?--><\/p>\n<pre class=\"prettyprint\"># Set all Enterprise Alert services to run under a certain user account\r\n$localaccount = \".Administrator\" # Username\r\n$newpassword = \"Password\" # Password\r\n$service = Get-WmiObject win32_Service- Filter \"Name LIKE 'message master%' OR Name LIKE 'Enterprise Alert%'\"\r\n$service.Change($null,$null,$null,$null,$null,$null, $localaccount, $newpassword)\r\n\r\n\r\n# Or set back to local system account\r\n# $service.Change($null,$null,$null,$null,$null,$null, \"LocalSystem\", $null)\r\n\r\n\r\n# Restart the services\r\n$service.stopservice()\r\n$service.startservice()\r\n\r\n\r\n# After that you might want to check whether all services are started correctly<\/pre>\n<\/div>\n<div style=\"background: white\"><\/div>\n<div class=\"clearfix\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Sometimes the Enterprise Alert services shall run under a Windows domain user account instead of under the \u201cLocalSystem\u201d account. This might be the case because of the required database access. It can be quite annoying to set the credentials for all services manually. Therefore, the following PowerShell script will help you to do this very<\/p>\n<p class=\"cv-read-more-button\"><a class=\"cv-button button is-standard color-accent has-icon icon-after\" href=\"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/\">Continue Reading<i class=\"button-icon icon-right-open-big\"><\/i><\/a><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[151,274,275],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Set the Windows Service Account for all Enterprise Alert Services at once via PowerShell<\/title>\n<meta name=\"description\" content=\"Sometimes the Enterprise Alert services shall run under a Windows domain user account instead of under the \u201cLocalSystem\u201d account. This might be the case\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"de_DE\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Set the Windows Service Account for all Enterprise Alert Services at once via PowerShell\" \/>\n<meta property=\"og:description\" content=\"Sometimes the Enterprise Alert services shall run under a Windows domain user account instead of under the \u201cLocalSystem\u201d account. This might be the case\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Derdack DE\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/derdack?ref=ts\" \/>\n<meta property=\"article:published_time\" content=\"2015-10-01T20:09:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-07-02T11:34:02+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<meta name=\"twitter:creator\" content=\"@derdack\" \/>\n<meta name=\"twitter:site\" content=\"@derdack\" \/>\n<meta name=\"twitter:label1\" content=\"Verfasst von\" \/>\n\t<meta name=\"twitter:data1\" content=\"ronald\" \/>\n\t<meta name=\"twitter:label2\" content=\"Gesch\u00e4tzte Lesezeit\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 Minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.derdack.com\/de\/#website\",\"url\":\"https:\/\/www.derdack.com\/de\/\",\"name\":\"Derdack DE\",\"description\":\"Alarmierung und mobile St\u00f6rfallreaktion f\u00fcr kritische Systeme\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.derdack.com\/de\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"de-DE\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/#webpage\",\"url\":\"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/\",\"name\":\"Set the Windows Service Account for all Enterprise Alert Services at once via PowerShell\",\"isPartOf\":{\"@id\":\"https:\/\/www.derdack.com\/de\/#website\"},\"datePublished\":\"2015-10-01T20:09:00+00:00\",\"dateModified\":\"2020-07-02T11:34:02+00:00\",\"author\":{\"@id\":\"https:\/\/www.derdack.com\/de\/#\/schema\/person\/45ea5442287c9b1738f56eb0b7770123\"},\"description\":\"Sometimes the Enterprise Alert services shall run under a Windows domain user account instead of under the \u201cLocalSystem\u201d account. This might be the case\",\"breadcrumb\":{\"@id\":\"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/#breadcrumb\"},\"inLanguage\":\"de-DE\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.derdack.com\/de\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set the Windows Service Account for all Enterprise Alert Services at once via PowerShell\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.derdack.com\/de\/#\/schema\/person\/45ea5442287c9b1738f56eb0b7770123\",\"name\":\"ronald\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"de-DE\",\"@id\":\"https:\/\/www.derdack.com\/de\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0dc470a8dfd7dcdcdc8a1f0e78de308?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0dc470a8dfd7dcdcdc8a1f0e78de308?s=96&d=mm&r=g\",\"caption\":\"ronald\"},\"url\":\"https:\/\/www.derdack.com\/de\/author\/ronald\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Set the Windows Service Account for all Enterprise Alert Services at once via PowerShell","description":"Sometimes the Enterprise Alert services shall run under a Windows domain user account instead of under the \u201cLocalSystem\u201d account. This might be the case","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/","og_locale":"de_DE","og_type":"article","og_title":"Set the Windows Service Account for all Enterprise Alert Services at once via PowerShell","og_description":"Sometimes the Enterprise Alert services shall run under a Windows domain user account instead of under the \u201cLocalSystem\u201d account. This might be the case","og_url":"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/","og_site_name":"Derdack DE","article_publisher":"https:\/\/www.facebook.com\/derdack?ref=ts","article_published_time":"2015-10-01T20:09:00+00:00","article_modified_time":"2020-07-02T11:34:02+00:00","twitter_card":"summary","twitter_creator":"@derdack","twitter_site":"@derdack","twitter_misc":{"Verfasst von":"ronald","Gesch\u00e4tzte Lesezeit":"1 Minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.derdack.com\/de\/#website","url":"https:\/\/www.derdack.com\/de\/","name":"Derdack DE","description":"Alarmierung und mobile St\u00f6rfallreaktion f\u00fcr kritische Systeme","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.derdack.com\/de\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"de-DE"},{"@type":"WebPage","@id":"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/#webpage","url":"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/","name":"Set the Windows Service Account for all Enterprise Alert Services at once via PowerShell","isPartOf":{"@id":"https:\/\/www.derdack.com\/de\/#website"},"datePublished":"2015-10-01T20:09:00+00:00","dateModified":"2020-07-02T11:34:02+00:00","author":{"@id":"https:\/\/www.derdack.com\/de\/#\/schema\/person\/45ea5442287c9b1738f56eb0b7770123"},"description":"Sometimes the Enterprise Alert services shall run under a Windows domain user account instead of under the \u201cLocalSystem\u201d account. This might be the case","breadcrumb":{"@id":"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/#breadcrumb"},"inLanguage":"de-DE","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.derdack.com\/de\/set-the-windows-service-account-for-all-enterprise-alert-services-at-once-via-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.derdack.com\/de\/"},{"@type":"ListItem","position":2,"name":"Set the Windows Service Account for all Enterprise Alert Services at once via PowerShell"}]},{"@type":"Person","@id":"https:\/\/www.derdack.com\/de\/#\/schema\/person\/45ea5442287c9b1738f56eb0b7770123","name":"ronald","image":{"@type":"ImageObject","inLanguage":"de-DE","@id":"https:\/\/www.derdack.com\/de\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0dc470a8dfd7dcdcdc8a1f0e78de308?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0dc470a8dfd7dcdcdc8a1f0e78de308?s=96&d=mm&r=g","caption":"ronald"},"url":"https:\/\/www.derdack.com\/de\/author\/ronald\/"}]}},"_links":{"self":[{"href":"https:\/\/www.derdack.com\/de\/wp-json\/wp\/v2\/posts\/3474"}],"collection":[{"href":"https:\/\/www.derdack.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.derdack.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.derdack.com\/de\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.derdack.com\/de\/wp-json\/wp\/v2\/comments?post=3474"}],"version-history":[{"count":3,"href":"https:\/\/www.derdack.com\/de\/wp-json\/wp\/v2\/posts\/3474\/revisions"}],"predecessor-version":[{"id":10173,"href":"https:\/\/www.derdack.com\/de\/wp-json\/wp\/v2\/posts\/3474\/revisions\/10173"}],"wp:attachment":[{"href":"https:\/\/www.derdack.com\/de\/wp-json\/wp\/v2\/media?parent=3474"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.derdack.com\/de\/wp-json\/wp\/v2\/categories?post=3474"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.derdack.com\/de\/wp-json\/wp\/v2\/tags?post=3474"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}