2019年8月12日 星期一

Windows 2016 與 Windows 2008 R2 AD 共存進行FSR 移轉至DFR




AD 網域及樹系提升至Windows 2008 R2
進行FSR 移轉至DFR
1.測試AD複寫狀態
repadmin /showrepls
repadmin /replsum
2.強制複寫一下
repadmin /syncall /force
確認沒問題後
3.dfsrmig /SetGlobalState 1 更新DFSR狀態至準備就緒
4.dfsrmig /getglobalstate 確認所有網域主機狀態一致(網域AD需等待一段時間狀態才能同步完成)
同步完需驗證每台DC 是否產生C:\windows\sysvol_dfsr 目錄
5. dfsrmig /setglobalstate 2 更新DFSR狀態至重新導向
dfsrmig /getglobalstate確認狀態為重新導向
需再確認每台伺服器NET SHARE 共用SYSVOL被重導向SYSVOL_DFSR
7. dfsrmig /setglobalstate 3設定域遷移狀態為Eliminated(不可逆)
dfsrmig /getglobalstate驗證整體遷移狀態為Eliminated狀態
完成後sysvol 資料夾就會自動刪除,  FRS服務會自動停用



測試複寫

DfsrAdmin PropTest New /RgName:"Domain System Volume" /RfName:"SYSVOL Share" /MemName:網域\主機名稱 /Domain:網域

測試完成後若未刪除事件紀錄會一直出現ID:5014 錯誤

DFS 複寫服務因錯誤發生而停止與複寫群組  Domain System Volume 的協力電腦XXX
 進行通訊。服務會 定期重試連線。
 其他資訊:
錯誤: 9036 (因備份或還原而暫停)

所以需要刪除測試複寫

DfsrAdmin PropTest Clean /RgName:"Domain System Volume" /RfName:"SYSVOL Share" /MemName:網域\主機名稱  /Age:0 /Domain:網域

/Age :多久後刪除 (天)

2015年1月13日 星期二

Exchange Server 2010 啟用 Outlook anywhere


使用 EMC修改 OAB ECP ActiveSync 之外部連結URL
或使用PowerShell 指令
Set-OABVirtualDirectory -identity "mail01\OAB (Default Web Site)" -externalurl "https://mail.aaa.com/OAB" -RequireSSL:$true

Set-WebServicesVirtualDirectory -identity "mail01\EWS (Default Web Site)" -externalurl "https://mail.aaa.com/EWS/Exchange.asmx" -BasicAuthentication:$True


Set-ActiveSyncVirtualDirectory -Identity "mail01\Microsoft-Server-ActiveSync (Default Web Site)" -ExternalUrl "https://mail.aaa.com/Microsoft-Server-ActiveSync"

開啟該伺服器之OutlookAnywhere

連線至憑證伺服器,安裝憑證至受信任之發行單位

開啟Outlook 設定

Windows 2008 R2 DC 更改名稱

dc1.abc.com 為該DC名稱欲變更為 dc2.abc.com

查看目前該DC之名稱
netdom computername dc1.abc.com /enumerate 


在原名稱下再新增新名稱
net domcomputername  dc1.abc.com /add:dc2.abc.com

再次查看目前該DC之名稱,會出現兩個名稱dc1及dc2
netdom computername dc1.abc.com /enumerate 


將dc2 提升為主要名稱
netdom computernamedc1.abc.com /makeprimary:dc2.abc.com


重新開機

檢查該DC名稱是否已經變更為 dc2.abc.com

移除原dc1.abc.com
netdom computername dc2.abc.com /remove:dc1.abc.com

刪除DNS原dc1.abc.com

檢查AD站台覆寫確認已變更完成

2014年10月22日 星期三

Exchange 2010 2501 2604 2601 異常事件

若該網域為跨網段,且未使用IPV6,則需要完全移除IPV6,網域DC,GC 在DNS內不可存在IPV6位置

移除後待覆寫後即正常


Exchange 2010 警告: 無法在移動後清理來源信箱.....


查詢已搬移未刪除之信箱

Get-MailboxStatistics -Database "信箱儲存區" | Where { $_.DisconnectReason -eq "SoftDeleted" } | Format-List LegacyDN, DisplayName, MailboxGUID, DisconnectReason


刪除該信箱
Remove-StoreMailbox -Database "信箱儲存區" -Identity "該信箱之MAILBOXGUID" -MailboxState Softdeleted

