Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Login Message needed

Posted on 2008-10-10
8
Medium Priority
?
204 Views
Last Modified: 2013-11-21
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
Comment
Question by:j4piper
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
8 Comments
 
LVL 38

Expert Comment

by:Shift-3
ID: 22687332
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
 

Author Comment

by:j4piper
ID: 22687391
Can you provide me with a quick vbs script where I can use it as a template in writing my message?
0
 

Author Comment

by:j4piper
ID: 22687585
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 38

Expert Comment

by:Shift-3
ID: 22687616
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
 

Author Comment

by:j4piper
ID: 22687661
How about referencing a text file?
0
 
LVL 38

Accepted Solution

by:
Shift-3 earned 2000 total points
ID: 22687836
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
 

Author Closing Comment

by:j4piper
ID: 31505023
Wonderful!
0
 

Author Comment

by:j4piper
ID: 22705378
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

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some time ago I faced the need to use a uniform folder structure that spanned across numerous sites of an enterprise to be used as a common repository for the Software packages of the Configuration Manager 2007 infrastructure. Because the procedu…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

704 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question