[Solved] Secure the Offline Address Book – Failed
Hi,
I have problems to run this powershell cmd. When i run this and offcourse have changed to my domain
$BaseOABContainer=?CN=Offline Address Lists,CN=Address Lists Container,CN=XXXXXXX,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=XXXXXX,DC=XX? its accepted.
But when I run this command
Get-ADPermission $BaseOABContainer -User ?NT Authority\Authenticated Users? | where {$_.extendedrights -match ?ms-exch-download-oab?} | Remove-ADPermission
I get error message:
The operation couldn’t be performed because object ‘\’ couldn’t be found on ‘win-jgh2tdo5cn5.unikweb.dk’.
? ? + CategoryInfo ? ? ? ? ?: InvalidData: (:) [Get-ADPermission], ManagementObjectNotFoundException
? ? + FullyQualifiedErrorId : [Server=WIN-JGH2TDO5CN5,RequestId=f88d2796-2191-4497-b325-6f52a2a469cd,TimeStamp=06-01-2
? ?017 19:08:40] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] CD10F44,Microsoft.Exchange.Management.Rec
? ipientTasks.GetADPermission
? ? + PSComputerName ? ? ? ?: win-jgh2tdo5cn5.unikweb.dk
Please can somebody help with this.?
Best regards
Zlatan
?
You need to modify that command to match your environment. The domain is different and also where it says First Organization may be different depending on what you put in the installer when you first installed exchange in your domain
Hi Jacob,
uhh this is long time ago i had set my first orginazation name, can you please tell where can I find this info in exchange ??
regards
Zlatan
Hi found it.?
Thanks for help now it works.?
I run this command and found a first organisation name.?get-OrganizationConfig | fl Identity
Regards
Zlatan
- 5 Forums
- 714 Topics
- 3,630 Posts
- 0 Online
- 254 Members