MFA (Multi-Facter-Auth) 인증 설정 계정의 Exchange Online Remote Powershell 접속 방법

최근 보안이 강화되면서, Office365에서도 MFA(Multi-Facter-Auth) 기능 활성화를 강력히 권장하고 있다. 최근 전문적으로 Office365 계정 탈취를 목적으로 Fishing eMail을 보내기도 합니다.

하지만, MFA(Multi-Facter-Auth) 적용하는 순간, 갑자기 기존에 잘되던 Exchange Online으로 Remote Powershell 접근이 안되고 아래와 같은 에러 메세지가 발생하는걸 확인할 수 있습니다.

New-PSSession : [outlook.office365.com] 다음 오류 때문에 원격 서버 outlook.office365.com에 연결하지 못했습니다. [ClientAccessServer=HK2PR02CA0220,BackEndServer=sixpr06mb0699.apcprd06.prod.outlook.com,Requ estId=5f462d35-b19a-4927-bd9e-a3e2cea16b40,TimeStamp=11/14/2017 6:47:52 AM] Access Denied 자세한 내용은 about_Remote_Troubleshooting 도움말 항목을 참조하십시오. 위치 줄:1 문자:12 + $Session = New-PSSession -ConfigurationName Microsoft.Exchange -Conne … + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OpenError: (System.Manageme….RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException + FullyQualifiedErrorId : -2144108477,PSSessionOpenFailed

중요한건 중간에 붉은색으로 표기한 내용 입니다. MFA(Multi-Facter-Auth) 적용 전에 잘 접속되던 Remote Powershell console 항목이 갑자기 위와 같이 Access Denied 메세지를 내보내면서 접속이 안되면 살짝 멘붕이 올거 같습니다.

아래 방법으로 MFA(Multi-Facter-Auth) 적용된 계정 접속을 위한 Remote Powershell 환경을 구성해셔야지만 기존처럼 정상적으로 접근이 가능 합니다. (제발 MS야 !! 이런거 바뀔때는 공지라도 좀 해주고 해라 ㅜ_ㅜ)



How to install Exchange online remote powershell for MFA

  1. Open Internet Explorer browser then connect https://portal.office.com/
  2. Click Admin in the app lancher
  3. Go to Admin center in the left side menu and Click Exchange
  4. Now Exchange admin center is opened ,then click Hyprid and click Configure buttom in below of Exchange Online Powershell module supports

Screenshot_ 2017-11-14_5.46.45

  1. After clicking Configure button it’s automatically launch application using web

Screenshot_ 2017-11-14_5.46.51

Note:
if you are using other browsers than internet explorer, you will get “Application can’t be started” error message

Screenshot_ 2017-11-14_5.46.56

  1. The Application install window will open, then click Install

Screenshot_ 2017-11-14_5.47.00

  1. Now Exchange online powershell module with MFA is installed in your machine.

How to connect Exchange online Powershell with MFA

After the installation, Microsoft Exchange Online Remote PowerShell Module shortcut will created in desktop
1. Open the Microsoft Exchange Online Remote PowerShell Module.
Screenshot_ 2017-11-14_5.47.06
2. Use following command to connect
Screenshot_ 2017-11-14_5.47.21
3. in the sign-in window that opens, enter your password, and then click Sign in.
Screenshot_ 2017-11-14_5.47.27
4. In the call verification window that opens, Answer the verification call in your phone
Screenshot_ 2017-11-14_5.47.32
5. Now Multi Factor Authentication is verified, and you can able to access Exchange powershell.

Share

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

Post comment