I created a new Console Tasks Command line,
- Name: Remote Console
- Task target: Agent
- Application: \\wtmsscom1\scripts\psexec.exe
- Parameters: \\$Target/Property[Type= SystemLibrary6050000!System.Entity ]/DisplayName$ cmd
- Working Directory: \\wtmsscom1\scripts
When I execute the task I get the following:
----------------------------------------------------------
PsExec v1.43 - execute processes remotely
Copyright (C) 2001-2003 Mark Russinovich
www.sysinternals.com
Connecting to $Target/Property[Type=...
The network path was not found.
Couldn't access $Target/Property[Type=:
Make sure that the default admin$ share is enabled on $Target/Property[Type=.
----------------------------------------------------------
For some reason, the parameter is not being substituted by SCOM properly. I validated there were now typo's or other errors, but nothing seemed to work. As a last resort I exported the MP and viewed the XML -- bingo!
Somehow the parameter is being parsed into 3 separate parameters, a bit of editing and I come up with the following which imports and executes properly:
Was I missing something here? Is this a bug in SP1?
***************************************************************
Update (12/18) it looks like somehow the attribute is being misinterpreted by SCOM and the quotes are the cause. Below is the line I entered, but after it is the line that SCOM sees, with the quotes replaced as spaces:
- $Target/Host/Property[Type="SystemLibrary6050000!System.Entity"]/DisplayName$
- $Target/Host/Property[Type= SystemLibrary6050000!System.Entity ]/DisplayName$
1 comment:
Ed, it failed for me on Opsmgr 2007 for different reasons. I got Opsmgr to do the string replacement, but it keeps putting a space between the \\ and the computer name, causing a failure....so still no help.
That MOM 2005 version took me only 10 minutes to figure out. Wish it were still that easy.
Post a Comment