To export information to one file (csv), I know that I shouldn't refer to multiple DBs. Because that action crashes memory.
(Get-azureaduser, get-mailbox, get-mailboxstatistics etc.)
So, pelase teach me...
Please tell me how to improve.....
powershell version is the latest version.
Basically, how to write a script is as follows.
Invoke-Command -ScriptBlock {get-azureaduser |% {get- ........ $data += [pscustomobject]........... ]}}
Is there a best way to write or a service that should be stopped?
My environment can't install IDE, so I only use PowerShell ISE...........