Giter Site home page Giter Site logo

MFA about o365-investigationtooling HOT 8 OPEN

officedev avatar officedev commented on September 26, 2024 2
MFA

from o365-investigationtooling.

Comments (8)

leibishr avatar leibishr commented on September 26, 2024 4

it works using the app password

from o365-investigationtooling.

TechsUK avatar TechsUK commented on September 26, 2024 2

I think app password makes it work , but this could do with being updated for MFA.

from o365-investigationtooling.

jasc76 avatar jasc76 commented on September 26, 2024 2

please look into this... MFA is crucial

from o365-investigationtooling.

drogfild avatar drogfild commented on September 26, 2024 1

This really should be updated to support MFA

from o365-investigationtooling.

Eu2 avatar Eu2 commented on September 26, 2024

Same

from o365-investigationtooling.

PsychoData avatar PsychoData commented on September 26, 2024

I have been trying to look at rebuilding the modules to support MFA, unfortunately the best way to make MFA Work right now is to use the Exchange Online Hyrbid module.

In a browser supporting ClickOnce Applications, you can visit the MS shortlink http://aka.ms/exopspreview to install it . (It isn't still in preview, but I can't get someone at MS to make me a version that doesn't have preview in the URL)
Or, if you don't like following redirected shortlinks from random dudes on GitHub, head to https://outlook.office365.com/ecp -> Hybrid on bottom Left -> Configure Exchange Online Powershell Module and install it that way

Then, once you have that ClickOnce Application installed, basically anytime it says

$ExoSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $userCredential -Authentication Basic -AllowRedirection
Import-PSSession $ExoSession

Replace that with opening the Microsoft Exchange Online Powershell Module from your start menu.

I have this, as a in-progress method to load the module into any Powershell session, once that module from the link above is installed, though there are some commands that I haven't finished determining the purpose of or how to best replicate yet, so your-mileage-may-vary (Mostly related to reconnection or sessions, it looks like )

function Start-ExoPSSessionCmdlets ( $UserPrincipalName){
    Import-Module $((Get-ChildItem -Path $($env:LOCALAPPDATA+"\Apps\2.0\") -Filter Microsoft.Exchange.Management.ExoPowershellModule.dll -Recurse ).FullName|?{$_ -notmatch "_none_"}| sort LastWriteTime -Descending | select -First 1)

    $EXOSession = New-ExoPSSession -UserPrincipalName ("$UserPrincipalName")
    Import-PSSession $EXOSession -DisableNameChecking -AllowClobber 
}
Start-ExoPSSessionCmdlets

from o365-investigationtooling.

PsychoData avatar PsychoData commented on September 26, 2024

Speaking of rebuilding it to support MFA -

Would it be an acceptable solution to try to connect through the normal way ($ExoSession = New-PSSession ....; Import-PSSession $ExoSession ) and if that fails then try to load the Powershell Module
I listed above?

Or, we could look to see if the Exo Powershell Module is already installed, and use that if it is, and if not, try the $ExoSession = New-PSSession ....; Import-PSSession $ExoSession way, and suggest to install the module if it needs to?

from o365-investigationtooling.

djhayes1994 avatar djhayes1994 commented on September 26, 2024

I was able to get this to work with MFA using the following for line 41 to 45:

#First, let's get us a cred!
Connect-EXOPSSession

#This connects to Azure Active Directory
Connect-MsolService

from o365-investigationtooling.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.