title: Got "Access is denied" when I tried to rename the computer
body: <pre><code>Rename-Computer -NewName "newname" -DomainCredential CWQWTQ1J\Administrator
  </code></pre>
  
  <p>CWQWTQ1J is computer name and "Administrator" is the username. I am trying to change the name of the local computer. When I run this cmdlet it throws me an error i.e Access is denied. Is there anything I am missing? It will be grateful if someone helps me. <a href="https://i.stack.imgur.com/ke7nS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ke7nS.png" alt="enter image description here"></a></p>