Powershell

From bibbleWiki
Revision as of 21:24, 4 April 2018 by Iwiseman (talk | contribs)
Jump to navigation Jump to search

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>