Run PowerShell as Admin
$machineName = "MachineName"
Enable-PSRemoting -force
Set-Item -Path WSMan:\localhost\Client\TrustedHosts -Value $machineName
Enter-PSSession -ComputerName $machineName -Credential (Get-Credential)Run PowerShell as Admin
$machineName = "MachineName"
Enable-PSRemoting -force
Set-Item -Path WSMan:\localhost\Client\TrustedHosts -Value $machineName
Enter-PSSession -ComputerName $machineName -Credential (Get-Credential)