Powershell

From bibbleWiki
Jump to navigation Jump to search

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