Forum Discussion
Bversini
Feb 16, 2021Copper Contributor
Disable NameChecking on Connect-ExchangeOnline
Hi !
I have migrated my script on the new ExoV2 powershell.
After each load of Connect-ExchangeOnline he load the namechecking and i loose 2sec... (green progress bar)
Connect-ExchangeOnline -Credential $msolcred -ShowBanner:$false -CommandName Get-Mailbox, Get-MailboxPermission, Get-RecipientPermission
In old version:
#$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $msolcred -Authentication Basic -AllowRedirection
#Import-PSSession $Session -AllowClobber -DisableNameChecking -CommandName Get-Mailbox, Get-MailboxPermission, Get-RecipientPermission
How to disableNameChecking with Connect-ExchangeOnline for speed up script and not loose this 2sec ?
Thanks in advance !
No RepliesBe the first to reply