Is this what you are looking for?
Link: How to enable verbose startup, shutdown, logon, and logoff status Messages in the Windows Server 2003 family
Does anyone know how to output a verbose message in a startup script? I've enable Verbose logging and performing some minor repairs using the startup script but thought it would be nice to output a message using the verbose logging to explain what's going on. Any ideas?
Thanks in advance.
I've already set the GPO to show verbose messages but I'd like to be able to create new messages to show, i.e. I have a startup script that performs a registry fix, then copies up a local Start Menu from the server share - instead of the display "Running startup scripts", I'd like to add some code to my startup script to output, "Performing registry fix" and "Creating Local start menu". I just don't know how to create a message to be displayed. That's if it's even possible.
I think I may have a script that will echo a message to the screen and auto dismiss after a given delay say 10 seconds.
I will try to find it and post it here.
Edit: Had a look and I can't find it ATM [it has been a while since I last used it]
I will keep looking and post it when I find it.
Last edited by DaveP; 7th July 2011 at 01:11 PM. Reason: Add detail to the post.
OK. I have found the VBS script I was looking for. Here it is:
[It is a script used by a duplicate login check written by Edugeek member @flexyjerkov]Code:dim filesysSet objShell = CreateObject("Wscript.Shell") Set filesys = CreateObject("Scripting.FileSystemObject") Set sh = CreateObject("WScript.Shell") sh.Popup "This is a VBS generated popup message. It will auto dismiss in 10 seconds or you can click 'OK'",10
[His post: Link: My script to prevent multiple logins]
So if certain conditions are met you can call this script and have it display a message to your users.
Last edited by DaveP; 8th July 2011 at 08:15 AM. Reason: Add detail to the post.
There are currently 1 users browsing this thread. (0 members and 1 guests)