Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LINK SCRIPT TO OPENING INTERNET 3

Status
Not open for further replies.

ITSTOAST

Technical User
Mar 3, 2005
71
GB
Hi all,
Is it possible to get a script to link to the opening of a program Ie: the internet?
I would like a window to pop up when a user tries to connect to the internet, A disclaimer if you like setting out rules for the use of the internet.
Thanks Stressed school tech

Only the good die young, me I'm here forever :)
 
How about setting the home page for ie to your own, with the warnings.

if it is to be it's up to me
 
Yes its a good idea, i just wondered if i could do this by having a script open up show the Notice and when the user clicks ok then open the internet.

Only the good die young, me I'm here forever :)
 
I think a more effective solution is to implement a legal notice at logon. Such a notice gives you a leg to stand on if you ever needed to take action against an employee for misuse of company property.

You could try replacing the IE icon with one for a script that would first display a message and then launch IE.

I hope you find this post helpful.

Regards,

Mark
 
Thats what I am looking for a script to launch a message then on clicking ok to say that it has been read opening IE
any ideas?

Only the good die young, me I'm here forever :)
 
Code:
'==========================================================================
'
' NAME: IEWarning.vbs
'
' AUTHOR: Mark D. MacLachlan , The Spider's Parlor
' URL: [URL unfurl="true"]http://www.thespidersparlor.com[/URL]
' DATE  : 5/2/2005
'
' COMMENT: <comment>
'
'==========================================================================

Set WSHShell = CreateObject("Wscript.Shell")
If Msgbox("Hey you!  Don't visit porn at work!", vbOKCancel, "be a good surfer") = vbOK Then
	WSHShell.Run("iexplore.exe")
Else
	MsgBox("You may Not surf the Internet If you Do Not agree To be good.")
End If

I hope you find this post helpful.

Regards,

Mark
 
Mark you are the man!
This is just what I need. I shall remove the IE icon and rplace it with this warning script. the kids Have been warned I'm on thier case

Only the good die young, me I'm here forever :)
 
A suggestion for you is to look at the vbscript shortcut commmand. Using that you can specify the icon too and could point it to IE so they would not be the wiser.

I hope you find this post helpful.

Regards,

Mark
 
Sounds good i'll have a look. thanks again for all your valuable help.

Only the good die young, me I'm here forever :)
 
They could still open the internet without using your script if they knew how. I would do as suggested above and make a logon notice that appears at logon.

If you are using Active Directory change the GPO Under security settings and set the logon message so that when they click ctrl+Alt+Delete a popup appears that they must agree to by clicking ok before they can login. This way you cover all bases as far as general computer use goes.
 
I have (due to pupils actions, swiftly followed by complaining parents)done all three; a logon message, a script message at internet explorer opening and the home page set to display a full page warning on the correct use. Now let them say " I didn't know I shouldn't browse inapropiate sites!!

Only the good die young, me I'm here forever :)
 
Hi I have been using the script of Markdmac, however I wonder if it can be adjusted to use it at logon, and to get the script to logoff the user if they disagree with the check box? and perhaps open the desktop if they agree.
I could then adjust the statement in the script to suit. Thanks Itstoast/now having to use Fisko as previous logon failed to work.
 
Yes, you can do that.

Code:
'==========================================================================
'
' NAME: IEWarning.vbs
'
' AUTHOR: Mark D. MacLachlan , The Spider's Parlor
' URL: [URL unfurl="true"]http://www.thespidersparlor.com[/URL]
' DATE  : 5/2/2005
'
' COMMENT: <comment>
'
'==========================================================================

Set WSHShell = CreateObject("Wscript.Shell")
If Msgbox("Hey you!  Don't visit porn at work!", vbOKCancel, "be a good surfer") = vbOK Then
    WSHShell.Run("iexplore.exe")
Else
    MsgBox("You may Not surf the Internet If you Do Not agree To be good.")
    WSHShell.Run("logoff.exe")
End If

I hope you find this post helpful.

Regards,

Mark
 
Thanks once again for your help Mark,can i ask if its also possible to get it to close the message box on clicking ok without opening any programs ie, the internet?
 
Just remove this line:
WSHShell.Run("iexplore.exe")

I hope you find this post helpful.

Regards,

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top