InspireICT Posted July 7, 2011 Posted July 7, 2011 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.
6Foot2 Posted July 7, 2011 Posted July 7, 2011 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
InspireICT Posted July 7, 2011 Author Posted July 7, 2011 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.
6Foot2 Posted July 7, 2011 Posted July 7, 2011 (edited) 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. Edited July 7, 2011 by 6Foot2 Add detail to the post.
6Foot2 Posted July 8, 2011 Posted July 8, 2011 (edited) OK. I have found the VBS script I was looking for. Here it is: 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 [it is a script used by a duplicate login check written by Edugeek member @flexyjerkov] [His post: Link: http://www.edugeek.net/forums/windows/53899-my-script-prevent-multiple-logins.html] So if certain conditions are met you can call this script and have it display a message to your users. HTH. Edited July 8, 2011 by 6Foot2 Add detail to the post.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now