Remoting to a 2012 Core server

Welcome Forums General PowerShell Q&A Remoting to a 2012 Core server

This topic contains 2 replies, has 2 voices, and was last updated by

 
Participant
2 years, 3 months ago.

  • Author
    Posts
  • #51722

    Participant
    Points: 0
    Rank: Member

    What is the most easy way to access cli on a fresh standalone 2012 Core server (with no roles og features installed) remotely in a similiar way we access a linux host? Using Debian I would do a 'apt-get install ssh' and use ssh to acces the hosts cli.

  • #51743

    Participant
    Points: 0
    Rank: Member

    It sounds like you should install WinRM. This allows for PowerShell Remoting sessions

    • #51748

      Participant
      Points: 0
      Rank: Member

      I was dealing with this in a lab, with only two machines one with w10 and one with 2012Core. To do what I wanted, I used WinRM as suggested. WinRM was installed by default, so here is what I did:

      Installed w10
      Installed server2012Core

      I configured a static address on the client, using powershell I also configured a static address on the 2012Core (using New-NetIPAddress)

      , on the client I put the 2012Core hostname and ipaddress into c:\windows\system32\drivers\etc\hosts.
      ,on the client I then ran 'set-item wsman:\localhost\client\trustedhosts 2012Corehostname'
      ..and was able to get a remote shell using 'Enter-PSSession -computername -credential administrator'

The topic ‘Remoting to a 2012 Core server’ is closed to new replies.