Message box with 2 buttons and capture result.

Hi Team,

Actually my requirement is to make a substitute/customization of Group Policy "Interactive logon: Message test for users attempting to log on" and "Interactive logon: Message title for users attempting to log on". I need a message box with Title and Message test along with 2 buttons "Yes" and "No" and that yes or no should get capture at a centralized file to get report.

Looking forward for help thanks.

Regards,

AKR

August 25th, 2015 9:30pm

Sorry but there is no such thing.  You cannot change the logon message box.

There is a message that can be displayed at logon which can be changed with  Group Policy.  Post in GP forum for help.

http://www.waynezim.com/2009/06/how-to-setup-a-legal-notice-before-login-in-group-policy/

Free Windows Admin Tool Kit Click here and download it now
August 25th, 2015 11:32pm

Hi Jrv,

I don't want to change original things, but want a new VB Script which can create a MSGBOX with 2 buttons and whatever be the section (out of those 2 buttons) should get captured in a csv file. Thanks.

Regards,

AKR

August 25th, 2015 11:37pm

I have no idea what you are asking. 

In VBScript use MsgBox function to create a message box.

http://ss64.com/vb/msgbox.html

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 12:24am

Hi JRV,

Thanks for replying, let me rephrase my request.

I want a similar kind of script where I can capture users "Yes" or "No" selection along with his Computer name, IP address to a csv file. Thanks

result = MsgBox ("Do you except IT Policy?", vbYesNo, "Yes No Example")

Select Case result
Case vbYes
    MsgBox("You chose Yes")
Case vbNo
    MsgBox("You chose No")
End Select

Regards,

AKR

August 26th, 2015 12:45am

There is no such thing in VBScript.

You can use "InputBox" to get strings.

http://ss64.com/vb/inputbox.html

You can learn how to use VBScript here: https://technet.microsoft.com/en-us/scriptcenter/dd772284

Free Windows Admin Tool Kit Click here and download it now
August 26th, 2015 12:49am

Hi Jrv,

Thank you, this looks interesting, I will try this.

Regards,

AKR

August 26th, 2015 1:01am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics