Powershell: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
Line 1: Line 1:
=Entering a powershell command prompt remotely=
=Entering a powershell command prompt remotely=
Configure one time only
Winrm quickconfig


  Set-Item WSMan:\localhost\Client\TrustedHosts –Value <ipAddress>
  Set-Item WSMan:\localhost\Client\TrustedHosts –Value <ipAddress>

Revision as of 21:39, 15 April 2018

Entering a powershell command prompt remotely

Configure one time only
Winrm quickconfig
Set-Item WSMan:\localhost\Client\TrustedHosts –Value <ipAddress>

Then for non joined

Enter-PSSession -ComputerName <IP> -Credential <Machine Name>\<username>

or for AD Joined

Could not find a way to do this so ended up creating a user and adding it to the local users and group using lusmgr.msc and under groups adding the user to Remote Management User