Hi,
Can you please try connecting using the following code. This will provide verbose output of the exception. Can you please post a screenshot of it?
I'd like to see the stack trace property of the error object to trace the source code.
#'------------------------------------------------------------------------------ Param( [Parameter(Mandatory=$True, HelpMessage="The hostname or IP Address of the SnapCenter server")] [String]$HostName, [Parameter(Mandatory=$True, HelpMessage="The SnapCenter Port Number")] [Int]$PortNumber, [Parameter(Mandatory=$True, HelpMessage="The credentials to authenticate the to SnapCreator server")] [System.Management.Automation.PSCredential]$Credentials ) #'------------------------------------------------------------------------------ Import-Module SnapCreator -ErrorAction SilentlyContinue Try{ Connect-ScServer -Name $HostName -Port $PortNumber -Credential $credentials -ErrorAction Stop | Out-Null Write-Host "Connected to SnapCenter ""$HostName"" on port number ""$PortNumber""" }Catch{ Write-Warning -Message $("Failed connecting to SnapCenter ""$HostName"" on port number ""$PortNumber"". Error " + $_.Exception.Message)echo $_.Exception | Format-List -Force } #'------------------------------------------------------------------------------
Thanks
/Matt