Wednesday, July 20, 2011

Exchange 2010 on VMware - Best Practices Guide

Exchange 2010 서버를 VMware에 올린다면...

This guide provides best practice guidelines for deploying Exchange Server 2010 on vSphere. The recommendations in this guide are not specific to any particular set of hardware or to the size and scope of any particular Exchange implementation. The examples and considerations in this document provide guidance only and do not represent strict design requirements, as the flexibility of Exchange Server 2010 on vSphere allows for a wide variety of valid configurations.

Exchange 2010 on VMware - Best Practices Guide.pdf

Thursday, July 14, 2011

Powershell DiskSpace HTML Report - Module

Generates HTML Diskspace Report for a list of Computers.
Highlights the disks/volumes which has less free space based on configured thresholds.
Connects using WMI and Win32_LogicalDisk class.

Exchange 2003 사용자 접속 상태 모니터링

Exchange 2003의 경우 사용자 접속 상태 모니터링은 쉽지 않고 별도 솔루션 없이는 맨땅에 헤딩 수준이다. 일정 기간 테스트 삼아 해 봤는 데 거의 불가능이라고 해도 무방하다. ^^;(몰라서 그럴수 있다.)

ESM에서 서버의 진단로깅 설정을 최대로 변경한다.
MSExchangeIS - Mailbox logons, Send On Behalf Of
이렇게 하면 응용프로그램 이벤트에 로그온 기록이 남게 된다.
EventID는 1016으로 분석은 logparser로 해야 한다.


아래와 같이 하면....탭으로 분리된 TXT파일로 저장된다. 그래도 분석은 어렵다.

"C:\Program Files\Log Parser 2.2\logparser" -o:TSV "select timegenerated,EXTRACT_TOKEN(Strings,0,'|') as Viewer,EXTRACT_TOKEN(Strings,1,'|') as MBX into d:\%sQuery% from application where EventID=1016 and TimeGenerated > SUB( TO_LOCALTIME(SYSTEM_TIMESTAMP()), TIMESTAMP( '06', 'hh' ) ) ORDER BY timegenerated"

Friday, June 17, 2011

Hyper-V Remote Management: You do not have the required permission to complete this task.

Exchange 테스트를 위해 환경 구축 중이다. Windows 2008 R2 Hyper-v 기능을 활용하고 가상 서버를 구성 중이다. 터미널로 host(?) 서버에 연결하기 귀찮아서 Hyper-V Remote Management 방법을 찾아 봤다. 동일 도메인에서만 구현이 가능하리라 생각했는 데 몇가지만 수정하면 되는 구나....

출처 : Hyper-V Remote Management

Wednesday, June 15, 2011

New-MoveRequest : mailbox 사서함 이동

cmdlet to begin the process of an asynchronous mailbox or personal archive move. You can also check mailbox readiness to be moved by using the WhatIf parameter.

New-MoveRequest -TargetDatabase 'XX-MBX-001' -BadItemLimit '3' -DomainController dc.company.com -Identity user@company.com

Friday, June 10, 2011

Getting Mailbox Sizes in PowerShell

차곡차곡 운영을 위해 자료 수집 중~

Get-MailboxStatistics [username]
Get-MailboxStatistics [username] | ft DisplayName, TotalItemSize, ItemCount

| where {$_.ObjectClass –eq “Mailbox”}
| Sort-Object TotalItemSize –Descending

@{expression={$_.TotalItemSize.Value.ToMB()}
@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}
@{label=”Items”;expression={$_.ItemCount}}
@{label=”Storage Limit”;expression={$_.StorageLimitStatus}}
@{label=”User”;expression={$_.DisplayName}}

final code ... ^^
Get-MailboxStatistics | where {$_.ObjectClass –eq “Mailbox”} | Sort-Object TotalItemSize –Descending | ft @{label=”User”;expression={$_.DisplayName}},@{label=”Total Size (MB)”;expression={$_.TotalItemSize.Value.ToMB()}},@{label=”Items”;expression={$_.ItemCount}},@{label=”Storage Limit”;expression={$_.StorageLimitStatus}} -auto

출처 : Getting Mailbox Sizes in PowerShell

Friday, June 03, 2011

Exchange 2010 Mailbox Reconnect / Restore

열공중이다. Exchange 2010 입시반된 듯.... 간혹 사용자 mailbox 관련 이슈가 많은데 드디어 오늘 생기고 말았다. 이제 나도 powershell 쓴다.

기존 사용자 정보가 변경되며 기존 사서함이 끊어지고 신규 사서함이 생성되어 메일을 신규 사서함에 Restore 하는 것을 찾아 보았다.


끊어진 사서함 리스트
Get-MailboxDatabase | Get-MailboxStatistics | where {$_.DisconnectReason -ne $null} | ft displa
yname,itemcount,database,mailboxguid,disconnectreason -auto


DisconnectReason
- Disabled – means the mailbox was disabled
- SoftDeleted – means the mailbox was either removed or moved between databases

끊어지 사서함 연결
Connect-Mailbox -Database "Mailbox Database" -Identity "John Evans"


끊어진 사서함에 있는 Item을 지정한 다른 사서함으로 Restore
New-MailboxRestoreRequest -SourceDatabase XX-MBX-002 -SourceStoreMailbox 4acc9c5c-8207-4875-a7c3-c336673bc6db -TargetMailbox "user@company.co.kr" -DomainController dc.company.co.kr -AllowLegacyDNMismatch

Restore 요청한 상태 정보 확인
Get-MailboxRestoreRequest

Tuesday, May 31, 2011

Exchange 2010 SP1 OWA에서 HWP 첨부파일 열기

아웃룩이 좋다고 쓰시라고 백번을 얘기해도 꼭 OWA를 고집한다. hwp 첨부파일 바로 열기를 위해 설정 변경방법을 찾아 봤다.

Set-OwaVirtualDirectory -AllowedFileTypes '.rpmsg','.xlsx','.xlsm','.xlsb','.tiff','.pptx','.pptm','.ppsx','.ppsm','.docx','.docm','.zip','.xls','.wmv','.wma','.wav','.vsd','.txt','.tif','.rtf','.pub','.ppt','.png','.pdf','.one','.mp3','.jpg','.gif','.doc','.bmp','.avi','.hwp' -Identity '서버명\owa (Default Web Site)'