2013年9月12日 星期四

VMM Performing an operation in Virtual Machine Manager fails with error 801

VMM Performing an operation in Virtual Machine Manager fails with error 801

To resolve this issue, remove the orphaned objects from the database by following the steps below.

1. Stop the System Center Virtual Machine Manager service on the VMM 2012 server.

2. Back up the Virtual Manager database.

3. Open SQL Management Studio and run the following script on the VMM database:

BEGIN TRANSACTION T1

DECLARE custom_cursor CURSOR FOR
SELECT VHDId, VDriveId from
dbo.tbl_WLC_VDrive WHERE [VHDId] NOT IN
(SELECT VHDId from dbo.tbl_WLC_VHD WHERE VHDID IS NOT NULL)

DECLARE @VHDId uniqueidentifier
DECLARE @VDriveId uniqueidentifier

OPEN custom_cursor
FETCH NEXT FROM custom_cursor INTO @VHDId, @VDriveId

WHILE(@@fetch_status = 0)
BEGIN
if(@VHDId is NOT NULL)
DELETE FROM dbo.tbl_WLC_VDrive
WHERE VDriveId = @VDriveId
FETCH NEXT FROM custom_cursor INTO @VHDId, @VDriveId
END
CLOSE custom_cursor
DEALLOCATE custom_cursor

COMMIT TRANSACTION T1
4. Start the System Center Virtual Machine Manager service again and refresh problem VMs. The VMs should return to a proper reporting state.

2013年9月6日 星期五

Exchange 刪除公用資料夾使用ADSI

Exchange 刪除公用資料夾使用ADSI


1. Open Adsiedit.msc from run command
2. Navigate to your configuration container 3. Expand to services, Microsoft Exchange, your org name, admin groups, servers, locate your FE server, expand, Expand information store, and storage group that houses your public folder store. On the right pane, delete the public folder store.

Exchange New-OfflineAddressBook



New-OfflineAddressBook -Name "OAL-MAIL15" -AddressLists "\Default Global Address List" -Server cch-mail15 -VirtualDirectories "CCH-MAIL02\OAB (Default Web Site)","CCH-MAIL03\OAB (Default Web Site)","CCH-MAIL06\OAB (Default Web Site)","CCH-MAIL07\OAB (Default Web Site)"

2013年9月4日 星期三

Exchange 移除狀態為已完成的所有匯出要求。MailboxExportRequest

移除狀態為已完成的所有匯出要求。
Get-MailboxExportRequest -Status Completed | Remove-MailboxExportRequest

Exchange 取得狀態為Softdeleted的信箱

Exchange 取得狀態為Softdeleted的信箱,不曉得幹馬用的

Get-MailboxStatistics -Database xxx| Where-Object {$_.DisconnectReason -eq “Softdeleted”} | ForEach {Remove-StoreMailbox -Database $_.database -identity $_.mailboxguid -MailboxState Softdeleted}

2013年9月2日 星期一

Proxy IE登錄匯入

Proxy IE登錄匯入


ProxyDisable

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:00000000
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections]
"DefaultConnectionSettings"=hex:46,00,00,00,00,11,00,00,01,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,01,00,00,00,00,00,00,00,b2,8f,50,49,f6,3b,cc,01,\
00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,02,00,00,00,c0,a8,02,53,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00


SetProxy

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyEnable"=dword:00000001
"ProxyServer"="172.28.27.247:8080"
"ProxyOverride"="<local>"

Exchange Get-PublicFolder 取得系統資料夾Replicas的狀態並匯出

Get-PublicFolder  取得系統資料夾Replicas的狀態並匯出

Get-PublicFolderStatistics -Server cch-mail13

Get-PublicFolder -Identity \NON_IPM_SUBTREE -Recurse | fl Name,Replicas > c:\pf-system-replicas.txt

CD\Program Files\Microsoft\Exchange Server\V14\Scripts

Get-PublicFolder -Identity \IPM_SUBTREE -Recurse  –Server cch-mail11 | fl Name,Replicas > c:\pf-system-replicas.txt

Get-PublicFolder -Identity \NON_IPM_SUBTREE -Recurse | fl Na
me,Replicas > c:\pf-system-replicas.txt

Get-PublicFolder -Identity \ -Recurse | fl Name,Replicas > c:\pf-system-replicas.txt




可以看出那些項目未移除複本
--------------------------------------------------------
Microsoft Exchange 錯誤
--------------------------------------------------------
無法刪除公用資料夾資料庫 'PUBLIC13'。
PUBLIC13
失敗
錯誤:
公用資料夾資料庫 "PUBLIC13" 包含資料夾複本。刪除公用資料夾資料庫前,請先移除資料夾或將複本移至其他公用資料夾資料庫。如需如何移除公用資料夾資料庫的詳細指示,請參閱 http://go.microsoft.com/fwlink/?linkid=81409&clcid=0x404


--------------------------------------------------------
確定
--------------------------------------------------------