• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 208
  • Last Modified:

Login Message needed

I have 50 people logging into my terminal server.

I would like to display a message right after they login.

How do I do that?
0
j4piper
Asked:
j4piper
  • 5
  • 3
1 Solution
 
Shift-3Commented:
Create a GPO which applies to the server.  Enable User Group Policy loopback processing mode under the node Computer Configuration\Administrative Templates\System\Group Policy.  Then go to the node User Configuration\Windows Settings\Scripts\Logon, create a .vbs file, edit it in Notepad, and enter MsgBox "Your message here"
0
 
j4piperAuthor Commented:
Can you provide me with a quick vbs script where I can use it as a template in writing my message?
0
 
j4piperAuthor Commented:
Can you please provide me with a vbs example script that would reference a notepad.txt file?

This way I will only have to change the txt file.

Thank you.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Shift-3Commented:
If all you want to do is display a pop-up message then all you need is a single MsgBox line.

Use vbCrLf for line breaks.


MsgBox "This is the first line of my message." & vbCrLf & vbCrLf & "This is the second line of my message."

Open in new window

0
 
j4piperAuthor Commented:
How about referencing a text file?
0
 
Shift-3Commented:
Paste the script below into a text file with a .vbs extension.  Customize the value of the strFile variable with the location of the text file.

Const ForReading = 1
 
strFile = "message.txt"
 
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objTextFile = objFSO.OpenTextFile(strFile, ForReading)
strText = objTextFile.ReadAll
objTextFile.Close
 
MsgBox strText

Open in new window

0
 
j4piperAuthor Commented:
Wonderful!
0
 
j4piperAuthor Commented:
Is there a way that I can make this the only screen come up, making the end-user ACCEPT this message before the login finishes?
0

Featured Post

Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now