Monthly Archives: May 2009

Configure OWA Time-Out Values

Applies to: Exchange Server 2007

Viewing the current time-out values can be done by running the following PowerShell commands:

  • “This is a Public Computer” setting
    get-ItemProperty ‘HKLM:SYSTEMCurrentControlSetServicesMSExchange OWA’ -name PublicTimeout
  • “This is a Private Computer” setting
    get-ItemProperty ‘HKLM:SYSTEMCurrentControlSetServicesMSExchange OWA’ -name PrivateTimeout

Use below PowerShell commands to set the values:

  • “This is a Public Computer” setting
    set-ItemProperty ‘HKLM:SYSTEMCurrentControlSetServicesMSExchange OWA’ -name PublicTimeout -value <amount of time in minutes> -type dword
  • “This is a Private Computer” setting
    set-ItemProperty ‘HKLM:SYSTEMCurrentControlSetServicesMSExchange OWA’ -name PrivateTimeout -value <amount of time in minutes> -type dword

Note: You must restart Internet Information Services (IIS) by using the command iisreset /noforce for these changes to take effect.

Group Nesting Table

Applies to: Active Directory

The table below shows which types of groups can be nested into other groups.

Group Type Can Be Nested into Local Can Be Nested into Domain Local Can Be Nested into Global Can Be Nested into Universal
Local No No No No
Domain Local Yes Yes, if in the same domain No No
Global Yes Yes Yes, if in the same domain Yes
Universal Yes Yes No Yes

Export the SMTP Addresses of all Exchange Mailboxes and Distribution Groups

Applies to: Exchange Server 2007

If you’re in need to export all smtp address of the mailboxes and distribution groups in our Exchange Environment, there is help. Use below script to accomplish this task.

Step 1: Create a new file in C: called “Get-AllSMTPAddresses.ps1″

Step 2: Insert this code into the new file (replace yourdomain.com by your actual domain name):

Get-Mailbox | sort -property displayname | select name , alias ,EmailAddresses | foreach {
$name = $_.name
$_.EmailAddresses | foreach {
if($_.SmtpAddress -like “
*@yourdomain.com”
){
$output = $_.SmtpAddress +”,” + $name
write-output $output
}
}
}
Get-DistributionGroup | sort -property displayname | select name , alias ,EmailAddresses | foreach {
$name = $_.name
$_.EmailAddresses | foreach {
if($_.SmtpAddress -like “
*@yourdomain.com
“){
$output = $_.SmtpAddress +”,” + $name
write-output $output
}
}
}

Step 3: Enter this command in the Exchange Management Shell to display the output:

C:Get-AllSMTPAddresses.ps1

Step 4: Route the output to a text file by entering this command in the Exchange Management Shell:

C:Get-AllSMTPAddresses.ps1 > C:SMTPAddressExport.csv

Note: The output will have the format “email address,lastname firstname”

That’s it. Enjoy!