# Enter-PSSession
Handy for PowerShell remoting!

## Making a connection (while logged in as a domain user)
```
Enter-PSSession -ComputerName SERVER01
```
You'll probably get a big red scary blob of text telling you 777 reasons why the connection didn't complete.  The fix (probably) is to add that host to your trusted list...

### Adding hosts to trusted list
```
# This is how I used to do it:
winrm set winrm/config/client @{TrustedHosts="SERVER01"}

# This is how I did it when I had issues in March, 2026
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "SERVER01" -Force
```

## Making a connection (from a non-domain-joined machine)
```
$cred = Get-Credential
Enter-PSSession -ComputerName SERVER01 -Credential $cred
```

## Troubleshooting
Make sure WinRM is enabled on your local box:
```
Start-Service WinRM
```
