+ Post New Thread
Results 1 to 5 of 5
Cloud Services Thread, PowerShell Connection for Exchnage Online in Technical; Hello, When I try and connect to PowerShell (As an Admin) for Exchange commands in school I get the following:- ...
  1. #1

    Join Date
    Aug 2005
    Location
    Shropshire
    Posts
    292
    Thank Post
    17
    Thanked 11 Times in 8 Posts
    Rep Power
    21

    PowerShell Connection for Exchnage Online

    Hello,

    When I try and connect to PowerShell (As an Admin) for Exchange commands in school I get the following:-

    New-PSSession : [ps.outlook.com] Connecting to remote server ps.outlook.com
    failed with the following error message : WinRM cannot complete the operation.
    Verify that the specified computer name is valid, that the computer is
    accessible over the network, and that a firewall exception for the WinRM
    service is enabled and allows access from this computer. By default, the WinRM
    firewall exception for public profiles limits access to remote computers
    within the same local subnet. For more information, see the
    about_Remote_Troubleshooting Help topic.
    At line:1 char:12
    + $Session = New-PSSession -ConfigurationName Microsoft.Exchange
    -ConnectionUri ht ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
    + CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:Re
    moteRunspace) [New-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : WinRMOperationTimeout,PSSessionOpenFailed
    PS C:\Windows\system32> Import-PSSession $Session
    Import-PSSession : Cannot validate argument on parameter 'Session'. The
    argument is null. Supply a non-null argument and try the command again.
    At line:1 char:18
    + Import-PSSession $Session
    + ~~~~~~~~
    + CategoryInfo : InvalidData: ( [Import-PSSession], ParameterBi
    ndingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.Power
    Shell.Commands.ImportPSSessionCommand


    If I try connecting up at home, things work fine, so I'm guessing its some kind of block on the schools filtering or firewall.

    Does anybody know what might be needed to be put in place to allow this to work? Is there any kind of Network Connectivity test tool for PowerShell like there is for Office 365?

    Thanks

    Matt

  2. #2
    Marshall_IT's Avatar
    Join Date
    Jul 2011
    Location
    Leeds
    Posts
    518
    Thank Post
    77
    Thanked 65 Times in 56 Posts
    Blog Entries
    1
    Rep Power
    19
    Is windows firewall enabled?

    Even if not, find the WinRM firewall rules on hte pyublic profile, by the looks of hte message and set them to allow the traffic past the local subnet.

  3. #3

    Join Date
    Aug 2005
    Location
    Shropshire
    Posts
    292
    Thank Post
    17
    Thanked 11 Times in 8 Posts
    Rep Power
    21
    Hi,

    The windows firewall is not enabled on these computers, but I've been into the settings to check the public profile and made changes, but I still get the same error so I'm guessing it's something on the LEA's level of filtering / firewall that's blocking the connection. Is there anything else I can do to narrow this down, or find out exactly where abouts it's stopping?

    Thanks,

    Matt

  4. #4
    the_dude's Avatar
    Join Date
    Nov 2012
    Location
    SoCal
    Posts
    85
    Thank Post
    0
    Thanked 17 Times in 11 Posts
    Rep Power
    6
    That happened with my tenat a couple weeks ago. I had to contact MS and get them to fix it. They fixed it the same day as I recall. It's something on their end....

  5. #5

    Join Date
    Aug 2005
    Location
    Shropshire
    Posts
    292
    Thank Post
    17
    Thanked 11 Times in 8 Posts
    Rep Power
    21
    Quote Originally Posted by the_dude View Post
    That happened with my tenat a couple weeks ago. I had to contact MS and get them to fix it. They fixed it the same day as I recall. It's something on their end....
    Thanks... But if I try running the commands at home without going out thr any LEA filters/firewalls I can connect no problem, just not in school!

SHARE:
+ Post New Thread

Similar Threads

  1. [Gentoo] setting up bridged connection for virtualbox
    By RabbieBurns in forum *nix
    Replies: 6
    Last Post: 6th July 2009, 06:19 AM
  2. Cambridge Connect software for OCR online testing
    By sidewinder in forum Educational Software
    Replies: 7
    Last Post: 22nd April 2009, 09:35 AM
  3. Replies: 2
    Last Post: 15th October 2008, 09:03 PM
  4. A must for Eve-Online PDA owners
    By Pottsey in forum Gaming
    Replies: 0
    Last Post: 4th July 2007, 05:42 PM
  5. Looking for good online or self study MCSE course
    By ajbritton in forum Courses and Training
    Replies: 8
    Last Post: 23rd May 2006, 05:44 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •