Showing posts with label Exchange - PowerShell. Show all posts
Showing posts with label Exchange - PowerShell. Show all posts

Monday, February 2

get-storagegroupcopystatus - initializing - can not failover

Implemented few Exchange CCR projects. Lots of customers are happy to see sucha great idea, despite the need of more storage...

During explanation and hand over, we normally share on get-storagegroupcopystatus command in Exchange management shell as well as we do not recommend to failover CCR using failover cluster or cluster administrator. Guess what? Sometimes, it shows initializing...

Just to clarify and share with the community, it is NORMAL if the DB does not has any activity (activity means transaction log...). It is because MSFT would like to ensure the checksum health check prior to the failover...

One of the product team guy, Tim, has a great blog and one article talking about this. Great stuff which will explain to you...

http://blogs.technet.com/timmcmic/archive/2009/01/26/get-storagegroupcopystatus-initializing.aspx

Sunday, January 25

SCL Junk Threshold

Outlook for sure is the best client for Microsoft Exchange. In Exchange 2007 and Outlook 2003/2007, there is a folder called Junk Mail.

When working with Exchange 2007, the default value is 8, which mean the email Spam Confidence Level (`SCL`) level lis 8 will move to user's Junk Email folder. Normally, once the Junk Email settings set, you might want to modify this setting.

The recommended value for the SCLJunkThreshold parameter is 4. However, you can monitor your organization behavior and set it.

In the Exchange Management Shell:

Set-OrganizationConfig -SCLJunkThreshold 4

Thursday, January 1

Record commands when you are using Exchange Management Shell

One of the reasons i like Exchange so much is because of the Exchange Management Shell - develop using PowerShell.

However, some of the time, to get what you have typed and configured, its a pain - especially need to copy one by one (when doing documentation especially).

Today, during routine of checking our company and customer's Exchange server, i got this tips which think will benefit you guys:

To Record exactly what happen when you are using EMS!!
Awesome thing is, you can use the Start-Transcript cmdlet. Anything that you do after you runthis cmdlet will be recorded to a text file that you specify. To stop recordingyour session, use the Stop-Transcript cmdlet.

However, this command will overwrites the previous reocrding file, unless you append the session. How? Use the Appendparameter:

Start-Transcript c:\MyRecordSession.txt -Append

Once, Happy New Year.

Thursday, March 6

How to configure Edge to Sync with Hub Transport

After the teo posts, some of you urge to know how to configure the edge sync. Here is the general steps:

1) In Exchange MSH, type:
New-EdgeSubscription -FileName "C:\EdgeSubscriptionInfo.xml"

2) Transfer the xml file to a thumb drive and copy to the Hub Transport Server

3) In Hub Transport Server, Open the Exchange Management Console. Expand Organization Configuration, select Hub Transport, and then in the result pane, click the Edge Subscriptions tab.

4) In the action pane, click New Edge Subscription. The New Edge Subscription Wizard starts.

5) On the New Edge Subscription page, in the Active Directory Site: drop-down list, select the Active Directory site where you want the Hub Tranport to sync with Edge.

NOTE: The Hub Transport to sync should be in the site selected

6) On the New Edge Subscription page, click Browse. Locate the Edge Subscription file to import. Select the file, and then click Open.

7) On the New Edge Subscription page, click New.

8) On the Completion page, click Finish.

Edge Transport will only sync with the Hub Transport every 4 hours. To force its sync, type the following command in Hub Transport:

Start-EdgeSynchronization

Monitor and review the end result.

Sunday, August 19

Booking resources in Exchange 2007

Guys,

Recently, we gave some talks, some of the participants actually asking, how can we help the users to decide what room to book?

As administrators, you be able to provide more information on the particular resources, eg: the room is with the mounted projector, with Tele Conferencing facilities, or even with Plasma TV. Sounds cool?

To add the resource information, you will need to add it via Exchange Management Shell. You will then be able to put in the information defined intot he resources mailbox.

In Exchange Management Shell, you can set the resources configuration using this command:

set-resourceConfig -ResourcePropertySchema "Room/WithProjector", "Room/WithVideoConf"

To check on the configuration made, you can type this command:

Get-ResourceConfig



After the configuration done, you will be able to set the resource mailbox with the information set in Management Shell.



Your users will then be able to see the information set by you, the administrators. Its indeed a big help to your users to choose the right resources.



Cheers

Monday, July 16

Exchange PowerShell - Advanced Formatting



In this sample, we would like to share, if your Employer would like to know when your employee join the company (Assume that you create the e-mail address at the day the employee join the company).

The sample command show like this:
At the command prompt, type the following command, and then press ENTER:
get-mailbox sort-object whencreated format-table @{expression=″whencreated″;width=25; label=″Employee Join Date″}, @{expression=″name″;width=20; label=″User name″} > users.txt

Using Pipe in Exchange Management Shell

This session, we will learn about a subset of the users that match the criteria we enter – in this case, a name that is like max solution and anything (in other words, it starts with max solution). By the way, the $_.name means this object’s name. The where-object command goes through all objects and checks each one’s name against the criteria defined.

At the command prompt, type the following command, and then press ENTER:
get-user where-object {$_.name –ilike ″max solution*″}

In this command, we would like to have a result where users is not start with max solution.

At the command prompt, type the following command, and then press ENTER:
get-user where-object {$_.name –inotlike ″max solution*″}

To only get the users that have mailbox in Exchange, at the command prompt, type the following command, and then press ENTER:
get-user where-object {$_.recipienttype –eq ″mailboxuser″}