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
- Host: GitHub
- URL: https://github.com/tomashubelbauer/ps-remote
- Owner: TomasHubelbauer
- Created: 2020-01-03T21:21:27.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2022-04-14T21:10:25.000Z (almost 4 years ago)
- Last Synced: 2025-06-01T16:40:01.912Z (9 months ago)
- Topics: powershell
- Language: Markdown
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.