Microsoft exchange server 2008 (Error while executing powershell command)

Asked By 0 points N/A Posted on -
qa-featured

Hello every one out there,

I am hoping I will get some feedback on some issues I have been facing. I have a constant problem with back up of Hyper-V virtual machines using DPM 2007 and just wonder if you could help me.

Configuration: Host – DELL PE 2950 with Windows Server 2008 SP2. Guests – 5 Virtual machines with Windows Server 2008 SP 2 sitting on local SAS drivers.

When I try running the exchange server, I get the following error message; 

Host an Exchange Storage Group Wizard

Could not communicate with the agent on exch2007-bh. Please check that the All-in-One Storage Manager Agent software is properly on exch2007-bh.

Error Details:

Error while executing PowerShell command 'GetExchangeInfo"

I have followed several forums on the internet to no avail, and I get lost in the process.

Can anyone help with this problem?

Thanks you.

SHARE
Answered By 5 points N/A #80268

Microsoft exchange server 2008 (Error while executing powershell command)

qa-featured

 

As the powershell is very essential management tool in the windows platform, PowerShell has a different types Terminating errors can ruin a script’s day.  Say you are trying to gather information or update settings to a large number of servers.  What happens when you hit an error on server number three, or number 33, or number 333?  You’ll know you hit an error on that itemit depends up How much any of this matters really depends on your script and what you are trying to accomplish, but you really do need to take errors into account, especially if you are handing your script off to someone else. If error persists Take advantage of the error handling syntax that PowerShell provides.  Wrap potentially troublesome code in a try/catch or try/catch/finally block (check out the help for about_Try_Catch_Finally). .param (
    [parameter()]
    [string[]]
    $ComputerName
    )
 
process
{
    if ($ComputerName.count -gt 0)
    {
        try
        {
            Get-Process -ComputerName $ComputerName -Name powershell
        }
        catch
        {
            Write-Error "Error trying to connect and retrieve process from $ComputerName"
        }
    }
}

 

Related Questions