PowerShell

From Chorke Wiki
Revision as of 04:36, 21 November 2020 by Shahed (talk | contribs) (→‎References)
Jump to navigation Jump to search
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