{"id":1069,"date":"2013-08-01T22:42:56","date_gmt":"2013-08-01T20:42:56","guid":{"rendered":"http:\/\/michlstechblog.info\/blog\/?p=1069"},"modified":"2013-08-08T08:49:52","modified_gmt":"2013-08-08T06:49:52","slug":"windows-how-to-determine-the-sid-of-a-user-or-group","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/windows-how-to-determine-the-sid-of-a-user-or-group\/","title":{"rendered":"Windows: How to determine the SID of a User or Group"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_1069 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_1069')){$('.twoclick_social_bookmarks_post_1069').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Windows%3A%20How%20to%20determine%20the%20SID%20of%20a%20User%20or%20Group\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0ASometimes%20you%20need%20the%20SID%20of%20a%20user%20or%20group.%20For%20example%20if%20you%20want%20to%20set%20permissions%20with%20icalcs%20in%20multilanguage%20environments.%20icacls%20needs%20as%20input%20the%20group%20name%20or%20the%20SID.%20If%20you%20want%20to%20set%20permission%20for%20the%20builtin%20groups%20you%20have%20to%20specify%20the%20group%20name%20in%20the%20current%20language%20of%20the%20operating%20system%2C%20i.e.%20%22Users%22%20for%20en-US%20and%20%22Benutzer%22%20for%20de-DE.%20The%20better%20choice%20is%20%20...\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/windows-how-to-determine-the-sid-of-a-user-or-group\\\/\",\"post_id\":1069,\"post_title_referrer_track\":\"Windows%3A+How+to+determine+the+SID+of+a+User+or+Group\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>Sometimes you need the SID of a user or group. For example if you want to set permissions with icalcs in multilanguage environments. icacls needs as input the group name or the SID. If you want to set permission for the builtin groups you have to specify the group name in the current language of the operating system, i.e. &#8220;Users&#8221; for en-US and &#8220;Benutzer&#8221; for de-DE. The better choice is the SID, the SIDs for builtin groups are always the same.<br \/>\n<!--more--><\/p>\n<p>To get the SID of a Windows user or group use the PsGetSid command. The command is part of the sysinternalssuite.<\/p>\n<p>The sysinternalssuite is for free and you can download it at<a title=\"Sysinternalssuite\" href=\"http:\/\/technet.microsoft.com\/en-us\/sysinternals\/bb842062.aspx\" target=\"_blank\"> Microsoft<\/a>. No installation is necessary simply extract the zip file.<\/p>\n<p>Example:<\/p>\n<p>Get the SID of the local Users group<br \/>\n<code><br \/>\n[C:\\]psgetsid Users<\/code><\/p>\n<p><code>PsGetSid v1.44 - Translates SIDs to names and vice versa<br \/>\nCopyright (C) 1999-2008 Mark Russinovich<br \/>\nSysinternals - www.sysinternals.com<\/code><\/p>\n<p><code>SID for BUILTIN\\Users:<br \/>\nS-1-5-32-545<\/code><\/p>\n<p>to set the permissions with icacls by using the SID add an asterisk as prefix to tell icacls this is a SID.<br \/>\n<code><br \/>\nicacls d:\\ \/grant *S-1-5-32-545:(OI)(CI)(M,W,RX)<\/code><\/p>\n<p>That&#8217;s it<\/p>\n<p>Michael<\/p>\n<p>[C:\\]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, Sometimes you need the SID of a user or group. For example if you want to set permissions with icalcs in multilanguage environments. icacls needs as input the group name or the SID. If you want to set permission for the builtin groups you have to specify the group name in the current language &hellip; <a href=\"https:\/\/michlstechblog.info\/blog\/windows-how-to-determine-the-sid-of-a-user-or-group\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Windows: How to determine the SID of a User or Group<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,5],"tags":[73,265,266,264,20],"class_list":["post-1069","post","type-post","status-publish","format-standard","hentry","category-windows","category-windowsknowhow","tag-get","tag-icacls","tag-psgetsid","tag-sid","tag-windows-2"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/1069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=1069"}],"version-history":[{"count":8,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/1069\/revisions"}],"predecessor-version":[{"id":1085,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/1069\/revisions\/1085"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=1069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=1069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=1069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}