Adding permissions for NT AUTHORITY\NETWORKSERVICE
<p>I want to attach a .mdf file to my SQL Server 2008 instance.</p>

<p>I understand that to do this I need to give folder permissions to the account that is running SQL Server</p>

<p>From the answer to <a href="https://stackoverflow.com/questions/7324407/get-service-account-details-of-the-sql-agent-service">this question</a> I found that account is </p>

<pre><code>NT AUTHORITY\NETWORKSERVICE
</code></pre>

<p>by running </p>

<pre><code>wmic service where "name Like 'MSSQL%'" get Name , StartName
</code></pre>

<p>however when I try to grant permissions to this account I get an error</p>

<pre><code>The following object is not from a domain listed in the Select Location dialog box, and is therefore not valid:
</code></pre>

<p>I am on Windows7</p>

<p>and I am selecting the name of my pc as the domain.</p>