Server Information

(imported topic written by FITZPAW91)

Hello,

How would I go about making an informational dialog box based on one of the fields from the computer setting (Comment) evertime that computer is chosen to have an action run against it. Example - Dougs computer has a pop-up that says “be sure Halo is closed before patching” whenever the computer is chosen in bigfix.

Thanks

William

(imported comment written by Lee Wei)

Here is one way of doing it.

  • There is and if-then-else construct in the BigFix Action Script, so we will use that to test for the right computer
  • The easiest way to pop-up a dialogue is to use VBScript on the endpoint

In the following example, the message box will only pop-up if the computer name = “RAZORBILL”.

if {computer name = “RAZORBILL”}

delete __appendfile

delete msg.vbs

appendfile MsgBox “Message to user”, 0, “Message Title”

move __appendfile msg.vbs

waithidden “{pathname of system folder}\cscript.exe” msg.vbs

endif

Use other conditions as appropriate.

For example, if a computer belongs to a group, I have a computer setting that I can use.

{value of setting “__Group_0_Huff Building” of client}

This returns true if my computer belongs to the “Huff Building” group, and hence will show the message.

(imported comment written by FITZPAW91)

Thanks for the answer Lee,

So if I understand correctly, when i run this action against computer RAZORBILL, it would create a dialog box on the BES server with “whatever I put in the…” msgbox compent of the file. That way it could advise users that there are things that need to be done before patching the RAZORBILL.

William

(imported comment written by Lee Wei)

That is correct.

You can test the VBScript file outside of BigFix first.

Simple create a file msg.vbs, add a line

MsgBox “Hello World”

and run with “cscript msg.vbs” from the command line. Search the Internet for “vbscript msgbox” for more examples.

The IF statement looks for a TRUE/FALSE. Any valid relevance statements are possible. In this case, I am simply looking for “computer name”, but you can check for other conditions as well.