Powershell: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
=Entering a powershell command prompt remotely= | =Entering a powershell command prompt remotely= | ||
Set-Item WSMan:\localhost\Client\TrustedHosts –Value <ipAddress> | |||
Then for non joined | |||
Enter-PSSession -ComputerName <IP> -Credential <Machine Name>\<username> | Enter-PSSession -ComputerName <IP> -Credential <Machine Name>\<username> |
Revision as of 21:24, 4 April 2018
Entering a powershell command prompt remotely
Set-Item WSMan:\localhost\Client\TrustedHosts –Value <ipAddress>
Then for non joined
Enter-PSSession -ComputerName <IP> -Credential <Machine Name>\<username>
or for AD Joined
Enter-PSSession -ComputerName <IP> -Credential <AzureAD\<username>