Step By Step: Remotely connect to another computer using PowerShell

preview_player
Показать описание
## Enable PowerShell Remoting in the target machine:

Enable-PSRemoting -Force

## Collect target servers "CREDENTIALS" in a variable

$UserCredential = Get-Credential

## Session objects are stored in a variable

$se = New-PSSession -ComputerName SRV-AD01 -Credential $UserCredential

## Establish powershell session using the variable

Enter-PSSession $se
Рекомендации по теме
visit shbcf.ru