Solved

Login Message needed

Posted on 2008-10-10
8
194 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
  • 5
  • 3
8 Comments
 
LVL 38

Expert Comment

by:Shift-3
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 38

Expert Comment

by:Shift-3
Comment Utility
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
Free book by J.Peter Bruzzese, Microsoft MVP

Are you using Office 365? Trying to set up email signatures but you’re struggling with transport rules and connectors? Let renowned Microsoft MVP J.Peter Bruzzese show you how in this exclusive e-book on Office 365 email signatures. Better yet, it’s free!

 

Author Comment

by:j4piper
Comment Utility
How about referencing a text file?
0
 
LVL 38

Accepted Solution

by:
Shift-3 earned 500 total points
Comment Utility
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
Comment Utility
Wonderful!
0
 

Author Comment

by:j4piper
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip is around source server preparation. No migration is an easy migration, there is a…
Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found listed in my profile here: http:…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

771 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now