{"id":7837,"date":"2019-07-14T04:01:38","date_gmt":"2019-07-14T11:01:38","guid":{"rendered":"https:\/\/www.coretechnologies.com\/blog\/?p=7837"},"modified":"2019-07-14T04:01:38","modified_gmt":"2019-07-14T11:01:38","slug":"restore-service-access-rights","status":"publish","type":"post","link":"https:\/\/www.coretechnologies.com\/blog\/service-security-editor\/restore-service-access-rights\/","title":{"rendered":"Q&#038;A: How Do I Restore Access Rights to My Windows Service?"},"content":{"rendered":"<div align=\"center\"><img decoding=\"async\" src=\"\/blog\/images\/qa-laptop-access-denied.png\" title=\"Q&#038;A - Service Access Denied\" alt=\"Q&#038;A - Service Access Denied\" border=\"0\" ><\/div>\n<div class=\"blog-qa-question-box\">\n<img decoding=\"async\" src=\"\/images\/quotes-transparent-21x21.png\">&nbsp;&nbsp;I have installed <a href=\"\/products\/ServiceSecurityEditor\/\">Service Security Editor<\/a> and accidentally DENY one particular service for all users, including local administrator on my laptop.  Now I am not able to start the service although I have tried to open from Service Security Editor.<\/p>\n<p>Is there a way to grant the permission again in order to allow me to start the service again? I&#8217;m on Windows Server 2012 R2, if that matters.<\/p>\n<p align=\"right\">&mdash; Charles<\/p>\n<\/div>\n<p>Hi Charles, sorry to hear that!<\/p>\n<p>You won&#8217;t be able to access the service from any account or group where you applied the Deny permission. As Microsoft mentions in the confirmation window, the Deny directive is at the &#8220;top of the heap&#8221; and always takes precedence over Allow:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/windows-security-deny-warning.png\" class=\"zoomPopup\" title=\"Windows Security Deny Warning\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/windows-security-deny-warning.png\" title=\"Windows Security Deny Warning (click to enlarge)\" alt=\"Windows Security Deny Warning\" border=\"0\" ><\/a><\/div>\n<p>Here are a couple of ways to fix your problem: <\/p>\n<h2 class=\"blog-caption\">Solution #1: Restore your Windows Service permissions from a new Administrator account<\/h2>\n<p>Did you deny access to the Administrators group?<\/p>\n<p>If not, you can restore your permissions from a new administrator account in a few steps:<\/p>\n<ol>\n<li>\n<p>Create a new user account &mdash; best done from the Control Panel:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/create-new-windows-account.png\" class=\"zoomPopup\" title=\"Create a New Account\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/create-new-windows-account.png\" title=\"Create a New Account (click to enlarge)\" alt=\"Create a New Account\" border=\"0\" ><\/a><\/div>\n<\/li>\n<li>\n<p>Change the account type to Administrator:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/change-account-type-to-administrator.png\" class=\"zoomPopup\" title=\"Change Account Type to Administrator\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/change-account-type-to-administrator.png\" title=\"Change Account Type to Administrator (click to enlarge)\" alt=\"Change Account Type to Administrator\" border=\"0\" ><\/a><\/div>\n<\/li>\n<li>\n<p>Login as the new user.<\/p>\n<\/li>\n<li>\n<p>Start Service Security Editor and open your service. Select the account in the top panel, remove all the Deny entries and replace with Allow rights.<\/p>\n<p>For example:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/restore-service-rights.png\" class=\"zoomPopup\" title=\"Restore Service Rights\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/restore-service-rights.png\" title=\"Restore Service Rights (click to enlarge)\" alt=\"Restore Service Rights\" border=\"0\" ><\/a><\/div>\n<\/li>\n<\/ol>\n<p>After applying those changes, you should be able to access the service when you next log into your regular account. <\/p>\n<p>Don&#8217;t forget to delete the new administrator account you created for this purpose!<\/p>\n<h2 class=\"blog-caption\">Solution #2: Restore your Windows Service permissions from the SYSTEM account<\/h2>\n<p>The first solution will not work if you denied access to all administrators. No admin will be able to open the service.<\/p>\n<p>Fortunately the all-powerful <a href=\"https:\/\/support.microsoft.com\/en-sg\/help\/120929\/how-the-system-account-is-used-in-windows\" target=\"_blank\" rel=\"noopener noreferrer\">SYSTEM account<\/a> will still be able to manipulate the service. But since you can&#8217;t simply sign in as the SYSTEM user and update the service&#8217;s permissions, you must take a less than direct approach using our popular AlwaysUp application:<\/p>\n<ol>\n<li>\n<p><a href=\"\/products\/AlwaysUp\/Download.html\">Download<\/a> and <a href=\"\/products\/AlwaysUp\/Install.html\">install<\/a> AlwaysUp.<\/p>\n<p>Even though the software costs $49.99, you can use it for completely free for 30 days &mdash; more than enough time for you to restore the rights to your Windows Service.<\/p>\n<\/li>\n<li>\n<p>Setup the command prompt to run as the SYSTEM user in AlwaysUp. To do so:<\/p>\n<ol type=\"a\">\n<li>\n<p>Select <b>Application &gt; Add<\/b> to open the &#8220;Add Application&#8221; window.<\/p>\n<\/li>\n<li>\n<p>In the <b>Application<\/b> field, enter the full path to the Windows command prompt executable, <b>cmd.exe<\/b>. On Windows Server 2012 R2 (and almost all other versions of Windows), this is:<\/p>\n<blockquote><p><b>c:\\windows\\system32\\cmd.exe<\/b><\/p><\/blockquote>\n<div align=\"center\"><a href=\"\/blog\/images\/alwaysup-add-cmd.png\" class=\"zoomPopup\" title=\"Add CMD to AlwaysUp\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/alwaysup-add-cmd.png\" title=\"Add CMD to AlwaysUp (click to enlarge)\" alt=\"Add CMD to AlwaysUp\" border=\"0\" ><\/a><\/div>\n<\/li>\n<li>\n<p>Click the <b>Save<\/b> button to record your settings. An entry for Cmd should appear in the AlwaysUp window:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/alwaysup-command-prompt-windows-service-added.png\" class=\"zoomPopup\" title=\"Command Prompt Windows Service Added\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/alwaysup-command-prompt-windows-service-added.png\" title=\"Command Prompt Windows Service Added (click to enlarge)\" alt=\"Command Prompt Windows Service Added\" border=\"0\" ><\/a><\/div>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Select <b>Application &gt; Start &#8220;Cmd&#8221; in this session<\/b>. In a second or two, a black command prompt window will appear on your desktop. It will be running in the context of the SYSTEM user.<\/p>\n<\/li>\n<li>\n<p>From the command prompt window, type the full path to the Service Security Editor executable and hit enter. This will start a new instance of Service Security Editor on your desktop:<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/start-from-command-prompt.png\" class=\"zoomPopup\" title=\"Start Service Security Editor from Command Prompt\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/start-from-command-prompt.png\" title=\"Start Service Security Editor from Command Prompt (click to enlarge)\" alt=\"Start Service Security Editor from Command Prompt\" border=\"0\" ><\/a><\/div>\n<\/li>\n<li>\n<p>Open your service in Service Security Editor. Select the Administrators group in the top panel, remove all the Deny entries and add Allow rights.<\/p>\n<p>How about giving full control to all administrators?<\/p>\n<div align=\"center\"><a href=\"\/blog\/images\/restore-administrators-group-rights.png\" class=\"zoomPopup\" title=\"Restore Service Rights to Administrators\" target=\"_blank\" rel=\"noopener noreferrer\"><img decoding=\"async\" class=\"image-padding\" src=\"\/blog\/images\/restore-administrators-group-rights.png\" title=\"Restore Service Rights to Administrators (click to enlarge)\" alt=\"Restore Service Rights to Administrators\" border=\"0\" ><\/a><\/div>\n<\/li>\n<li>\n<p>Click the <b>OK<\/b> button to save the updated access rights.<\/p>\n<\/li>\n<li>\nAnd finally, now that your service is once again accessible, clean up:<\/p>\n<ol type=\"a\">\n<li>\n<p>Close Service Security Editor.<\/p>\n<\/li>\n<li>\n<p>Switch to AlwaysUp and select <b>Application &gt; Stop&#8221;Cmd&#8221;<\/b> to shut down the command prompt.<\/p>\n<\/li>\n<li>\n<p><a href=\"\/products\/AlwaysUp\/Uninstall.html\">Uninstall AlwaysUp<\/a>.<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<p style=\"margin-top:40px;\">\nHopefully one of these methods will get you back on your feet Charles. If not, please don&#8217;t hesitate to <a href=\"\/support\/\">get in touch<\/a> again. There may be another trick or two up our sleeves. \ud83d\ude42\n<\/p>\n<p>And please be safe!<\/p>\n<!-- relpost-thumb-wrapper --><div class=\"relpost-thumb-wrapper\"><!-- filter-class --><div class=\"relpost-thumb-container\"><style>.relpost-block-single-image, .relpost-post-image { margin-bottom: 10px; }<\/style><h3>You may also like...<\/h3><div style=\"clear: both\"><\/div><div style=\"clear: both\"><\/div><!-- relpost-block-container --><div class=\"relpost-block-container relpost-block-column-layout\" style=\"--relposth-columns: 3;--relposth-columns_t: 2; --relposth-columns_m: 2\"><a href=\"https:\/\/www.coretechnologies.com\/blog\/windows\/windows-server-2022\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Windows Server 2022: A Few Improvements, but No Changes to Windows Services\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/windows-server-2022-standard-150x150-1.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Windows Server 2022: A Few Improvements, but No Changes to Windows Services<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/restrict-cpus-feature\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"AlwaysUp Feature Spotlight: Restrict Your App To Specific CPUs\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/restrict-to-specific-cpus-150x150-1.webp\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">AlwaysUp Feature Spotlight: Restrict Your App To Specific CPUs<\/h2><\/div><\/div><\/a><a href=\"https:\/\/www.coretechnologies.com\/blog\/alwaysup\/turbocharge-windows-services\/\"class=\"relpost-block-single\" ><div class=\"relpost-custom-block-single\"><img decoding=\"async\" loading=\"lazy\" class=\"relpost-block-single-image\" alt=\"Turbocharge your Applications Running as Windows Services with AlwaysUp\"  src=\"https:\/\/www.coretechnologies.com\/blog\/wp-content\/uploads\/turbocharge-windows-service-thumbnail.png\" style=\"aspect-ratio:1\/1\" style=\"aspect-ratio:1\/1\"><\/img><div class=\"relpost-block-single-text\"  style=\"height: 75px;font-family: Arial;  font-size: 12px;  color: #333333;\"><h2 class=\"relpost_card_title\">Turbocharge your Applications Running as Windows Services with AlwaysUp<\/h2><\/div><\/div><\/a><\/div><!-- close relpost-block-container --><div style=\"clear: both\"><\/div><\/div><!-- close filter class --><\/div><!-- close relpost-thumb-wrapper -->","protected":false},"excerpt":{"rendered":"<p>&nbsp;&nbsp;I have installed Service Security Editor and accidentally DENY one particular service for all users, including local administrator on my laptop. Now I am not able to start the service although I have tried to open from Service Security Editor. &hellip; <a href=\"https:\/\/www.coretechnologies.com\/blog\/service-security-editor\/restore-service-access-rights\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":7853,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[26,127,148,192,195,196,197],"class_list":["post-7837","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-service-security-editor","tag-alwaysup-tag","tag-qa","tag-service-security-editor-2","tag-windows-server-2012","tag-windows-service-rights","tag-windows-services-2","tag-windows-system-account"],"_links":{"self":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/7837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=7837"}],"version-history":[{"count":0,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/7837\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media\/7853"}],"wp:attachment":[{"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=7837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=7837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.coretechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=7837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}