Add-ADPermission : Cannot bind argument to parameter ‘Identity’ because it is null get-e

Help I keep getting: Add-ADPermission : Cannot bind argument to parameter ‘Identity’ because it is null get-exchangeserver.DistinguishedName

Don’t worry kids, just realx. I encountered this when installing Project Server 2010 into my Farm. When trying to run the ps command to enable Exchange Task Sync:

Add-ADPermission -Identity (get-exchangeserver).DistinguishedName -User (Get-User -Identity <AppPoolAccount> | select-object).identity -extendedRights ms-Exch-EPI-Impersonation

I get errors similar to the one above.

This is because we have 5 servers in the Exchange environment. So do this. This is only for Exchange 2010. Pffft, who uses old software anyway, just kidding.. It worked fine for us and we have 4 CA servers with a mix of 2007/2010

$CAS = get-exchangeserver | where { $_.Name -match "<Specific Server Name" }
$CAS = get-exchangeserver | where { $_.ServerRole -match "ClientAccess" }
$User = "<domain>\<user>"
$CAS | foreach-object {Add-ADPermission -Identity $_.DistinguishedName -User (Get-User -Identity $User | select-object).identity -extendedRights ms-Exch-EPI-Impersonation}

I assume you have some basic PS skills, so select from the first 2 lines the one that fits your environment, if you want to run this only for 1 server use line 1, for all CA servers use line 2, simple isn’t it.

Define the user name. Run the last line and voila, awesome task syncing almost done.

Adrian

0 views0 comments

Recent Posts

See All

SharePoint 2010 and Adobe PDF

SharePoint does not do crawl PDFs out of the box.. here is how to get it to do it. Download and install Adobe’s 64-bit PDF iFilter*1 http://www.adobe.com/support/downloads/detail.jsp?ftpID=4025 Downlo