RedistributeActiveDatabases.ps1
Hi I am new to Exchange 2010 and Exchange management Shell. So I need some help please! I want to run 'RedistributeActiveDatabases.ps1' with follwing paramereters -DAGNAME XX --BalanceDbsByActivationPreference -ShowFinalDatabaseDistribution -Confirm:$False | Out-File C:\ActiceDB.txt. I need to start the above in a cmd-file e.g. ActiveDB.cmd I have tried, but it does not work!:C:\WINDOWS\system32\WindowsPowerShell\v1.0\PowerShell.exe -PSConsoleFile "C:\Program Files\Microsoft\Exchange Server\V14\bin\exshell.psc1" -noexit -command ". 'C:\Program Files\Microsoft\Exchange Server\V14\bin\RedistributeActiveDatabases.ps1';-BalanceDbsByActivationPreference -ShowFinalDatabaseDistribution -Confirm:$False | Out-File C:\ActiveDB.txt ?? Thanks. Alex
January 25th, 2012 5:23pm

Cant you just do it with .ps1? Something like this - %systemroot%\system32\WindowsPowerShell\v1.0\powershell.exe “.\$yourscript.ps1"Sukh
Free Windows Admin Tool Kit Click here and download it now
January 25th, 2012 7:00pm

Hi open EMS PS C:\>cd “C:\Program Files\Microsoft\Exchange Server\V14\Scripts” PS C:\Program Files\Microsoft\Exchange Server\V14\Scripts> .\RedistributeActiveDatabases.ps1 –DagName DAG1 –BalanceDBsByActivationPreference –Confirm:$false Terence Yu TechNet Community Support
January 25th, 2012 9:55pm

Scripts AFAIR are in Scripts subdirectory, not bin as you wrote.Regards, Konrad Sagala, MCT, MCSE+M, MCITP: Exchange 2007/2010
Free Windows Admin Tool Kit Click here and download it now
January 26th, 2012 4:50am

Hi open EMS PS C:\>cd “C:\Program Files\Microsoft\Exchange Server\V14\Scripts” PS C:\Program Files\Microsoft\Exchange Server\V14\Scripts> .\RedistributeActiveDatabases.ps1 –DagName DAG1 –BalanceDBsByActivationPreference –Confirm:$false Terence Yu TechNet Community Support
January 26th, 2012 5:44am

Hi Can you post your result ?Terence Yu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
January 29th, 2012 9:11pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics