Announcement

Collapse
No announcement yet.

Issues enabling remote Powershell (split from thread about GPMC)

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Issues enabling remote Powershell (split from thread about GPMC)

    Originally posted by [COLOR="Red"]Thread split from [thread=47864]"Windows Server 2008/2008 R2"-forum[/thread][/COLOR]

    Originally posted by Avi View Post
    hi all,

    I am trying to set TrustedHost on all computers in my domain so I can run and use PowerShell remotely. – Can’t wait.

    <...cut...>

    Thank you for your time
    Avi
    Just out of curiosity - why configure the Trusted Host on domain clients.

    When setting up remoting in PowerShell 2.0 in a domain you can just run the Enable-PSRemoting cmdlet on each machine, or use Group Policy* to configure remoting and the WSMAN service. In situations where you want a secure remote session between non-domain members you most likely will need to configure a TrustedHost on the receiving computers.
    (from: mcpmag.com article "Do You Trust Me?" | By Jeffery Hicks 03/30/2010)


    *Have a look here:
    Enable and configure Windows PowerShell Remoting using Group Policy


    \Rems

    hi,

    I did the testing today and still no luck.
    I have used the Get-PSSession -computername ??????

    and I got the error:
    "Get-PSSession: Remote Session is not available for ??????.

    Now I am not sure if this is a powershell error - so I need to post this in the powershell forum or it is a windows setup and I have done something wrong.

    In addition to the group policies I have also run the Enable-PSRemoting with the option A on all the computers which I am testing.
    It didn't work also when I tried from one server to another
    Can anyone help me with what I need to do to make sure that I am able to use Powershell in my domain? server 2008R2 and laptops XP3

    Thanks for your help
    Avi
    Last edited by Rems; 22nd July 2010, 10:44.

  • #2
    Re: don't see the group policy on the ou

    Originally posted by Avi View Post
    so I need to post this in the powershell forum or it is a windows setup and I have done something wrong.
    I will ask one of the moderators of this forum to split the thread. Continue the PowerShell Remoting question here.

    Have you tried:
    Enter-PSSession -computername xxxxxx
    or,
    New-PSSession -computername xxxxxx, yyyyyy, zzzzzz

    And, once you are done, clean up with:
    Get-PSSession | Remove-PSSession


    \Rems

    This posting is provided "AS IS" with no warranties, and confers no rights.

    __________________

    ** Remember to give credit where credit's due **
    and leave Reputation Points for meaningful posts

    Comment


    • #3
      Re: don't see the group policy on the ou

      Split from Post #9 onwards
      Tom Jones
      MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
      PhD, MSc, FIAP, MIITT
      IT Trainer / Consultant
      Ossian Ltd
      Scotland

      ** Remember to give credit where credit is due and leave reputation points where appropriate **

      Comment


      • #4
        Re: Issues enabling remote Powershell (split from thread about GPMC)

        Originally posted by Ossian View Post
        Split from Post #9 onwards
        Thanks Tom

        This posting is provided "AS IS" with no warranties, and confers no rights.

        __________________

        ** Remember to give credit where credit's due **
        and leave Reputation Points for meaningful posts

        Comment


        • #5
          Re: Issues enabling remote Powershell (split from thread about GPMC)

          Avi, here's a paper you might find interesting "Administrator's Guide to Windows PowerShell Remoting"
          (you'll get the ebook for free at PowerShell.com in return for your email address).


          \Rems

          This posting is provided "AS IS" with no warranties, and confers no rights.

          __________________

          ** Remember to give credit where credit's due **
          and leave Reputation Points for meaningful posts

          Comment


          • #6
            Re: Issues enabling remote Powershell (split from thread about GPMC)

            Hi Rem,

            Again thank you for your help.
            I have downloaded the pdf and looking forward to read it.

            Thank you
            Avi

            Comment


            • #7
              Re: Issues enabling remote Powershell (split from thread about GPMC)

              hi all,

              I now read and implemented the Remoting of powershell according to the document "Administrator's Guide to Windows PowerShell Remoting" -- thanks REM for pinting me to the right direction.

              I am still having problem remoting to one of my server.
              I have two domain controllers one have exchagne on the other one not.

              I am able to do remoting to the exchagne server.
              This is the error that I receive when trying remoting via the Invoke-Command:
              "[servername] Connecting to remote server failed with the following error message : The client cannot connect to the destination specified in the request. Verify that the service on the destination is running and is accepting requests. Consult the logs and DRM service, run the following command on the destination to analyze and configure the WinRM service: "winrm quickconfig". for more information, see the about_remote_troubleshooting help topic.
              + Category : OpenError: ( [], PSRemotingTransportException
              + FullyQualifiedErrorId : PSSessionStateBroke"


              The winRM service is running on the server, firewall is disabled, there is nothing that I can see in the event log.

              Can anyone help me to setup the remoting on this server?

              Thanks
              Avi

              Comment


              • #8
                Re: Issues enabling remote Powershell (split from thread about GPMC)

                On the destination computer Run: winrm quickconfig
                and post the message presented.


                \Rems

                This posting is provided "AS IS" with no warranties, and confers no rights.

                __________________

                ** Remember to give credit where credit's due **
                and leave Reputation Points for meaningful posts

                Comment


                • #9
                  Re: Issues enabling remote Powershell (split from thread about GPMC)

                  Hi Rems,

                  Again thank you for taking the time to help.

                  This is the message I get when I run winrm quickconfig

                  WinRM already is set up to receive requests on this machine
                  WinRM already is set up for remote management on this machine


                  Thanks
                  Avi

                  Comment

                  Working...
                  X