2014年10月17日 星期五

Exchange 2010 查看信箱儲存區 RpcCas-Array



Get-ClientAccessArray

Get-MailboxDatabase | ft name,rpccl* -Autosize



建立Cas-Array

Get-ADsite(查詢節點名稱)
Default-First-Site-Name


New-ClientAccessArray -Fqdn "mail.aaa.com" -Site "Default-First-Site-Name" -Name "mail.aaa.com"


修改信件儲存區 RPCCAS

Set-MailboxDatabase "Mailbox" -RpcClientAccessServer "mail.aaa.com"

2014年9月26日 星期五

Exchange 憑證過期解決方法

http://vicchen39.pixnet.net/blog/post/45342079-exchange%E6%86%91%E8%AD%89%E9%81%8E%E6%9C%9F%E8%A7%A3%E6%B1%BA%E6%96%B9%E5%BC%8F%E5%95%8F%E9%A1%8C%3A

2014年8月14日 星期四

Exchange 2010 移動使用者信箱失敗 Event ID 1100

不移動任何與 Tony 信箱相關聯的規則,來忽略規則限制錯誤。
Set-MoveRequest -Identity "Tony" -IgnoreRuleLimitErrors $true

變更 Ayla 的信箱移動要求,使其最多接受五個損毀的信箱項目
Set-MoveRequest -Identity "Ayla" -BadItemLimit 5

2014年5月26日 星期一

2013年8月30日 星期五

Active Directory 網域服務並未對另一個目錄伺服器執行已驗證的遠端程序呼叫 (RPC),因為目的地目錄伺服器所需的服務主體名稱 (SPN) 並未登錄在解析 SPN 的金鑰發佈中心 (KDC) 網域控制站上。

  1. Open a command prompt as an administrator. To open a command prompt as an administrator, click Start. In Start Search, type Command Prompt. At the top of the Start menu, right-click Command Prompt, and then click Run as administrator. If the User Account Control dialog box appears, confirm that the action it displays is what you want, and then click Continue.
  2. Run the command setspn -l hostname, where hostname is the actual host name of the domain controller. This command displays the SPNs that the domain controller has registered.
  3. Ensure that the domain name in each SPN listing is correct.
  4. If the SPNs are not correct, run the command repadmin /syncall domainname, where domainname is the name of the domain of the domain controller.
  5. Wait 15 minutes, and then run the setspn -l hostname command again and review the registered SPNs.


2013年8月27日 星期二

Exchange 2003 與 Exchange 2010 混和模式,升級通訊清單後異常無法修改

Exchange 2003 與 Exchange 2010 混和模式 升級通訊清單後,造成原本的通訊清單分類,無法分類使用ADSIEDIT 修改清單的serach 字串,後右鍵套用

Exchange 2010 OWA Couldn't find a base theme 解決

開啟 Exchange Management Shell 

輸入 C:\Program Files\Microsoft\Exchange Server\V14\Bin\UpdateCas.ps1

等他跑完後

再於命令提示字元輸入 iisreset 重啟IIS 即可

Exchange 2010 未安裝 exchange management shell 解決方式

今天给Exchange 2010服务器安装SP2,发现Exchange Management Shell (EMS)图标消失。后经过查询找到如下解决方法。此方法是针对SP1的,但经过测试也适用于SP2。
Problem: After installing Service Pack 1 for Exchange Server 2010, the Exchange Management Shell is missing.
Cause: Missing certain .ps1 scripts from the bin directory, removed during SP1 setup.Resolution: There is no resolution at this time.

Workaround:
1.
Verify that the ConnectFunctions.ps1 , RemoteExchange.ps1 and CommonConnectFunctions.ps1files are present in the %ExchangeInstallPath%\bin directory.
NOTE : If these files are missing, you can copy the files from the Exchange Server 2010 Service Pack 1 installation media to the %ExchangeInstallPath%\bin directory.
These files are present in the \setup\serverroles\common folder.
2.
Right click an open area on the Desktop, click New , click Shortcut .
3.
In the Type the location of the item , type in the text below:
%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command ". '%ExchangeInstallPath%\bin\RemoteExchange.ps1'; Connect-ExchangeServer -auto"
4.
Name the shortcut Exchange Management Shell and click Finish .
5.
Right click the Exchange Management Shell shortcut, click Properties and remove the text from Start In field on the Shortcut tab.
6.
On the Shortcut tab, click Change Icon , click Browse and type in the text below:
%SystemRoot%\Installer\{4934D1EA-BE46-48B1-8847-F1AF20E892C1}\PowerShell.exe
7.
Select the Exchange icon and click OK .
8.
Click Apply and click OK .
9.
Copy the new Exchange Management Shell shortcut to this location:
%systemdrive%\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Exchange Server 2010


