Hi Vasil,
I got the following error:
PS C:\temp> .\GroupMembership
PowerShell credential request
Enter your credentials.
User: xxxxxxxxxxxxxxxxxxxxx
Password for user joao.casqueiro@cascais.onmicrosoft.com: ****************
WARNING: The names of some imported commands from the module 'tmp_ezdrmpwi.sjb' include unapproved verbs that might make them less discoverable. To find the commands with unapproved verbs, run the Import-Module command again with the Verbose parameter. For a list of approved verbs, type Get-Verb.
Get-Recipient: The operation couldn't be performed because object 'gosho' couldn't be found on 'VI1P193A001DC06.EURP193A001.PROD.OUTLOOK.COM'.
Write-Error: C:\temp\GroupMembership.ps1:124
Line |
124 | Get-DGMembershipInventory @PSBoundParameters -OutVariable global:varD …
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| No users of the specifyied types were found, specify different criteria.
PS C:\temp>
Can you help?
Thanks/Brgds
joao