Comments (8)
it works using the app password
from o365-investigationtooling.
I think app password makes it work , but this could do with being updated for MFA.
from o365-investigationtooling.
please look into this... MFA is crucial
from o365-investigationtooling.
This really should be updated to support MFA
from o365-investigationtooling.
Same
from o365-investigationtooling.
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.
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.
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)
- DumpDelegatesandForwardingRules doesn't have target of Get-InboxRule in output HOT 2
- Update EnableMailboxAuditing.ps1 HOT 1
- EnableMailboxAuditing.ps1 add SchedulingMailbox type HOT 4
- unapproved verbs & UseDatabaseQuotaDefaults
- inactiveInLastThreeMonthsUsers HOT 1
- WARNING: Proxy creation has been skipped for the following command:
- Script Times Out When Running Against 5000 Users HOT 1
- Set up all scripts to work from docker
- Legacy authentication turned off HOT 3
- Too many result than Azure AD Admin Center showed HOT 2
- DumpDelegatesandForwardingRules.ps1 trouble running on Exchange Online Powershell Module with MFA
- Are these being updated? HOT 3
- EnableMailboxAuditing.ps1 suggest HOT 1
- EnableMailboxAuditing.ps1 missing ? HOT 1
- How can I decrypt the action and condition fields HOT 2
- Broken link in documentation
- pulling a lot of active accounts HOT 3
- "The account does not have permission to impersonate the requested user."
- InactiveUsersLast90Days.ps1 - limit of 5000 audit log items
- InactiveUsersLast90Days.ps1 - UserLoginFailed events
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from o365-investigationtooling.