#기본적으로 1시간마다 DAG 밸런스를 위하여 핑퐁침
By default, the Replication service will inspect the database copies and perform a rebalance every one hour. You can modify this behavior using the following command:
Set-DatabaseAvailabilityGroup <Name> -PreferenceMoveFrequency <value in the format of 00:00:00>
#한방에 DAG 원복하는 스크립트
RedistributeActiveDatabase.ps1 (bin에 있겠지?)
If you are leaving the behavior enabled, and you have created a scheduled task to execute RedistributeActiveDatabases.ps1, you can remove the scheduled task after upgrading the DAG to CU2.
이벤트뷰어 쓰기 파워셀 하기와 같이 보내드리며,
EventLog 원본선언은 1번만 하시면 되겠습니다.
New-EventLog -LogName Application -Source “My Script”
Write-EventLog -LogName Application -Source "My Script" -EntryType
Error -EventID 1 -Message "Test"
New-EventLog -LogName Application -Source “My Script”
Write-EventLog -LogName Application -Source "My Script" -EntryType Error -EventID 257 -Message "Test"
Write-EventLog -LogName Application -Source "My Script" -EntryType Error -EventID 258 -Message "Test"
#이벤트뷰어 쓰기 URL
http://blogs.technet.com/b/heyscriptingguy/archive/2013/06/20/how-to-use-powershell-to-write-to-event-logs.aspx
'Microsoft > Windows' 카테고리의 다른 글
Windows Server 2012 설치시 에러 0x80070026 or install.wim 발생 (USB 부팅OS) (0) | 2015.05.06 |
---|
http://learningpcs.blogspot.kr/2010/07/communicator-enable-conversation.html#!/2010/07/communicator-enable-conversation.html
#CMD 관리자 권한이 필요할 수 있음
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Communicator /v IMAutoArchivingPolicy /t
REG_DWORD /d 1
reg add HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Communicator /v IMAutoArchivingPolicy /t
REG_DWORD /d 0