PowerShell
Enable-PSRemoting -Force
Set-Item wsman:\localhost\client\trustedhosts *
winrm s winrm/config/client '@{TrustedHosts="10.19.83.10"}'
Restart-Service WinRM
Get-Service WinRM
Test-WsMan 10.19.83.10
Invoke-Command -ComputerName 10.19.83.10 -ScriptBlock { Get-ChildItem C:\ } -credential academia
Enter-PSSession -ComputerName 10.19.83.10 -Credential academia
References
- Automating with Jenkins & PowerShell on Windows - Part 1
- Automating with Jenkins & PowerShell on Windows - Part 2
- Enable & Use Remote Commands in Windows PowerShell
- PowerShell Commands on Remote Computers
- Installing PowerShell on macOS
- PowerShell remoting over SSH
- Running Remote Commands
- Jenkins PowerShell Plugin
- PowerShell