How to send message to user

(imported topic written by lukibest)

Welcome

One simple question, how to send message to user if net send doesn’t work property?

See you.

(imported comment written by brolly3391)

Hello Lukibest and welcome to the forums,

Open your BES Console.

Select Tools>Take Custom Action.

On the message tab check the “Display message before running action” checkbox and fill in the text box with your message.

On the targeting tab select the endpoints that you want to recieve this message as a pop-up.

Press OK and enter your signing key password.

Cheers,

Brolly

(imported comment written by amitspradhan)

Hey Brolly,

I tried this one earlier, but was not much satisfied with the output. It does display a message, but it also shows a “Take action now” tab which I didnt want. I would prefer “OK” ONLY to be displayed.

Also the box that pops up is pretty big in size, is there a way to reduce the size and do some font/colour changes…

Regards,

Amit

(imported comment written by HGA8191)

If you don’t like BigFix’s custom messages, You can always make your own using Windows vbs.

Something simple like the code below should do it.

delete __appendfile

appendfile a = MsgBox(“Line one of your message”& vbCrLf & “Line two of your message”)

copy __appendfile info.vbs

wait wscript info.vbs

(imported comment written by amitspradhan)

Hi,

I have found some workaround as suggested, just that I have modified this trying to give it a more professional look. I have added the below as an action:

delete _appendfile

appendfile On Error Resume Next

appendfile strComputer = “.”

appendfile Set objWMIService = GetObject(“winmgmts:\” & strComputer & “\root\cimv2”)

appendfile Set colItems = objWMIService.ExecQuery(“Select * from Win32_ComputerSystem”,48)

appendfile Dim curUser

appendfile For Each objItem in colItems

appendfile curUser=objItem.UserName

appendfile Next

appendfile if curUser"" THEN

appendfile ’ msgbox “There is a user logged in”

appendfile Dim sTitle

appendfile Dim sPrompt

appendfile sPrompt = “Line 1” & vbCrLf & “Line 2” & vbCrLf & “Line 3” & vbCrLf & “Line 4” & vbCrLf & “Line 5”

appendfile sTitle = " Title of your message box"

appendfile msgBox sprompt, 0, sTitle

appendfile ’ wscript.echo("""" & curUser & “”"")

appendfile end if

move __appendfile prompt.vbs

run “{pathname of client folder of site “BESSupport” & “\RunQuiet.exe”}” “{pathname of system folder}\cscript.exe” prompt.vbs

Under sprompt, you can add & vbCrLf & if you want to add one more line, each of the & vbCrLf & will add one line and carry forward the message to the next line.

The only problem I faced here is, though the action runs succesfully, Big Fix shows as a Failed status…Any suggestions on this…

Regards,

Amit