Get-ADPermission fails
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
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.
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
- 5 Forums
- 714 Topics
- 3,630 Posts
- 1 Online
- 253 Members