E14– Windows Server Backup on DAG–Part6-BalanceDbsByActivationPreference
1.
@echo off For /f "tokens=1-3 delims=/ " %%a in ('date /t') do (set date=%%a-%%b-%%c) set backuplog="c:\batch\WSB\BackupLog\"%computername%-WSB.txt"" Rem ================================== Rem ================================== For /f "tokens=1-3 delims=/ " %%a in ('date /t') do (set date=%%a-%%b-%%c) echo. Start:%date% %time% >> %backuplog%
Rem ================================== Rem ================================== Rem ================================== Rem ================================== |
2.
PowerShell.exe -command ". C:\Batch\WSB\PS_RedistributeActiveDatabase_after-WSB.ps1
D:\Exchsrvr\Scripts\.\RedistributeActiveDatabases.ps1 -ShowDatabaseDistributionByServer | ft -AutoSize >>"C:\Batch\WSB\DB_Activation_Log\DB_Activation.txt" |
3.
Cscript C:\Batch\WSB\DB_Active_Notify.vbs
On Error Resume Next Set net = CreateObject("WScript.Network") strText = objTextFile.ReadAll m=Month(Now) If (m<10) Then sDate = Y & M & D objTextFile.Close |
Comments
Post a Comment