I’m trying to create a Right-click menu for Unicenter Remote Control (very similar to http://forum.bigfix.com/viewtopic.php?id=347). One option that the application provides as a command line option is to pass a user name. Assuming that context menus allow similar relevance to tasks/fixlets, can I use “name of current user” to pass that to the command line argument.
Example 1: Works but prompts for user name
“C:\Program Files\CA\Unicenter Remote Control\rclaunch.exe” & " VIEW /M SHARED /A " & ( value of property result whose (name of property of it = “Computer Name” ) of current computer ) & " /I "
Example 2: Returns Error: “Not all the computers were able to run the selected action”
“C:\Program Files\CA\Unicenter Remote Control\rclaunch.exe” & " VIEW /M SHARED /A " & ( value of property result whose (name of property of it = “Computer Name” ) of current computer ) & " /I " & “/U /”&(name of current user)
“C:\Program Files\CA\Unicenter Remote Control\rclaunch.exe” & " VIEW /M SHARED /A " & ( value of property result whose (name of property of it = “Computer Name” ) of current computer ) & " /I " & “/U /”& ( value of property result whose (name of property of it = “Computer Name” ) of current computer )
The (name of current user) piece is “client side relevance”, but since you are using “session relevance” in the BES Console, you look up the value of the property.
C:\Program Files\CA\Unicenter Remote Control\rclaunch.exe" & " VIEW /M SHARED /A " & ( value of property result whose (name of property of it = “Computer Name” ) of current computer ) & " /I " & “/U /”& ( value of property result whose (name of property of it = _“Current User” _ ) of current computer )
Actually wouldn’t using +( value of property result whose (name of property of it = “Computer Name” ) of current computer ) + return a value for the system that you are right clicking on in the cosole? The goal is to pass the ID of the user currently logged into windows or the console user (which in our case happens to be the same).
You are correct (on all points)… Luckily, we have an inspector for the current console user… Try this:
“C:\Program Files\CA\Unicenter Remote Control\rclaunch.exe” & " VIEW /M SHARED /A " & ( value of property result whose (name of property of it = “Computer Name” ) of current computer ) & " /I " & “/U /”&(name of current console user)