PowerShell: Difference between revisions
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
* [https://hodgkins.io/automating-with-jenkins-and-powershell-on-windows-part-1 Automating with Jenkins & PowerShell on Windows - Part 1] | * [https://hodgkins.io/automating-with-jenkins-and-powershell-on-windows-part-1 Automating with Jenkins & PowerShell on Windows - Part 1] | ||
* [https://hodgkins.io/automating-with-jenkins-and-powershell-on-windows-part-2 Automating with Jenkins & PowerShell on Windows - Part 2] | * [https://hodgkins.io/automating-with-jenkins-and-powershell-on-windows-part-2 Automating with Jenkins & PowerShell on Windows - Part 2] | ||
* [https://www.howtogeek.com/117192/how-to-run-powershell-commands-on-remote-computers/ PowerShell Commands on Remote Computers] | |||
* [https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-7.1 Installing PowerShell on macOS] | * [https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-core-on-macos?view=powershell-7.1 Installing PowerShell on macOS] | ||
* [https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/ssh-remoting-in-powershell-core?view=powershell-7.1 PowerShell remoting over SSH] | * [https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/ssh-remoting-in-powershell-core?view=powershell-7.1 PowerShell remoting over SSH] |
Revision as of 04:36, 21 November 2020
Enable-PSRemoting -Force
Set-Item wsman:\localhost\client\trustedhosts *
Restart-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