<p>There are many reasons why you might want to find the <a href="https://www.lifewire.com/what-is-an-sid-number-2626005" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="1">security identifier</a> (SID) for a particular user&#39;s account in Windows, but in our corner of the world, the common reason for doing so is to determine which <a href="https://www.lifewire.com/what-is-a-registry-key-2625999" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="2">key</a> under <a href="https://www.lifewire.com/hkey-users-2625903" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="3">HKEY_USERS</a> in the <a href="https://www.lifewire.com/windows-registry-2625992" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="4">Windows Registry</a> to look for user-specific registry data for.</p><p>Regardless of the reason for your need, matching SIDs to user names is really easy thanks to the wmic command, a <a href="https://www.lifewire.com/what-is-a-command-2625828" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="5">command</a> available from the <a href="https://www.lifewire.com/command-prompt-2625840" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="6">Command Prompt</a> in most versions of Windows.</p><p><strong>Note:</strong> See <em>How to Find a User&#39;s SID in the Registry</em> further down the page for instructions on matching a username to an SID via information in the Windows Registry, an alternative method to using WMIC. The wmic command didn&#39;t exist before <a href="https://www.lifewire.com/windows-xp-2626354" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="7">Windows XP</a>, so you&#39;ll <em>have</em> to use the registry method in those older versions of Windows.</p><p>Follow these easy steps to display a table of user names and their corresponding SIDs:</p><h3>How to Find a User&#39;s SID With WMIC</h3><p>It&#39;ll probably only take a minute, maybe less, to find a user&#39;s SID in Windows via WMIC:</p><ol><li><a data-inlink="Fv3WplNWHtwl8nO9y9TqAQ&#61;&#61;" href="https://www.lifewire.com/how-to-open-command-prompt-2618089" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="8">Open Command Prompt</a>. In <a href="https://www.lifewire.com/windows-10-2626217" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="9">Windows 10</a> and <a href="https://www.lifewire.com/windows-8-2626235" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="10">Windows 8</a>, if you&#39;re using a <a href="https://www.lifewire.com/what-is-a-keyboard-2618153" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="11">keyboard</a> and <a href="https://www.lifewire.com/what-is-a-mouse-2618156" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="12">mouse</a>, the fastest way is through the <a href="https://www.lifewire.com/what-is-the-power-user-menu-2625968" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="13">Power User Menu</a>, accessible with the <strong>WIN&#43;X </strong>shortcut.<br/> </li><li>Once Command Prompt is open, type the following command exactly as shown here, including spaces or lack thereof: <pre> <code><strong>wmic useraccount get name,sid</strong></code> </pre> ...and then press <strong>Enter</strong>.<br/><br/><strong>Tip: </strong>If you know the username and would like to grab only that one user&#39;s SID, enter this command but replace <em>USER</em> with the username: <pre> <code><strong>wmic useraccount where name&#61;&#34;USER&#34; get sid</strong></code></pre> </li><li>You should see a table, similar to the following, displayed in the Command Prompt window: <pre> <code>Name SID Administrator S-1-5-21-1180699209-877415012-3182924384-500 Guest S-1-5-21-1180699209-877415012-3182924384-501 HomeGroupUser$ S-1-5-21-1180699209-877415012-3182924384-1002 Tim S-1-5-21-1180699209-877415012-3182924384-1004 UpdatusUser S-1-5-21-1180699209-877415012-3182924384-1007</code> </pre> This is a list of each user account in Windows, listed by username, followed by the account&#39;s corresponding SID.<br/> </li><li>Now that you&#39;re confident that a particular user name corresponds to a particular SID, you can make whatever changes you need to in the registry or do whatever else you needed this information for.</li></ol><p><strong>Tip: </strong>If you happen to have a case where you need to find the user name but all you have is the security identifier, you can &#34;reverse&#34; the command like this (just replace this SID with the one in question):</p><pre> <code><strong>wmic useraccount where sid&#61;&#34;S-1-5-21-1180699209-877415012-3182924384-1004&#34; get name</strong></code></pre><p>...to get a result like this:</p><pre> Name Tim</pre><h3>How to Find a User&#39;s SID in the Registry</h3><p>You can also determine a user&#39;s SID by looking through the <em>ProfileImagePath</em> <a href="https://www.lifewire.com/what-is-a-registry-value-2626042" data-component="link" data-source="inlineLink" data-type="internalLink" data-ordinal="14">values</a> in each S-1-5-21 prefixed SID listed under the <em>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList</em> key.</p><p>The <em>ProfileImagePath</em> value within each SID-named registry key lists the profile directory, which includes the username.</p><p>For example, the <em>ProfileImagePath</em> value under the <em>S-1-5-21-1180699209-877415012-3182924384-1004</em> key on my computer is <em>C:\Users\Tim</em>, so I know that the SID for the user &#34;Tim&#34; is &#34;S-1-5-21-1180699209-877415012-3182924384-1004&#34;.</p><p><strong>Note:</strong> This method of matching users to SIDs will only show those users who are logged in or have logged in and switched users. To continue to use the registry method for determining other user&#39;s SIDs, you&#39;ll need to log in as each user on the system and repeat these steps. This is a big drawback; assuming you&#39;re able, you&#39;re much better off using the wmic command method above.</p>