Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

Veyon Community Forum

  1. Home
  2. General Discussion
  3. Tet Message Function

Tet Message Function

Scheduled Pinned Locked Moved General Discussion
4 Posts 2 Posters 361 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Gary.C02
    wrote on last edited by
    #1

    is there a way to change the text message functionality to say "School Name" , message from Admin ect..

    if not does anybody know where to find this in the code of this in an attempt to fix it

    1 Reply Last reply
    0
    • I Offline
      I Offline
      ITGuy
      wrote on last edited by
      #2

      Using the 'Run program' feature.

      Either,

      powershell.exe -windowstyle hidden -Command "Add-Type -AssemblyName Microsoft.VisualBasic; [Microsoft.VisualBasic.Interaction]::MsgBox('message from Admin', 'SystemModal', 'School Name')"

      or,

      powershell.exe -Command "Invoke-WmiMethod -Class Win32_Process -Name Create -ArgumentList 'C:\Windows\System32\msg.exe * message from Admin'"

      You could script it to prompt for the message to send.

      1 Reply Last reply
      1
      • I Offline
        I Offline
        ITGuy
        wrote on last edited by
        #3

        Veyon’s ‘Text message’ feature is used to send messages to selected computers.

        Msg1.png

        It was asked how to include the name of the school or organization in the title of a Text message and to include the text “Message from Admin”.

        This can be accomplished using Visual Basic’s MsgBox function, a text file containing the message and Veyon’s ‘Run program’ feature.

        Using Windows Notepad edit and save the text message to a file within a shared network folder, \\servername\sharename\Veyon\message.txt.

        Msg2.png

        Teachers/administrators will require Read/Write access to the shared folder, students and others need only Read access.

        Note: When received lengthier line text will wrap within the message window.

        Using Notepad save the follow VBScript text to a file named ‘message.vbs’ within the same shared network folder.

        Dim message

        Set fso = WScript.CreateObject("Scripting.Filesystemobject")

        Set objFile = fso.OpenTextFile("\\E125095N1\SYS\Apps\Veyon\message.txt",1)
        tempData = objFile.readAll()

        objFile.Close

        message = MsgBox(tempData,0,"Lake Wobegon High School")

        The script opens and reads the file containing the message text then displays the message using the VB MsgBox function. Double-clicking ‘message.vbs’ will run the script and display the message.

        Msg4.png

        To send the message use the Veyon ‘Run program’ feature and enter the following command:

        C:\Windows\System32\wscript.exe \servername\sharename\Veyon\message.vbs

        It was also asked whether the text message could be displayed as the foremost window to prevent being hidden by other windows before being closed.

        This can be done through PowerShell using Visual Basic and the Windows .NET presentation framework.

        Using Notepad save the follow PowerShell script text to a file named ‘message.ps1’ within the same shared network folder.

        Add-Type -AssemblyName Microsoft.VisualBasic
        Add-Type -AssemblyName PresentationFramework

        $objFSO = New-Object -ComObject scripting.filesystemobject
        $objFile = $objFSO.OpenTextFile("\\servername\sharename\message.txt", 1)
        $strContents = $objfile.ReadAll()

        $objFile.Close()

        [Microsoft.VisualBasic.Interaction]::MsgBox($strContents, 'SystemModal', 'Lake Wobegon High School')

        The script opens and reads the file containing the message text then displays the message using the VB MsgBox function. Right-clicking ‘message.ps1’ then from the context menu selecting ‘Run with PowerShell’ will run the script and display the message. SystemModal locks the window on top.

        Msg3.png

        To send the message use the Veyon ‘Run program’ feature and enter the following command:

        PowerShell.exe -executionpolicy Bypass -windowstyle hidden -File \\servername\sharename\Veyon\message.ps1

        1 Reply Last reply
        0
        • I Offline
          I Offline
          ITGuy
          wrote on last edited by
          #4

          Corrected: Missing backslash.

          To send the message use the Veyon ‘Run program’ feature and enter the following command:

          C:\Windows\System32\wscript.exe \\servername\sharename\Veyon\message.vbs

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          Powered by NodeBB | Contributors
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups