ExchangeOnline PowerShell Module
7 TopicsExchange Online error: Write-ErrorMessage : Object reference not set to an instance of an object.
I am unable to Modify ab Authentication Policy :Set-AuthenticationPolicy -Identity "Block Basic Auth" -AllowBasicAuthImap:$false I get the below error: Write-ErrorMessage : Object reference not set to an instance of an object. When apply the Authentication Policy to a user using Set-CASMailbox it does not change anything. Kindly help. Thank you.Solved2.4KViews0likes4CommentsPowershell ResultSize not working
Hello, I wrote a small script but for some reason “ResultSize” doesn’t work. “WARNING: There are more results available than currently displayed. If you want to display all results, increase the value for the ResultSize parameter. “ but this is already on “unlimited”Ialready tried withdigits butwon'tworks. #Connect-ExchangeOnline $DLList = Import-CSV "C:\temp\Liste_DL_UTF8.csv" #$DLList.Liste foreach($Line in $DLList) { #Write-Host $Line.Liste Get-DynamicDistributionGroupMember -ResultSize unlimited -Identity $Line.Liste | Select-Object DisplayName | Export-Csv -Path C:\Temp\DL_Listen_Members\$($Line.Liste)_Members.csv #Write-Host (Get-DynamicDistributionGroupMember -ResultSize unlimited -Identity $Line.Liste).DisplayName } Thanks for every help!Solved22KViews0likes2CommentsThe term 'New-informationbarrierPolicy' is not recognized as the name of a cmdlet, function
Hello guys, Does any one can run the "New-InformationBarrierPolicy" cmdlets successfully with EXO V2 module? I've login successful and granted permission with Information Barrier Processor but still cannot run it.. From the error message seems no such cmdlets...6.2KViews0likes18CommentsCannot connect to Exchange Online module via Runbook
That's very strange error that I came across a few times on my own workstation, but now I cannot get rid of it on Hybrid Worker machine. My runbook connects to Exchange Online to perform get-mailbox cmdlet, however at the connect-exchangeonline phase I'm getting the following error: "exception":"Couldnotfindfile'C:\\Windows\\TEMP\\a70a8826-0c1f-4902-b1bc-767587023327\\tmpEXO_rj4fdl4e.yzc.psd1'.(Couldnotfindfile'C:\\Windows\\TEMP\\a70a8826-0c3f-4902-b2bc-767587023327\\tmpEXO_rj4fdl4e.yzc.psd1'.)" I tried to uninstall, clean-up, restart, install previous version, nothing helps. Any ideas what could be the reason?Solved2.4KViews0likes3CommentsError 'Index was out of range. Must be non-negative and less than the size of the collection.'
I have version 2.0.6 of module ExchangeOnlineManagement installed and I am using WindowsPowerShell 5.1. I issue the following connect statement inside a script: Connect-ExchangeOnline -AppId <appid> -CertificateThumbprint <cert thumbprint> -Organization <organization> And get the following error: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index At HIDDEN\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.6\netFramework\ExchangeOnlineManagement.psm1:750 char:21 + throw $_.Exception.InnerException; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : OperationStopped: (:) [], ArgumentOutOfRangeException + FullyQualifiedErrorId : Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index When the script finishes running I issue the exact same connect statement and it executes fine. Anyone have any suggestions to get the connect statement to work the first time it's issued?Solved23KViews0likes10CommentsRegarding the different output formats of Powershell Versions 5 and 7.
I use Exchange Online commands through Powershell. I have noticed that Powershell versions 5 and 7 work differently. And I would like to achieve an output format like Powershell version 5, but without using the "|Format-table" notation. Is it possible to rewrite the default values? Thank you. Powershell version information in use: PowerShell 5:5.1.22000.653 and PowerShell 7: 7.2.5Solved1KViews0likes3CommentsPlanned Release of EXO V2 module version 2.0.6-Preview5
We are using"Connect-IPPSSession"command to connect with Compliance PowerShell with input parameter as AppId because we are using App Only Authentication . But it seems that this support is provided as part EXO V2 module version 2.0.6-Preview5 which is not released yet. When we can expect the release of this module so that we can use this functionality in our PowerShell script. Thanks & Regards, Sayali M. Baheti700Views0likes0Comments