Visual Basic Script Message-Box Pop-up Window
Server administrators have the ability to send message to users to inform them when they log on to the workplace.
The VBS MsgBox function is excellent for this purpose. Insert the following 3 lines into an editor (Notepad) and save them as i.e. “logon.bat”.
echo msgbox("Good morning staff. we serve coffee or tea in the lounge bar. Thank you and a nice day!"),vbInformation ,"Message"> %temp%\msg.vbs %temp%\msg.vbs erase %temp%\msg.vbs
The Visual Basic Script creates a pop-up window with information through the MsgBox function. The
msg.vbs file is saved under
%temp% and erase them after execution.
The user can close the opened window by clicking OK.
In the AD user administration (dsa.msc) for the corresponding users, enter the file name in the Profile tab at Logon script (logon.bat).
For Windows domain, save the file to \\server\netlogon.
The netlogon share is located on the server at %systemroot%\SYSVOL\sysvol\[domain]\scripts. If a logon script is already in use, the code lines can be inserted into this script.