title: Error on creating Managed Service Account with PowerShell
body: <p>I'm trying to create Managed Service Accounts for using with SQL Server' services in AD DS on Windows Server 2012 R2. I use the following PowerShell command:</p>
  
  <pre><code>Import-Module ActiveDirectory
  New-ADServiceAccount -Name "SQLDBEngine" -DNSHostName "&lt;hostname with AD integrated DNS&gt;" -Enabled $true
  </code></pre>
  
  <p>But receive the following error message:</p>
  
  <pre><code>Key does not exist
  + CategoryInfo          : NotSpecified: (CN=SQLDBEngine,...HMS-BI,DC=LOCAL:String) [New-ADServiceAccount], ADException
  + FullyQualifiedErrorId : ActiveDirectoryServer:-2146893811,Microsoft.ActiveDirectory.Management.Commands.NewADServiceAccount
  </code></pre>
  
  <p>Looks like I did everything correct but still unable create managed account. Error message seems not so informative. Any ideas how to debug or fix the issue?</p>