PowerShell: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
Line 14: Line 14:
* [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://plugins.jenkins.io/powershell/ Jenkins PowerShell Plugin]
* [https://plugins.jenkins.io/powershell/ Jenkins PowerShell Plugin]
* [https://docs.microsoft.com/en-us/powershell/ PowerShell]

Revision as of 17:39, 20 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

References