Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 205
  • 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 Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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