PowerShell Remoting

Enable

Enable-PSRemoting
Set-WSManQuickConfig
winrm quickconfig

Disable

Disable-PSRemoting

*Note* You will need to disable some configurations yourself.

 

Create

New-PSSession -ComputerName localhost -Credential(Get-Credential)

Enter

Enter-PSSession examplecomputername

 

 

Remove

Remove-PSSession examplecomputername

Exit

Exit-PSSession

 

 

Get

Get-PSSession -ComputerName examplecomputername