Right Click creation w/ Current User

(imported topic written by sgreenwall91)

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)

(imported comment written by BenKus)

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 /”& ( 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.

Ben

(imported comment written by sgreenwall91)

I assume you mean? :

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 )

(imported comment written by sgreenwall91)

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).

(imported comment written by BenKus)

Hi sgreenwall,

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)

Ben

(imported comment written by sgreenwall91)

Perfect. Thanks for the help. Is there a reference list of console inspectors somewhere?

(imported comment written by BenKus)

http://support.bigfix.com/fixlet/documents/BESSessionInspectors-2006-06-07.pdf

Ben