Message Box at Logon

Discussion in 'Scripting' started by Joe, Jan 19, 2004.

  1. Joe

    Joe Guest

    In a Network how can I configure a domain controller so
    that any user of the domain will have a message box
    automatically appearing when they logon.
     
    Joe, Jan 19, 2004
    #1
    1. Advertisements

  2. Hi,

    A logon script can display a message box. Also, Group Policy can be
    configured to display a message box before logon.

    A VBScript logon script to simply display a message could be:

    MsgBox "Welcome" & vbCrLf _
    & "This is a message from the network logon script" _
    & vbCrLf & "Please click ""OK"" to continue"

    You can also use the Popup method of the WshShell object to display
    messages. This has the advantage of allowing the message to timeout in case
    you don't want to require the user to acknowledge the message. A quick
    example in VBScript that will display a message box with the title "Network
    Logon" for up to 15 seconds with only an "OK" button and an "Exclamation"
    icon:

    Set objShell = CreateObject("Wscript.Shell")
    objShell.Popup "Welcome" & vbCrLF & "This computer for company use only",
    15, "Network Logon", vbOKOnly + vbExclamation
     
    Richard Mueller [MVP], Jan 19, 2004
    #2
    1. Advertisements

  3. Joe

    Robert Cohen Guest

    group policy also can add disclaimer messages as well depending on what you
    want.
     
    Robert Cohen, Jan 19, 2004
    #3
  4. Joe

    Joe Guest

    Regardless of the other suggestions being good options,
    how do I configure Group Policy so that it will display a
    message box before logon. This message box must appear to
    every user of the domain before logon or after.
     
    Joe, Jan 20, 2004
    #4
  5. Hi,

    In the GPO editor, navigate to:

    Computer Configuration
    Windows Settings
    Security Settings
    Local Policies
    Security Options

    There are two settings, which are called:

    Message text for users attempting to log on
    Message title for users attempting to log on

    When these are defined, a message is displayed when the user presses
    Ctrl-Alt-Del to enter their username and password.

    To edit a GPO, select the domain or OU this policy will apply to in the
    Users & Computers MMC, right click this container and select properties,
    click on the "Group Policy" tab, select or add a group policy object, and
    click on Edit. Computer Configuration policies are applied when the machine
    starts up. GPO applies to any computer object in the container (domain or
    OU) with W2k or above.
     
    Richard Mueller [MVP], Jan 20, 2004
    #5
  6. In group policy under Computer configuration\Windows Settings\Security
    settings\Local Policies\Security Options\
    The two options you are looking for is "Interactive logon: Message text for
    users attempting to log on" and "Interactive logon: Message title for users
    attempting to log on".
    Just put whatever you like in there and that will come up before users
    logon.
     
    Fredrik Landin, Jan 22, 2004
    #6
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.