2012年7月24日 星期二

Exchange 2010 建立 autodiscover 自動探索服務

於DNS SERVER 上正像對應區域,網域_tcp 按滑鼠右鍵新增其他紀錄:服務位置(SRV)

在服務輸入:_autodiscover
通訊協定:_tcp
連接port 號碼:443
提供這項服務的主機:請輸入該EXCHANGE 2010完整的主機+domain name

待DNS複寫完成後,在outlook 新增帳號時只需輸入帳號 EMAIL密碼

Outlook 將會透過autodiscover 自動完成Outlook 的設定

另外郵件答錄機的設定,也是綁在autodiscover 上,如果未設定該服務,則無法在Outlook 上面進行郵件答錄機助理員之設定,而需在OWA上才可以設定



2012年5月25日 星期五

檔案複寫服務 JRNL_WRAP_ERROR 錯誤


在事件檢視器的"檔案複寫服務"出現下列錯誤時:

檔案複寫服務偵測出複本組 "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)" 在 JRNL_WRAP_ERROR 狀態。
複本組名稱是: "DOMAIN SYSTEM VOLUME (SYSVOL SHARE)"
複本根路徑是: "c:\windows\sysvol\domain"
複本根磁碟區是: "\\.\C:"
複本組發生 JRNL_WRAP_ERROR,因為它嘗試讀取 NTFS USN 日誌,但找不到這個日誌。 這可能是因為下列原因所導致。
[1] 磁碟區 "\\.\C:" 已經被格式化。
[2] 在磁碟區 "\\.\C:" 的 NTFS USN 日誌已被刪除。
[3] 在磁碟區 "\\.\C:" 的 NTFS USN 日誌已被截斷。如果 Chkdsk 在日誌 結尾發現損毀的項目,就有可能會截斷日誌。
[4] 檔案複寫服務已經有很長一段時間並未在這台電腦上執行。
[5] 檔案複寫服務跟不上 "\\.\C:" 磁碟 IO 活動的速度。
設定 "Enable Journal Wrap Automatic Restore" 登錄參數為 1 將造成 下列修復步驟自動修復錯誤狀態。
[1] 在 5 分鐘內會執行第一次輪詢,並從複本組上刪除這台電腦。 如果您不想等候 5 分鐘,可以先執行 "net stop ntfrs",再執行 "net start ntfrs",以重新啟動檔案複寫服務。
[2] 刪除這台電腦之後,後續的輪詢會將它重新加入複本組。 重新加入的動作會觸發整個複本組樹狀目錄的同步處理。
警告: 在修復過程中,複本樹狀目錄中的資料可能無法使用。如果這 個錯誤繼續發生,您應該將上述的登錄參數重設為 0,以避免自動修復 意外地將資料變成無法使用。
如果要變更這個登錄參數,請執行 regedit。
請按 [開始] 功能表、[執行],然後輸入 regedit。
展開 HKEY_LOCAL_MACHINE。
請按機碼路徑:
"System\CurrentControlSet\Services\NtFrs\Parameters"
請在下列值名稱上按兩下:
"Enable Journal Wrap Automatic Restore"
並更新值。
如果值名稱不存在,您可以使用 [編輯] 功能表 New->DWORD 值的功能來新增它。 請輸入如上所顯示的正確值名稱。


請在 http://go.microsoft.com/fwlink/events.asp 查看說明及支援中心,以取得其他資訊。


除了事件記錄中建議的新增 "Enable Journal Wrap Automatic Restore" 值外(光是這個步驟似乎沒用),還有另一個處理方式:

1. 停止 FRS 服務
net stop ntfrs


2. 執行 Regedt32.exe
3. 找到下列值:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NtFrs\Parameters\Backup/Restore\Process at Startup\BurFlags
4. 修改十六進位值為:D2
5. 關閉Regedt32
6. 啟動 FRS 服務
net start ntfrs

以上確實可以解決此問題!

參考連結