Jump to content

Recommended Posts

Posted

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.

Posted
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.
Posted (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 by 6Foot2
Add detail to the post.
Posted (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 by 6Foot2
Add detail to the post.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...