creating random login message
Hi, I am the administrator of windows AD domain in my company. I am planning to show some informational random message (like tips of the day) to the users when he/she logs into the domain with his userid and password. Each time user logs into the domain , a different message will display and user can close it by clicking the OK button . I know the process of configuring static message from group policy, which shows when user logs into the domain. But it cannot show the different message randomly. If that have to do through any script, can anyone also provide me that. thanks in advance,kolitkolit
March 19th, 2009 6:38pm

Hi,You can use a login script that pops-up a MsgBox containing text from a randomized array of text. You can add the following routine to your login script: 1 ' Copyright(c)2009SalvadorManaoisIII 2 'http://badzmanaois.blogspot.com 3 '========================================================================= 4 'Youarefreetouseandmodifythescriptatwill 5 'providedyouunderstandthatallcodehereismadeavailableASIS,with 6 'NOWARRANTYWHATSOEVER.TheauthortakeNORESPONSIBILITYATALLfor 7 'problemsthatresultfromtheuseofthisscriptoranypartthereof. 8 'Ifyoumodifyorquotethescript,youmustretainthisheader 9 'andcopyrightnotice. 10 11 arrMsg=array("Thisisamonitoredmachine.Pleaseusewithcaution.",_ 12 "WARNING!Usethismachinewithcare.",_ 13 "WelcometoNorthwindtraders.Haveaniceday",_ 14 "Howdy!How'syourday?") 15 16 numHigh=3 17 numLow=0 18 19 Randomize 20 numRnd=Int((numHigh-numLow+1)*Rnd+numLow) 21 22 MsgboxarrMsg(numRnd),0,"SampleMessagePop-up" 23 For scripting topics, please post your queries at the "The Official Scripting Guys Forum!"http://social.technet.microsoft.com/Forums/en-US/ITCG/threads/Regards,Salvador Manaois IIIMCITP | Enterprise & Server AdminMCSE MCSA MCTS CIWA C|EHBytes & Badz: http://badzmanaois.blogspot.com
Free Windows Admin Tool Kit Click here and download it now
March 20th, 2009 6:45am

hi,Thanks for your script. This serve my purpose. By the way is it possible to make the messages in the messagebox in bold and bigger font, also is it possible to make the message box more attractive rather then the default one. I am not a scripting guy, and no idea in it. This will be great if this can be done.thanks againkolit kolit
March 26th, 2009 6:59pm

Hi, Thanks for the update. I understand that you want to make the messages in bold and bigger font. Please understand that the standard system message box does not support this as standard behavior. For scripting topics, please post it at the "The Official Scripting Guys Forum!"http://social.technet.microsoft.com/Forums/en-US/ITCG/threads/
Free Windows Admin Tool Kit Click here and download it now
March 30th, 2009 10:09am

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

Other recent topics Other recent topics