IT Guy
asked on
Office 365 PowerShell command to display all hidden email objects
Please provide me with an Office 365 PowerShell command or script that will display all items hidden from the email address list (such as mailboxes, contacts, shared items, resources, groups, etc.)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Vasil Michev (MVP),
I receive this error messages while running the Power Shell command you provided. I am successfully logged into Office 365 and have tried these commands on two different Office 365 domains.
Please let me know what needs to be done to fix this so I can successfully run this PowerShell command.
PS C:\Users\Administrator\Des ktop> Get-Recipient -Filter {HiddenFromAddressListsEna bled -eq $true}
Get-Recipient : The term 'Get-Recipient' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-Recipient -Filter {HiddenFromAddressListsEna bled -eq $true}
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-Recipient:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Des ktop>
I receive this error messages while running the Power Shell command you provided. I am successfully logged into Office 365 and have tried these commands on two different Office 365 domains.
Please let me know what needs to be done to fix this so I can successfully run this PowerShell command.
PS C:\Users\Administrator\Des
Get-Recipient : The term 'Get-Recipient' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-Recipient -Filter {HiddenFromAddressListsEna
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-Recipient:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Des
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
What are the best steps to take to verify that I am actually connected to Office 365 via PowerShell?
What PowerShell commands can I run to do this?
What PowerShell commands can I run to do this?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I receive these error messages while running the Power Shell commands you provided. I am successfully logged into Office 365 and have tried these commands on two different Office 365 domains.
Please let me know what needs to be done to fix this so I can successfully run these PowerShell commands.
PS C:\Users\Administrator\Des
} | ft name
Get-Mailbox : The term 'Get-Mailbox' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-Mailbox -ResultSize unlimited | where {$_.HiddenFromAddressLists
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-Mailbox:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Des
------
PS C:\Users\Administrator\Des
true} | ft name
Get-MailContact : The term 'Get-MailContact' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.
At line:1 char:1
+ Get-MailContact -ResultSize unlimited | where {$_.HiddenFromAddressLi ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-MailContact:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Users\Administrator\Des