Hi all,
I can't seem to get aLTeReGo's DAG monitoring PS script to work. Has anyone else had any success? As an aside, I don't quite understand how the script is being executed. If it is being sent to and executed on a remote server how come a prerequisite is to have the Exchange Tools installed on the APM server? Not that it's a problem, I was just wondering.... :)
Upon execution I receive the following output:
#########################
Testing on node '192.168.234.187' failed with 'Down' status ('Down' might be different if script exits with a different exit code).
The term 'Test-ReplicationHealth' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Output: ==============================================
Message: The term 'Test-ReplicationHealth' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
Errors: ==============================================
Add-PSSnapin : No snap-ins have been registered for Windows PowerShell version 2.
At line:1 char:13
+ add-pssnapin <<<< Microsoft.Exchange.Management.PowerShell.E2010;
+ CategoryInfo : InvalidArgument: (Microsoft.Excha...owerShell.E2010:String) [Add-PSSnapin], PSArgumentException
+ FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
The term 'Test-ReplicationHealth' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:11 char:23
+ Test-ReplicationHealth <<<< -Server $server | ForEach-Object `
+ CategoryInfo : ObjectNotFound: (Test-ReplicationHealth:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
#########################