Microsoft Edge Experimente o Microsoft Edge um navegador rápido e seguro que é projetado para o Windows 10 Introdução

Ir para conteúdo principal
Microsoft
Suporte da Microsoft
  • Office
  • Windows
  • Xbox
  • Suporte
      • Aplicações Windows
      • OneDrive
      • Outlook
      • Skype
      • OneNote
      • PCs & tablets
      • Acessórios para PC
      • Xbox e jogos
      • Jogos
      • Jogos Windows
      • Filmes e programas de TV
      • Microsoft Azure
      • Microsoft Dynamics 365
      • Microsoft 365
      • Plataforma de nuvem
      • Soluções empresariais
      • Plataforma de dados
      • .NET
      • Visual Studio
      • Desenvolva aplicativos para o Windows
      • Documentos
      • Segurança e downloads gratuitos
      • Educação
    • Ver todos
    0
    Entrar
    Suporte da Microsoft

    How to connect to your managed environment by using Windows Remote PowerShell in Office 365 dedicated

    Conteúdo fornecido pela Microsoft

    Conteúdo fornecido pela Microsoft

    Aplica-se a: Microsoft Business Productivity Online DedicatedMicrosoft Business Productivity Online Suite Federal


    Symptoms


    You cannot connect to your managed environment by using Windows Remote PowerShell in Microsoft Office 365 dedicated.

    Cause


    This issue occurs if one or more of the following conditions are true:
    • Prerequisites are not met.
    • You use the incorrect Windows Remote PowerShell cmdlet.
    • Windows Remote PowerShell is configured incorrectly in your environment.

    Resolution


    To resolve this issue, use one of the following methods, as appropriate for your situation.

    When you connect to a remote Microsoft Exchange 2010 server, you should specify a username and password as credentials to authenticate the session. To do this, follow these steps.

    Note These credentials should be the current domain\username and password. However, they do not have to be the credentials that you use to log on to your computer.
    1. Declare a variable that is named $cred, and then set the value for the variable to the results of the Get-Credential prompt (your username and password). To do this, follow these steps:
      1. Type the following cmdlet in Windows Remote PowerShell, and then press Enter:
        $cred = Get-Credential 
      2. When the Get-Credential cmdlet prompts you for credentials, type the credentials that you use to authenticate the remote Exchange 2010 server. The credentials that you type are stored in the $cred variable.
    2. Declare a variable that is named $session, and then set the value for the variable to a new Windows PowerShell remote session. To do this, run the following cmdlet in Windows Remote PowerShell:
      $session = New-PSSession -Authentication basic -Credential $cred -ConnectionUri https://mail.contoso.com/PowerShell/ -ConfigurationName Microsoft.Exchange 
      The following table describes the parameters for the new session and their values.

      ParameterValueDescription
      -AuthenticationbasicThis sets the authentication mode in the new session to basic.
      -Credential$credThe new session calls the $cred variable that is created in step 1. That variable contains the credentials that you entered previously.
      -ConnectionUrihttps://mail.contoso.com/PowerShell/This provides the fully qualified domain name (FQDN) for the Remote PowerShell connection by using HTTPS. You should replace mail.contoso.com with your company’s Outlook Web App (OWA) domain.
      -ConfigurationNameMicrosoft.ExchangeThis configures the new Windows PowerShell.
    3. Import the remote session that is stored in the $session variable. To do this, run the following cmdlet in Windows PowerShell:
      Import-PSSession $session 
     You can also combine three steps into one script. To do this, run the following cmdlet in Windows PowerShell::

    Import-PSSession (New-PSSession -Authentication basic -Credential (Get-Credential) -ConnectionUri https://mail.contoso.com/powershell -ConfigurationName Microsoft.Exchange) 


    Última atualização: 15 de jan de 2016
    • Email
    • Imprimir
    Obrigado! Seus comentários nos ajudarão a melhorar a experiência de suporte.

    Novidades

    • Xbox One X
    • Aplicativos do Windows 10
    • Aplicativos do Office

    Store e Suporte

    • Perfil da conta
    • Centro de Download
    • Vendas e suporte
    • Devoluções
    • Acompanhamento de pedidos
    • Suporte

    Educação

    • Microsoft na educação
    • Office para estudantes
    • Office 365 para escolas
    • Ofertas para estudantes e educadores
    • Microsoft Azure na Educação

    Corporativo

    • Microsoft Azure
    • Corporativo
    • Plataforma de dados
    • Recursos para parceiros da Microsoft
    • Produção e Recursos
    • Serviços Financeiros

    Desenvolvedor

    • Microsoft Visual Studio
    • Centro de Desenvolvimento do Windows
    • Rede de Desenvolvedores
    • TechNet
    • Microsoft Virtual Academy
    • Programa de desenvolvedores da Microsoft
    • Channel 9
    • Centro de Desenvolvimento do Office

    Empresa

    • Carreiras
    • Sobre a Microsoft
    • Notícias da empresa
    • Privacidade na Microsoft
    • Investidores
    • Diversidade e inclusão
    • Segurança
    Português (Brasil)
    • Termos de uso
    • Privacidade e cookies
    • Marcas
    • © Microsoft 2018
    Este site em outros países/regiões
    Algérie - Français
    Argentina - Español
    Australia - English
    Belgique - Français
    België - Nederlands
    Bolivia - Español
    Bosna i Hercegovina - Hrvatski
    Brasil - Português
    Canada - English
    Canada - Français
    Chile - Español
    Colombia - Español
    Costa Rica - Español
    Crna Gora - Srpski
    Danmark - Dansk
    Deutschland - Deutsch
    Dominican Republic - Español
    Ecuador - Español
    Eesti - Eesti
    El Salvador - Español
    España - Español
    Estados Unidos - Español
    France - Français
    Guatemala - Español
    Hong Kong SAR - English
    Hrvatska - Hrvatski
    India - English
    Indonesia (Bahasa) - Bahasa
    Ireland - English
    Italia - Italiano
    Latvija - Latviešu
    Lietuva - Lietuvių
    Luxembourg - Français
    Magyarország - Magyar
    Malaysia - English
    Maroc - Français
    México - Español
    Nederland - Nederlands
    New Zealand - English
    Norge - Bokmål
    Panamá - Español
    Paraguay - Español
    Perú - Español
    Philippines - English
    Polska - Polski
    Portugal - Português
    Puerto Rico - Español
    România - Română
    Schweiz - Deutsch
    Singapore - English
    Slovenija - Slovenščina
    Slovensko - Slovenčina
    South Africa - English
    Srbija - Srpski
    Suisse - Français
    Suomi - Suomi
    Sverige - Svenska
    Tunisie - Français
    Türkiye - Türkçe
    United Kingdom - English
    United States - English
    Uruguay - Español
    Venezuela - Español
    Việt Nam - Tiếng việt
    Ísland - Íslenska
    Österreich - Deutsch
    Česká Republika - Čeština
    Ελλάδα - Ελληνικά
    България - Български
    Казахстан - Русский
    Россия - Русский
    Україна - Українська
    ישראל - עברית
    الإمارات العربية المتحدة - العربية
    المملكة العربية السعودية - العربية
    مصر - العربية
    भारत - हिंदी
    ไทย - ไทย
    中国 - 简体中文
    台灣 - 繁體中文
    日本 - 日本語
    香港特別行政區 - 繁體中文
    대한민국 - 한국어