+ Post New Thread
Results 1 to 5 of 5
How do you do....it? Thread, Verbose logging on startup script in Technical; Does anyone know how to output a verbose message in a startup script? I've enable Verbose logging and performing some ...
  1. #1
    InspireICT's Avatar
    Join Date
    Dec 2010
    Location
    North London
    Posts
    110
    Thank Post
    17
    Thanked 6 Times in 6 Posts
    Rep Power
    9

    Verbose logging on startup script

    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.

  2. #2

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,994
    Thank Post
    352
    Thanked 1,301 Times in 891 Posts
    Blog Entries
    4
    Rep Power
    1131

  3. #3
    InspireICT's Avatar
    Join Date
    Dec 2010
    Location
    North London
    Posts
    110
    Thank Post
    17
    Thanked 6 Times in 6 Posts
    Rep Power
    9
    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.

  4. #4

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,994
    Thank Post
    352
    Thanked 1,301 Times in 891 Posts
    Blog Entries
    4
    Rep Power
    1131
    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.

  5. #5

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,994
    Thank Post
    352
    Thanked 1,301 Times in 891 Posts
    Blog Entries
    4
    Rep Power
    1131
    OK. I have found the VBS script I was looking for. Here it is:

    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
    [It is a script used by a duplicate login check written by Edugeek member @flexyjerkov]

    [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.

    HTH.
    Last edited by DaveP; 8th July 2011 at 08:15 AM. Reason: Add detail to the post.

SHARE:
+ Post New Thread

Similar Threads

  1. Startup script woes
    By witch in forum Coding
    Replies: 14
    Last Post: 17th March 2010, 06:59 PM
  2. DelProf anomaly in startup script
    By Ignatius in forum Windows Server 2000/2003
    Replies: 3
    Last Post: 14th August 2009, 04:48 PM
  3. Windows Update in a startup script.
    By MaxBerzon in forum Windows
    Replies: 2
    Last Post: 30th April 2009, 03:48 PM
  4. Startup Script
    By Chuckster in forum Windows
    Replies: 5
    Last Post: 26th February 2009, 12:53 PM
  5. RM CC3 Startup Script
    By randle in forum Windows
    Replies: 4
    Last Post: 30th July 2007, 02:56 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •