ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Accessing and enabling Powershell Remoting in a workgroup environment

    IT Discussion
    enable-psremoting psremoting powershell powershell remoting windows server windows
    3
    3
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RomoR
      Romo
      last edited by Romo

      All steps must be executed on powershell with administrator permissions and ran on target computers as well as connection initiator computers.


      Enabling PS Remoting

      Enable-PSRemoting -Force 
      

      Since this a workgroup setup, we need to configure the TrustedHosts settings on the computers in order to establish proper trusts.

      // if we trust the local lan completely
      Set-Item wsman:\localhost\client\trustedhosts *
      
      // Enabling access to specific hosts via hostname or ip address just pass a comma separated list of hosts 
      Set-Item wsman:\localhost\client\trustedhosts 'hostname1, hostname2 , ipaddress1'
      

      Restart the WinRM server to make changes take effect

      Restart-Service WinRM
      

      Accessing a remote PS Session

      Enter-PSSession -ComputerName  yourTargetHost -Credential yourUser
      

      0_1498584002691_ps-session-credentials.png

      After inserting your credentials the session should be ready! 😃
      0_1498584078409_loggedin-psremote-session.png

      1 Reply Last reply Reply Quote 5
      • dafyreD
        dafyre
        last edited by

        Nice find!

        1 Reply Last reply Reply Quote 0
        • black3dynamiteB
          black3dynamite
          last edited by

          In case you have a mix of private and public network profiles use this command.

          Enable-PSRemoting -SkipNetworkProfileCheck - Force

          SkipNetworkProfileCheck ignores any public network profiles so you can enable remote powershell successfully.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post