Created a new dashboard based upon the "Using PowerShell Grid Widget Scenario 1" from the New Widgets.docx document.
Using PowerShell create a grid view to display some arbitrary data
- Create a 1 grid dashboard
- On the first widget add a PowerShell Grid Widget called “PowerShell”
- Copy the script below into the wizard:
$dataObject = $ScriptContext.CreateInstance("xsd://foo!bar/baz")
$dataObject["Id"] = "123"
$dataObject["Hello"] = "world"
$dataObject["Olleh"] = "Dlrow"
$ScriptContext.ReturnCollection.Add($dataObject)
Opening the dashboard on any Management server produces the desired results. However, when trying to view the dashboard on a remote console (not running on the management server) produces the following error:
Please provide the following information to the support engineer if you have to contact Microsoft Help and Support :
System.Net.Sockets.SocketException (0x80004005): No such host is known
at Microsoft.EnterpriseManagement.Presentation.Security.DataProviderConnectionBootstrapper.GetServerHostName(Uri serviceUri)
at Microsoft.EnterpriseManagement.Presentation.Security.DataProviderConnectionBootstrapper.GetServerName(IUnityContainer container, String connectionSessionTicket)
at Microsoft.EnterpriseManagement.Presentation.Security.DataProviderConnectionBootstrapper.TryGetIsInitializedInternal(IUnityContainer container, String connectionSessionTicket, Boolean performLock, String& uniqueServerName)
at Microsoft.EnterpriseManagement.Presentation.Security.DataProviderConnectionBootstrapper.RunInternal(String connectionSessionTicket, Boolean checkInitialized)
at Microsoft.EnterpriseManagement.Presentation.Security.DataProviderConnectionBootstrapper.Run(String connectionSessionTicket)
at Microsoft.EnterpriseManagement.Presentation.Security.DataCommandNotFoundHandler.Handle(DataCommand command)
at Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.GetCommand(DataCommand command)
at Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.ExecuteScalarInternal[TResult](DataCommand command)
at Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.<ExecuteScalarAsync>b__2[TResult](<>f__AnonymousType0`1 data)
Ideas?
Thanks,
Tom