Monday, July 15, 2013

PowerShell - Notes

Enabling PowerShell Remoting:
Enable-PSRemoting -Force

Workgroup Setup:
Set-Item wsman:\localhost\client\trustedhosts *

On both computers, restart the WinRM service so your new settings will take effect:
Restart-Service WinRM

Verify/Set the settings for the execution policy:
Get-ExecutionPolicy
Set-ExecutionPolicy Unrestricted

Starting a Remote Session:
Enter-PSSession -ComputerName "Computer name" -Credential "User name"

No comments:

Post a Comment