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