Get-ADPermission fa…
 
Notifications
Clear all

Get-ADPermission fails

2 Posts
2 Users
0 Reactions
12.8 K Views
0
Topic starter

I know this was just posted, but comments are closed, and what I don’t see is WHERE the DC=mydomain,DC=com and First Org actually go in the syntax? Could we get an example please? Thanks, I know this seems silly.

My Error is as follows:

The operation couldn’t be performed because object ” couldn’t be found on ‘HST-DC01.hst.itphosting.net’.
+ CategoryInfo : InvalidData: (:) [Get-ADPermission], ManagementObjectNotFoundException
+ FullyQualifiedErrorId : [Server=HST-EXDB01,RequestId=3c4dddb2-7dc6-4791-a914-1c701ab88401,TimeStamp=11/12/2015 5
:08:42 PM] [FailureCategory=Cmdlet-ManagementObjectNotFoundException] 232A3FC2,Microsoft.Exchange.Management.Recip
ientTasks.GetADPermission
+ PSComputerName : hst-exdb01.hst.itphosting.net

2 Answers
0

This is the line:
$BaseOABContainer=?CN=Offline Address Lists,CN=Address Lists Container,CN=First Organization,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=Fabrikam,DC=com?

You need to replace:
CN=First Organization

and

DC=Fabrikam,DC=com

with values from your own environment. If you own environment domain is hosting.local then the last part will be:
DC=hosting,DC=local

The first part you specify when you install Exchange. If you don’t remember it you need to open ADSIEDIT, Configuration, and go down to the Exchange services and you will see your “Organization” name listed there.

0
Topic starter

Excellent. I did get further this time, however, the following revised command I entered:

Get-ADPermission $BaseOABContainer=CN=Offline Address Lists,CN=Address Lists Container,CN=ITP Hosting,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=hst,DC=itphosting,DC=com -User ?NT AuthorityAuthenticated Users? | where {$_.extendedrights -match ?ms-exch-download-oab?} | Remove-ADPermission

Give me the following error:

A positional parameter cannot be found that accepts argument ‘Address’.
+ CategoryInfo : InvalidArgument: (:) [Get-ADPermission], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Get-ADPermission
+ PSComputerName : hst-exdb01.hst.itphosting.net

Not sure what its problem with “address” is, as the formatting looks correct.
Thanks again

Share: