Problem with Get-Mailbox -organizationalunit

get-mailbox -organizationalunit "OU=Staff,DC=CONTOSO,DC=INT" -resultsize unlimited -Filter "alias -notlike '8*'" 

Easy enough right?

PS C:WINDOWSsystem32> get-mailbox -organizationalunit "OU=Staff,DC=CONTOSO,DC=INT" Couldn't find organizational unit "CONTOSO.INT/Staff". Make sure you have typed the name correctly. + CategoryInfo : NotSpecified: (:) [], ManagementObjectNotFoundException + FullyQualifiedErrorId : [Server=SN4PR0401MB3629,RequestId=9de69248-42f4-4313-8668-ad3c40122775,TimeStamp=2/11/2019 12:39:27 PM] [FailureCate gory=Cmdlet-ManagementObjectNotFoundException] 3B8B9645 + PSComputerName : 

Any Idea why it can’t find it? I’ve tried just running it on -organizationalunit “DC=CONTOSO,DC=INT” as well and it still comes up with the same error.

submitted by /u/nickborowitz
[link] [comments]

Leave a Reply