Exchange the PowerShell management contacts & Distribution Groups & resource mailboxes

Source: Internet
Author: User

Manage Contacts

To create a contact, use the following syntax:

New-mailcontact-alias Rjones '

-name "Rob Jones"

-externalemailaddress [email protected] '

-organizationalunit Sales

A mailbox-enabled user can use the following syntax:

New-mailuser-name ' John Davis '

-alias Jdavis '

-userprincipalname [email protected] '

-firstname John '

-lastname Davis '

-password (convertto-securestring-asplaintext [email protected]-force) '

-resetpasswordonnextlogon $false '

-externalemailaddress [email protected]

similar to mailboxes, contacts and mailbox-enabled users have many AD properties can be set, such as title,company,department and so on. To set these properties, we can be the set-* command to specify the properties. For example, to update a contact's properties, you can use the set-contact command with the following syntax:

Set-contact-identity Rjones '

-title ' Sales contractor '

-company Fabrikam '

-department Sales

To modify a mailbox-enabled user, you can use the following command:

Set-user-identity Jdavis '

-title ' Sales contractor '

-company Fabrikam '

-department Sales

more commands can be used to use the Help system ~~

Manage Distribution Groups

The following describes how to create a distribution group and how to add members to a distribution group.

The steps are as follows:

1. To create a distribution group, use the following command:

New-distributiongroup–name Sales

2. When the distribution group is created, you need to add members to the distribution group, using the following command:

Get-mailbox–organizationalunit Sales |

Add-distributiongroupmember–identity Sales

3. We can also create dynamic distribution groups with the following syntax:

New-dynamicdistributiongroup-name Accounting '

-alias Accounting '

-includedrecipients mailboxusers,mailcontacts '

-organizationalunit Accounting '

-conditionaldepartment accounting,finance '

-recipientcontainer robin.com

Manage Resource Mailboxes

new-mailbox-name "VIP1"-displayname " meeting Room VIP1 "'

-userprincipalname [Email Protected]–room

650) this.width=650; "title=" 01.png "style=" height:201px;width:720px; "border=" 0 "hspace=" 0 "src=" http:// S3.51cto.com/wyfs02/m00/59/ab/wkiol1tbv4ezqrjfaaebk_9cbvw658.jpg "width=" 720 "height=" 201 "alt=" Wkiol1tbv4ezqrjfaaebk_9cbvw658.jpg "/>

in the OWA to view the resource mailbox that you just created

650) this.width=650; "title=" 02.png "style=" height:411px;width:720px; "border=" 0 "hspace=" 0 "src=" http:// S3.51cto.com/wyfs02/m00/59/ae/wkiom1tbvppioinoaaixgz_nyma531.jpg "width=" 720 "height=" 411 "alt=" Wkiom1tbvppioinoaaixgz_nyma531.jpg "/>

in the example above, we used the -room parameter is specified as a conference room, in the mailbox, we can -room or -equipment switch to specify that the mailbox is a resource mailbox. In addition, the resource mailbox we do not need to specify the mailbox password, so when we use -new-mailbox to Create a resource mailbox, theAD account is disabled by default.

650) this.width=650; "title=" 03.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/59/AB/ Wkiol1tbv4jiu5q-aabu0p1b6fu979.jpg "alt=" Wkiol1tbv4jiu5q-aabu0p1b6fu979.jpg "/>

once the resource mailbox is created, we can use the OUTLOOK or OWA to apply for resource mailboxes, such as application rooms, equipment, etc. We can specify that the resource mailbox administrator is used for approval, or that the resource mailbox is automatically accepted for approval.

need to configure the resource mailbox to be automatically accepted upon receipt of the request, we need to use set-calendarprocessing command to configure a scheduled agent to automatically accept or reject a booking request

Set-calendarprocessing vip1-automateprocessing autoaccept

650) this.width=650; "title=" 04.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M01/59/AE/ Wkiom1tbvpoyorn3aabsyscj1wy419.jpg "alt=" Wkiom1tbvpoyorn3aabsyscj1wy419.jpg "/>

Back to OWA interface to view just the configuration:

650) this.width=650; "title=" 05.png "style=" height:447px;width:720px; "border=" 0 "hspace=" 0 "src=" http:// S3.51cto.com/wyfs02/m02/59/ab/wkiol1tbv4qrsthlaahcof1wrkk330.jpg "width=" 720 "height=" 447 "alt=" Wkiol1tbv4qrsthlaahcof1wrkk330.jpg "/>

When the resource mailbox is set to accept automatically (autoaccept), when a request is not in conflict, it is immediately accepted, and if there is a conflict, then the requestor will receive a reply describing the current request conflict. Of course we can use the -allowconflicts switch to allow collisions.

when we put the reservation agent's automateprocessing Set autoaccept , when a request is requested, it automatically replies to the prompt to indicate whether the current request is accepted or rejected. You can also add text to the reply using the following syntax:

Set-calendarprocessing-identity VIP1 '

-addadditionalresponse $true '

-additionalresponse ' For assistance contact Support at EXT. #3376 '

650) this.width=650; "title=" 06.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M02/59/AE/ Wkiom1tbvptzvpqjaab77s5qpei225.jpg "alt=" Wkiom1tbvptzvpqjaab77s5qpei225.jpg "/>

in this example, the use of the set-calendarprocessing command to personalize the request to return information. Note, however, that to personalize the request to return information, you must configure the automateprocessing property to autoaccept .

If we do not want the resource mailbox to automatically accept or reject, then we need to use the following syntax to complete:

Set-calendarprocessing-identity VIP1 '

-resourcedelegates "[Email protected]", "[email protected]" '

-automateprocessing None

In this example, we closed the automatic approval of the resource mailbox and then added Robin and the Susan Two resource mailbox administrator for approval, when a user sends a request for the resource, then Robin and the Susan will receive a prompt message, then Robin and the Susan can accept or reject requests for resources.

We can also add a Whiteboard property to the following syntax Exchange in the resource schema in your organization.

Set-resourceconfig-resourcepropertyschema ' Room/whiteboard '

After adding to the organization schema, we can use this resource attribute with the following syntax:

Set-mailbox-identity Vip1-resourcecustom Whiteboard

650) this.width=650; "title=" 07.png "style=" Float:none; "src=" http://s3.51cto.com/wyfs02/M00/59/AB/ Wkiol1tbv4vbzagzaac6lcvehvw252.jpg "alt=" Wkiol1tbv4vbzagzaac6lcvehvw252.jpg "/>

after configuring the resource properties, when we use the OUTLOOK when you make a meeting reservation, the added room properties information is displayed.

Convert mailbox

You can use the following syntax to convert a mailbox to a resource mailbox:

Get-mailbox VIP2 | Set-mailbox-type

This article from "Robin's Home" blog, declined reprint!

Exchange the PowerShell management contacts & Distribution Groups & resource mailboxes

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.