Quantcast
Channel: Exchange Server 2013 - Mail Flow and Secure Messaging forum
Viewing all articles
Browse latest Browse all 3660

Providing the send as access rights for a user from powershell

$
0
0

Hi,

I have requirement of providing grant right permissions for a mail box account using power shell script. Below was the code I am using

$LiveCred = Get-Credential
 $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://xxxxxxxx/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session

Add-RecipientPermission "domainname\xxxxx" -AccessRights SendAs -Trustee "domainname\yyyyy"

I am getting below error

Add-RecipientPermission : The term 'Add-RecipientPermission' is not recognized as the name of a cmdlet, function, script file, or
operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Thanks in advance,

Lakshman


Viewing all articles
Browse latest Browse all 3660

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>