kennysarmy Posted April 24, 2019 Posted April 24, 2019 Does anyone know if this is possible? Office 365 - delete content of a shared folder using powershell. I've run : Get-MailboxFolderStatistics -Identity EMAIL ADDRESS | Select FolderPath,ItemsInFolder and it returns the content of the shared folder. However when I run : Search-Mailbox -Identity EMAIL ADDRESS -DeleteContent I get the following: Search-Mailbox : The term 'Search-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 + Search-Mailbox -Identity "EMAIL ADDRESS" -Delete ... + ~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (Search-Mailbox:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now