執行下列指令:
D:> diskpart
DISKPART> list disk <- 列出磁碟清單
DISKPART> select disk 0 <- 磁碟代號從 0 開始,若 D 槽在第一顆硬碟,則選擇 0
DISKPART> list partition <- 列出磁碟分割區的清單
DISKPART> select partition 2 <- 分割區代號從 1 開始,若 D 槽在第二個分割區,則選擇 2
DISKPART> extend size=X <- X 請填所要延伸的空間大小,單位 MB,若不加”size=”參數,則是將未分割區完全填滿。
DISKPART> exit <- 離開 diskpart
星期五, 7月 18, 2008
安裝完KB945684完之後開啟工具,公用資料夾控制台無法開啟。
Exchange Server 2007 Service Pack 1 的更新彙總套件 1 (KB945684)
安裝完KB945684完之後開啟工具則出現錯誤訊息,說明公用資料夾控制台無法開啟,server=exchange2007 sp1,移除pack之後又恢復正常.請問有何解決方式呢?
目前遇到的使用者可以依照下列方式修正,找到下述機碼中Name值為何
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\v8.0\AdminTools\Toolbox\PublicFolderManagementConsole
(上完KB945684該值變成中文的就有問題了)
將Name 值改為 Public Folder Management Console,就可以了。
安裝完KB945684完之後開啟工具則出現錯誤訊息,說明公用資料夾控制台無法開啟,server=exchange2007 sp1,移除pack之後又恢復正常.請問有何解決方式呢?
目前遇到的使用者可以依照下列方式修正,找到下述機碼中Name值為何
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange\v8.0\AdminTools\Toolbox\PublicFolderManagementConsole
(上完KB945684該值變成中文的就有問題了)
將Name 值改為 Public Folder Management Console,就可以了。
Exchange 2007 郵箱大小寄送郵件報告 powershell script
###Send mailbox statistics script
###First, the administrator must change the mail message values in this section
# 寄件者為 MailboxReport@abc.com
$FromAddress = "MailboxReport@abc.com"
# 收件者為 admin@abc.com
$ToAddress = "admin@abc.com"
# 郵件標題
$MessageSubject = "Mailbox Size Report"
# 郵件內容
$MessageBody = "Attached is the current list of mailbox sizes."
# 送件伺服器
$SendingServer = "stl-relay"
###Now get the stats and store in a text file
Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}}, ItemCount > mailboxes.txt
###Create the mail message and add the statistics text file as an attachment
$SMTPMessage = New-Object System.Net.Mail.MailMessage $FromAddress, $ToAddress,
$MessageSubject, $MessageBody
$Attachment = New-Object Net.Mail.Attachment("mailboxes.txt")
$SMTPMessage.Attachments.Add($Attachment)
###Send the message
$SMTPClient = New-Object System.Net.Mail.SMTPClient $SendingServer
$SMTPClient.Send($SMTPMessage)
###First, the administrator must change the mail message values in this section
# 寄件者為 MailboxReport@abc.com
$FromAddress = "MailboxReport@abc.com"
# 收件者為 admin@abc.com
$ToAddress = "admin@abc.com"
# 郵件標題
$MessageSubject = "Mailbox Size Report"
# 郵件內容
$MessageBody = "Attached is the current list of mailbox sizes."
# 送件伺服器
$SendingServer = "stl-relay"
###Now get the stats and store in a text file
Get-MailboxStatistics | Sort-Object TotalItemSize -Descending | ft DisplayName,@{label="TotalItemSize(MB)";expression={$_.TotalItemSize.Value.ToMB()}}, ItemCount > mailboxes.txt
###Create the mail message and add the statistics text file as an attachment
$SMTPMessage = New-Object System.Net.Mail.MailMessage $FromAddress, $ToAddress,
$MessageSubject, $MessageBody
$Attachment = New-Object Net.Mail.Attachment("mailboxes.txt")
$SMTPMessage.Attachments.Add($Attachment)
###Send the message
$SMTPClient = New-Object System.Net.Mail.SMTPClient $SendingServer
$SMTPClient.Send($SMTPMessage)
Exchange 2007 郵件規則大小
Exchange 2007 郵件規則預設為 32KB,最多只能256KB,
set-mailbox -identity 郵箱名 -rulesquota 規則大小(單位為B 或 宣告KB)。
為 administrator 的郵箱調整規則大小到256K,就執行下列命令:
set-mailbox -identity administrator -rulesquota 262144
查看結果
get-mailbox -identity administrator | fl rule*
以上是對單個郵箱帳號,如果想對所有啟用郵箱帳號批次修改,則可執行下列命令:
get-mailbox | set-mailbox -rulesquota 262144
set-mailbox -identity 郵箱名 -rulesquota 規則大小(單位為B 或 宣告KB)。
為 administrator 的郵箱調整規則大小到256K,就執行下列命令:
set-mailbox -identity administrator -rulesquota 262144
查看結果
get-mailbox -identity administrator | fl rule*
以上是對單個郵箱帳號,如果想對所有啟用郵箱帳號批次修改,則可執行下列命令:
get-mailbox | set-mailbox -rulesquota 262144
訂閱:
文章 (Atom)