Archive for May, 2015

A friend over Facebook messaged me today andĀ asked “how can I run two commands on the same line?”…specifically, the question was how can I stop a service and start a service on the one single command line? And no…not using Windows PowerShell!!!

Well, yes it’s possible to do this on the command line, although it’s personally something that I never use.

So let’s use the SCOM healthservice as our example service.

We can stop the healthservice using the net stop command.

net stop healthservice

We can start it using the net start command.

net start healthservice

We can also issue both commands on the same line if we’d prefer:

cmd /c "net stop healthservice & net start healthservice"

And that will stop, then start the healthservice. So there you have it. If there’s a better way to do this, feel free to let me know about it.

 

So today I was working with a colleague of mineĀ and we experienced an error in the SCOM Console as follows:

 

Date: 13/05/2015 3:39:00 PM
 Application: Operations Manager
 Application Version: 7.1.10226.0
 Severity: Error
 Message:
System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
 at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
 at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
 at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
 at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
 at System.Xml.XmlDocument.Load(XmlReader reader)
 at System.Xml.XmlDocument.LoadXml(String xml)
 at Microsoft.SystemCenter.CrossPlatform.ClientLibrary.CredentialManagement.Core.ScxRunAsAccountHelper.DeserializeToScxRunAsAccount(ScxCredentialRef credentialRef)
 at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
 at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
 at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
 at Microsoft.SystemCenter.CrossPlatform.ClientLibrary.CredentialManagement.Core.ScxRunAsAccountHelper.EnumerateScxRunAsAccount(IManagementGroupConnection managementGroupConnection)
 at Microsoft.SystemCenter.CrossPlatform.UI.OM.Integration.Administration.ScxRunAsAccountHelper.<GetScxRunAsAccountInstances>b__6(Object sender, ConsoleJobEventArgs e)
 at Microsoft.EnterpriseManagement.Mom.Internal.UI.Console.ConsoleJobExceptionHandler.ExecuteJob(IComponent component, EventHandler`1 job, Object sender, ConsoleJobEventArgs args)

Read more