Comments (3)
This sounds more like a holistic issue with the exchange online module.
@stuartcl @bkoeller Do either of you have a way to report this internally microsoft?
from o365-investigationtooling.
I don't think it has anything to do with a module. It's just how these commandlets work. Probably best to just write the script in a way that works in the current environment. Anyway.. just mentioning this because microsoft's secure score tool had an item that suggests making this change in the environment and it's self links to this script.
from o365-investigationtooling.
this is what worked for us, thanks to beanxyz:
$userCredential = Get-Credential
$ExoSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $userCredential -Authentication Basic -AllowRedirection
Import-PSSession $ExoSession
$users=get-mailbox | select name, distinguishedname ;
Foreach($user in $users) { set-mailbox $user.distinguishedname -auditEnabled $true}
$user=Get-Mailbox -ResultSize Unlimited -Filter {RecipientTypeDetails -eq "UserMailbox" -or RecipientTypeDetails -eq "SharedMailbox" -or RecipientTypeDetails -eq "RoomMailbox" -or RecipientTypeDetails -eq "DiscoveryMailbox"} | select name, distinguishedname ;
Foreach($user in $users) { Set-Mailbox $user.distinguishedname -AuditEnabled $true -AuditLogAgeLimit 180 -AuditAdmin Update, MoveToDeletedItems, SoftDelete, HardDelete, SendAs, SendOnBehalf, Create, UpdateFolderPermission -AuditDelegate Update, SoftDelete, HardDelete, SendAs, Create, UpdateFolderPermissions, MoveToDeletedItems, SendOnBehalf -AuditOwner UpdateFolderPermission, MailboxLogin, Create, SoftDelete, HardDelete, Update, MoveToDeletedItems }
Get-Mailbox -ResultSize Unlimited | Select Name, AuditEnabled, AuditLogAgeLimit | Out-Gridview
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.