Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1891
  • Last Modified:

Exchange 2007 Powershell command

Hello,
I have one issue and hoping you can help me out.
Currently Exchange 2007 SP1 is in domain A
Users are in Domain B.  Domain A and B have trust relationship.
User 1 needs to have permission to user 2's calendar.
User 2 grants permission to user 1 in domain A\useraccount format.
The problem is all users (including user 1) log on to Domain B not A. Therefore user 1 can't get into user 2's calendar.  I can only grant permission in Domain B\useraccount format via EMS in Exchange 2007 with fullaccess.  However, user 1 only allowed to have access to calendar.  I can't find any EMS command specific for calendar.  Because using EMS, I can specify domain name.  I have used PFDAVAdmin, but there is no way that I can specify domain B.  Does anybody know the EMS command?
Thanks
0
bluesky001
Asked:
bluesky001
1 Solution
 
AnuroopsunddCommented:
Add-MailboxFolderPermission –Identity user1@contoso.com:\Calendar -AccessRight ReadItems -User user2@contoso.com
0
 
bluesky001Author Commented:
Thanks for your speedy response. But Add-MailboxFolderPermission is not available in exchange 2007. It said is not recognized as a cmdlet.  Thanks
0
 
DipakCommented:
Make sure you run the command from  Exchange management shell and go thourgh below MS article where you are specify the DomainController.

http://technet.microsoft.com/en-us/library/dd298062.aspx
0
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
bluesky001Author Commented:
Thanks, again we have exchange 2007 SP1.  Above command won't work in Exchange 2007, it only works in Exchange 2010 and linke to article you sent it applies to exchange 2010 sp2.
0
 
Jarred PowerCommented:
Not sure if you can do this from the EMS.  The only command that is close, is the Set-MailboxCalendarSettings, but as far as I can tell it's for use with resource/room booking management  http://technet.microsoft.com/en-us/library/aa996340(v=exchg.80).aspx

You might be stuck going though outlook to set the permissions - The only other command that I can see is the full permission for mailbox access.  (might be why they added this in 2010 to the EMS)
0
 
bluesky001Author Commented:
I already granted user fullaccess via add-mailboxpermission (for testing purposes) with specify domainanme\account it works but that is for full access.  I guess I migth have to open a case with Microsoft to see if they can help before we upgrade to exchange 2010.
Thanks
0
 
GusGallowsCommented:
You should be able to set readpermissions using add-mailboxpermission.

add-mailboxpermission -identity "User2 full name" -User "domainB\User1" -AccessRights ReadPermission

Open in new window


Try that. You may have to also add the -domaincontroller parameter and specify a domaincontroller for the domainB domain.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now