Quantcast
Channel: Exchange Server 2010 forum
Viewing all articles
Browse latest Browse all 15005

Parser Errors for RedistributeActiveDatabases.ps1

$
0
0

I'm trying to run the included RedistributeActiveDatabases.ps1 script in my environment, but the following errors are returned. I've tried on multiple machines with the same results. Any help would be greatly appreciated!

[PS] C:\Program Files\Microsoft\Exchange Server\V14\Scripts>.\RedistributeActiveDatabases.ps1 -DagName DAG01 -BalanceDbsByActivationPreference

At C:\Program Files\Microsoft\Exchange Server\V14\Scripts\RedistributeActiveDatabases.ps1:1928 char:3
+         return $moveSuccessful
+         ~~~~~~~~~~~~~~~~~~~~~~
Control cannot leave a finally block.
At C:\Program Files\Microsoft\Exchange Server\V14\Scripts\RedistributeActiveDatabases.ps1:2538 char:5
+                 return $success
+                 ~~~~~~~~~~~~~~~
Control cannot leave a finally block.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : ControlLeavingFinally



Viewing all articles
Browse latest Browse all 15005

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>