Link to home
Start Free TrialLog in
Avatar of mcse2007
mcse2007Flag for Australia

asked on

Welcome Script

Hi,

I'm super new to VB.

Could you spare me a simply VB script whereby after the user logons into the domain from his pc, he gets the welcome pop windows screen (e.g., welcome to Cafee domain).

I need a basic script that does the job....the simplier the better???

I have a feeling it may not be simply as it sounds from the above?

Appreciate your help.
Avatar of conagraman
conagraman
Flag of United States of America image

you can use a javascript alert box
put the javascript tags and function in your head section of your html
then in the body tag call the function in the onload event.


<html>
<head>
<script type="text/javascript">
function show_alert()
{
alert("Welcome to Cafee Domain");
}
</script>
</head>
<body onload="show_alert()">
</body>
</html>
Avatar of mcse2007

ASKER

That looks impressive but not sure how where to put it.

I'm looking for a simply VB script, either create a batch file to call up the VB script so that when the user logon to the domain from his pc,  he gets a small pop windows screen that says "Welcome to Cafee Domain".

I hope I have not guided you to the wrong path?
Avatar of Mike Kline
There is a group policy that you can use for this

Interactive logon: Message text for users attempting to log on

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/578.mspx?mfr=true

You can use that and link the GPO to the computers.

Thanks

Mike
here is an example of the code above. let me know if this is/is not what you need.
popup.html
@ mkline71, yes I thought about this GP but the pop screen should appear right after not before the user logons on.

@ conagraman, thanks for the script. I'm referring to a domain (e.g. active directory). That is, when a user logged into a domain, a particular script that you can link with the NETLOGON from the AD server either with a batch file or VB script. But, I appreciate your demo.
SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@ Rob Sampson:

Should I just copy the slightly more personal script into notpad, save it as logon.vbs.

Copy the logn.vbs into \\server\netlogon

From active directory users and computers user's property, include the logon.vbs ?
@ Rob Sampson: That worked beautifully.

But how can I make it stay for approximately 2 sec before the screen disappear?

At the moment, the welcome screen pops up but it stays open uintil you press the OK button to close it.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Excellent, thanks rejoinder

Could you please rewrite the script and make Title Bar up the top where it says Windows Script Host, solid dark blue?

At the moment, when the Windows Script Host screen pops, the entire screen is GREYED out.

I just want to make the screen sort of ACTIVE.....For instance, it should look active when the Windows Script Host screen appears, the colour of the Title Bar up the top should be DARK blue.

Thanks heaps
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It didn't made much difference after alterning line 4 with the amended script. It would have been nice if the Window Script host screen looks ACTIVE instead of has  a GREYED out appearance.

It flashes for a brief moment that it is ACTIVE (ie Solid Blue top bar) then it turns GREY completely before the screen disappears.
Thank you
One last thing, at the moment, the Welcome to Cofee domain is LEFT indented.

How can I position the Welcome to Cofee domain in the MIDDLE of the Windows Script Host screen?

I'm sorry to say this but there are no formatting options available when using that particular popup box.