An open API service indexing awesome lists of open source software.

https://github.com/tomashubelbauer/ps-remote

Connecting to a network computer using PowerShell
https://github.com/tomashubelbauer/ps-remote

powershell

Last synced: 5 months ago
JSON representation

Connecting to a network computer using PowerShell

Awesome Lists containing this project

README

          

# PowerShell Remote

https://www.faqforge.com/windows/create-powershell-session-remote-computer

1. On remote: `Enable-PSRemoting -Force` as admin
2. On both: `winrm set winrm/config/client '@{TrustedHosts="*"}`
3. On both? `Restart-Service WinRM`
4. On local: `Test-WsMan NUC`

```powershell
$credentials = Get-Credential
$session = New-PSSession -Credential $credentials -ComputerName NUC
Enter-PSSession $session
# Commands…
Exit-PSSession
Remove-PSSession $session
```

## To-Do

### Configure this on the personal computer and the home server

### Look into using specific computer names in `TrustedHosts`

To lock things down a bit just in case.