title: Access Denied when using Power Shell Remoting with local account on Server Core 2019
body: <p>I want to remotely trigger some commands with power shell on a Windows Server Core 2019.</p>
  
  <p>I am using the following to enter the remote Session:</p>
  
  <pre><code>$Username   = "x.x.x.x\Administrator"
  $PasswordSS = ConvertTo-SecureString 'The-Password' -AsPlainText -Force
  $Cred       = New-Object System.management.Automation.PSCredential $Username,$PasswordSS
  Enter-PSSession -ComputerName 'x.x.x.x' -Credential $cred
  </code></pre>
  
  <p>The connection then fails with the following message:</p>
  
  <blockquote>
    <p>Enter-PSSession : Connecting to remote server x.x.x.x failed with the
    following error message : Access is denied. For more  information, see
    the about_Remote_Troubleshooting Help topic. At line:4 char:2
    +  Enter-PSSession -ComputerName 'x.x.x.x' -Credential $cred
    +  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (x.x.x.x:String) [Enter-PSSession], PSRemotingTransportException
        + FullyQualifiedErrorId : CreateRemoteRunspaceFailed</p>
  </blockquote>
  
  <p>The remote computer is on the local network and I can ping it.
  The Administrator account is a local account on the remote computer.
  The remote ip is on the trusted host list on the client.
  PSRemoting was enabled on the remote computer.</p>
  
  <p>What am I missing? Help would be appreciated.</p>