locked
mailbox Access via Script......... RRS feed

  • Question

  • Hello Team

    Iam Anitcipating one the script which would be very usefull for my project. We do getting like mostly for mailbox access from one user mailbox to another user mailbox

    Like User1 is asking for User 2 mailbox access.

    Ecevrday we are doing via EMC. or some time via  EMS  ( Add- mailbox Permission )

    is that any simple Script is available, like it should ask the Traget mailbox name (user2) or email Address and then it should ask Source Mailbox who is asking (User1)

    Once it is executed User1 should have the full mailbox Access for User2

    Example like

    ENTER THE TARGET MAILBOX : User2@aaa.com

    ENTER THE SOURCE MAILBOX : User1@aaa.com

    Mailbox Acceess Completed

    Please help to reduce the time while doing the mailbox access via EMC or EMS

     

     

     

     

     

     

     


    ramakrishnan
    Monday, August 29, 2011 11:11 AM

Answers

  • http://gallery.technet.microsoft.com/scriptcenter/4aeafe7a-6865-46af-aa86-77bd1557c57c

     

    do you need something like this. please go through it


    --------Abhi----------------- Exchange Specialist------------- ------------------ Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
    • Proposed as answer by Abhinav Aneja Tuesday, August 30, 2011 2:56 AM
    • Marked as answer by Sophia Xu Tuesday, August 30, 2011 5:27 AM
    Monday, August 29, 2011 3:28 PM
  • Hi Abhi

    Thanks for the link

    Now am am able to manage in single line commad

     

    Add-MailboxPermission

    Save in a notepad file and save and .PS1 file

    and ran the command .\filename.ps1

    it will ask like below

     supply the Values for the Following Paramater

    Identity : User1

    AccessRights[0]: FullAccess

    AccessRights[1]:

    User: User2

     

    and the above command sucessfully Executed.

    Thanks for your links and update

     


    ramakrishnan
    • Marked as answer by Sophia Xu Tuesday, August 30, 2011 5:27 AM
    Monday, August 29, 2011 4:29 PM

All replies

  • Add-MailboxPermission "mailbox displayname/Ad Account" -user "user need access displayname/Ad Account" -AccessRights Fullaccess
    --------Abhi----------------- Exchange Specialist------------- ------------------ Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
    • Proposed as answer by Abhinav Aneja Monday, August 29, 2011 12:24 PM
    • Unproposed as answer by Abhinav Aneja Monday, August 29, 2011 12:25 PM
    Monday, August 29, 2011 12:24 PM
  • Add-MailboxPermission "mailbox displayname/Ad Account" -user "user need access displayname/Ad Account" -AccessRights Fullaccess
    --------Abhi----------------- Exchange Specialist------------- ------------------ Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
    you can copy and paste users as per requirement and run it once. it will do it for all
    --------Abhi----------------- Exchange Specialist------------- ------------------ Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
    • Proposed as answer by Abhinav Aneja Tuesday, August 30, 2011 2:56 AM
    Monday, August 29, 2011 12:26 PM
  • Hello Abhi

    Thanks for the info.

    I have already this command with me . I Need a like PS script (.PS1 to run the above command like below"

     

    By Normally if you type the command ADD-MailboxPermission then Enter

    It will ask to supply the Values for the Following Paramater

    Identity : User1

    AccessRights[0]: FullAccess

    AccessRights[1]:

    User: User2

     

    it will execute succesfully

     

    All i need to put the above command in .PS1 file

    i try to put the ADD-MailboxPermisson Command in Notepad and Sane as "Filename.PS1" is not running.....

    It is saying filename.PS1 is not recognized as cmdlet, Function, Operable Program, or a script file . Verify the term and try again

     

     

     

     


    ramakrishnan
    Monday, August 29, 2011 3:13 PM
  • http://gallery.technet.microsoft.com/scriptcenter/4aeafe7a-6865-46af-aa86-77bd1557c57c

     

    do you need something like this. please go through it


    --------Abhi----------------- Exchange Specialist------------- ------------------ Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
    • Proposed as answer by Abhinav Aneja Tuesday, August 30, 2011 2:56 AM
    • Marked as answer by Sophia Xu Tuesday, August 30, 2011 5:27 AM
    Monday, August 29, 2011 3:28 PM
  • Hi Abhi

    Thanks for the link

    Now am am able to manage in single line commad

     

    Add-MailboxPermission

    Save in a notepad file and save and .PS1 file

    and ran the command .\filename.ps1

    it will ask like below

     supply the Values for the Following Paramater

    Identity : User1

    AccessRights[0]: FullAccess

    AccessRights[1]:

    User: User2

     

    and the above command sucessfully Executed.

    Thanks for your links and update

     


    ramakrishnan
    • Marked as answer by Sophia Xu Tuesday, August 30, 2011 5:27 AM
    Monday, August 29, 2011 4:29 PM
  • Hi Abhi

    Thanks for the link

    Now am am able to manage in single line commad

     

    Add-MailboxPermission

    Save in a notepad file and save and .PS1 file

    and ran the command .\filename.ps1

    it will ask like below

     supply the Values for the Following Paramater

    Identity : User1

    AccessRights[0]: FullAccess

    AccessRights[1]:

    User: User2

     

    and the above command sucessfully Executed.

    Thanks for your links and update

     


    ramakrishnan
    Plesae mark as answer to close the thread

    --------Abhi----------------- Exchange Specialist------------- ------------------ Please remember to click “Mark as Answer” on the post that helps you. This can be beneficial to other community members reading the thread.
    Tuesday, August 30, 2011 2:56 AM