title: AWS Windows Powershell ECR Login
body: <p>I am new to AWS and Docker. I am trying to setup AWS ECR and docker and trying to retrieve ECR Login using windows powershell. I am trying to use the command -</p>
  
  <blockquote>
    <p>Invoke-Expression -Command (aws ecr get-login)
    which gives me the error<a href="https://i.stack.imgur.com/ZGT87.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZGT87.png" alt="enter image description here"></a></p>
  </blockquote>
  
  <p>My problem is it is trying to use the ccuser on its own. I don't think I have configured it to use this user. I have created a separate user with AmazonEC2ContainerRegistryFullAccess. How do I configure this as the user for AWS Powershell to execute the command?</p>