+ Post New Thread
Page 3 of 3 FirstFirst 123
Results 31 to 39 of 39
Scripts Thread, HTA For Controlling Workstation Internet Access in Coding and Web Development; I'm trying to do the total opposite and open the internet explorer with a teacher defined website on every computer ...
  1. #31

    Join Date
    Oct 2005
    Location
    Corpus Christi Sports College
    Posts
    153
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: HTA For Controlling Workstation Internet Access

    I'm trying to do the total opposite and open the internet explorer with a teacher defined website on every computer in the room and have this so far:

    psexec @"%room%.txt" "c:\Program Files\Internet Explorer\IEXPLORE.EXE" http://%website%

    It works fine if I am logged on as admin, but not for the kids. It starts up as a service on the clients, however the browser never appears on the screen.

  2. #32

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    640
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324

    Re: HTA For Controlling Workstation Internet Access

    @Pear: You need to supply PSExec with the interactive desktop switch (-i, I think) for it to be visible.

  3. #33
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,013
    Thank Post
    120
    Thanked 283 Times in 261 Posts
    Rep Power
    108

    Re: HTA For Controlling Workstation Internet Access

    I have tried this before and found you couldnt launch Internet explorer that way. Maybe I was missing something but I was only experimenting so I didnt look into it to much.

  4. #34

    Join Date
    Oct 2005
    Location
    Corpus Christi Sports College
    Posts
    153
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: HTA For Controlling Workstation Internet Access

    I put the /I in and it did work, however as always I found a problem with it and that was that the gpo settings are not applied. Therefore the page doesn't load as it doesn't have the correct settings and if the connection did work then the students would have full access to IE.

    Do I have to put a load of crazy lines of code into my script now to make it work ?

  5. #35
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,013
    Thank Post
    120
    Thanked 283 Times in 261 Posts
    Rep Power
    108

    Re: HTA For Controlling Workstation Internet Access

    Now I think about it my problem was it didnt load the page I wanted it to. What Exactly are you trying to do? and how are you stoppping them going any further than this page?

  6. #36

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    640
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324

    Re: HTA For Controlling Workstation Internet Access

    By the way, you can run IE in fullscreen mode so they can't click close (only ALT+F4) with no address bar, by passing the -k switch to iexplore.exe, thus:

    Code:
    "C:\Program Files\Internet Explorer\IEXPLORE.EXE" -k "http://www.example.com"

  7. #37

    Join Date
    Mar 2006
    Posts
    5
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: HTA For Controlling Workstation Internet Access

    Re the request for a clean up script- I'm going to put it here in a simple readable form, as I haven't seen how to attach a file yet etc. Please move/ copy to relevant area if required.
    There is some redundant instalation code in there,mainly at the front.

    @echo off
    :************************************************* ****************
    :*
    :* This script is designed to tidy up WinXP and Win2k client machines
    :*
    :* Ver: 1.2
    :* Date: 01/04/04
    :*
    :************************************************* ****************

    :************************************************* ****************
    :Set the time of the computer to that of the domain controller
    :************************************************* ****************
    echo Setting the time
    net time /domain:boys /set /y


    :************************************************* ****************
    :flowol fix
    :************************************************* ****************

    rem \\boys.jktc.uk\home\Software\Flowol2\Install_Mimic _Creator\Setup.exe
    rem \\boys.jktc.uk\home\Software\Flowol2\Install_Mimic _Creator\SetupEx.exe
    xcopy /c/r/y \\ict_srv1\netlogon\flowol2_Default.ini %windir%\flowol2.ini

    :************************************************* ****************
    :merge in useful registry entries
    :************************************************* ****************
    echo adding registry entries
    regedit.exe /s "\\ict_srv1\NETLOGON\Standard_Student.reg"
    ause

    :************************************************* ****************
    :copy JKBTC Wallpapers
    :************************************************* ****************
    c:
    cd c:\
    if exist c:\wallpapers goto SkipWall

    echo copying Wallpapers
    xcopy "\\ict_srv1\NETLOGON\Wallpapers" "C:\Wallpapers\" /h /r /c /y
    ause

    :SkipWall

    :************************************************* ****************
    : install qca exams
    :************************************************* ****************
    rem "\\boys.jktc.uk\Software\QCATest2005\KS3ICT-2005-P-ABC 2215\KS3ICT-2005-P-ABC 2215.msi" /q
    rem "\\boys.jktc.uk\Software\QCATest2005\KS3ICT-2005-P-FMA 3084\KS3ICT-2005-P-FMA 3084.msi" /q
    rem "\\boys.jktc.uk\Software\QCATest2005\KS3ICT-2005-P-FMB 3084\KS3ICT-2005-P-FMB 3084.msi" /q
    rem "\\boys.jktc.uk\Software\QCATest2005\KS3ICT-2005-S-PRE 1430\KS3ICT-2005-S-PRE 1430.msi" /q

    :************************************************* ****************
    :copy special version of MS Paint
    :************************************************* ****************
    rem c:
    rem cd c:\
    rem echo copying MS Paint (Special Version)
    rem xcopy "\\ict_svr\1111 config files\hex edits for apps\mspaint.exe" %windir%\system32\dllcache\mspaint.exe /h /r /c /y
    rem xcopy "\\ict_svr\1111 config files\hex edits for apps\mspaint.exe" %windir%\system32\mspaint.exe /h /r /c /y
    ause

    :************************************************* ****************
    : Move to location for "profiles" and remove old profiles
    :************************************************* ****************
    echo "Removing profiles"

    cd "c:\Documents and Settings"

    if exist DeleteFolders.log del /Q DeleteFolders.log

    : Hide foldes we want to keep
    attrib +H Admin*
    attrib +H "Default User"
    attrib +H "Default User (Network)"
    attrib +H "All Users"
    attrib +H sweepupd
    attrib +H Clean*.

    ause

    : Get list of visible folders. These are the ones we delete
    dir /b >> DeleteFolders.log

    FOR /F "tokens=*" %%A in (DeleteFolders.log) do rmdir /S /Q "%%A"

    if exist DeleteFolders.log del /Q DeleteFolders.log

    ause

    :Unhide the folders

    attrib -H Admin*
    :attrib -H "Default User"
    :attrib -H "Default User (Network)"
    attrib -H "All Users"
    attrib -H sweepupd
    attrib -H Clean*.

    ause

    :************************************************* ****************
    elete some temporary files (Windows and Internet Explorer)
    :************************************************* ****************
    echo Delete temporary files
    del /q /s "c:\Documents and Settings\Admin\local settings\Temporary internet files\*.*"
    del /q /s "c:\Documents and Settings\Admin\local settings\Temp\*.*"
    del /q /s "c:\Documents and Settings\Administrator\local settings\Temporary internet files\*.*"
    del /q /s "c:\Documents and Settings\Administrator\local settings\Temp\*.*"

    ause

    :************************************************* ****************
    : Hide various important folders and files in top level of C:
    :************************************************* ****************
    echo tidy up c:\
    cd C:\

    attrib +H "Documents and Settings"
    attrib +H "Program Files"
    attrib +H "RECYCLER"
    attrib +H "System Volume Information"
    attrib +H "%windir%"
    attrib +H "arcldr.exe"
    attrib +H "arcsetup.exe"
    attrib +H "AUTOEXEC.bat"
    attrib +H "boot.ini"
    attrib +H "CONFIG.SYS"
    attrib +H "IO.SYS"
    attrib +H "MSDOS.SYS"
    attrib +H "ntldr*"
    attrib +H "pagefile.sys"

    ause

    :************************************************* ****************
    : Tidy up the contents of the top level of the C:
    :************************************************* ****************
    cd c:\

    del c:\*.jif
    del c:\*.txt
    del c:\*.tmp
    del c:\*.doc
    del c:\*.xls
    del c:\*.pub
    del c:\*.bmp
    del c:\*.jpg
    del c:\*.zip
    del c:\*.gbc
    del c:\*.wma
    del c:\*.wav
    del c:\*.mp3
    del c:\*.mpeg
    del c:\*.mpga
    del c:\*.avi
    del c:\*.wa_
    del c:\*.rm_
    del c:\*.pdf
    del c:\*.htm
    del c:\*.html
    del c:\*.theme
    del c:\newfol~1\*.* /Q /S
    rd c:\newfol~1 /Q /S
    del c:\~

    ause

    :************************************************* ****************
    : Tidy up the Temp directory
    :************************************************* ****************
    echo Tidy up Temp dir etc
    del c:\temp\*.* /Q /S
    rd c:\temp\ /Q /S
    md c:\Temp

    del %windir%\temp\*.* /Q /S
    rd %windir%\temp\ /Q /S
    md %windir%\Temp

    :************************************************* ****************
    : Tidy up "Program Files"
    :************************************************* ****************
    del c:\progra~1\*.pub
    del c:\progra~1\*.doc
    del c:\progra~1\*.xls

    :************************************************* ****************
    : Tidy up "Windows directory"
    :************************************************* ****************
    cd %windir%
    del %windir%\*.txt
    del %windir%\*.tmp
    del %windir%\*.doc
    del %windir%\*.xls
    del %windir%\*.pub
    del %windir%\*.cdr
    del %windir%\*.acl
    del %windir%\*.pcb
    del %windir%\*.asd
    del %windir%\*.jpg
    del %windir%\*.gif
    del %windir%\*.cct
    del %windir%\*.dmp
    del %windir%\*.wma
    del %windir%\*.zip
    del %windir%\*.gbc
    del %windir%\*.mp3
    del %windir%\*.mpeg
    del %windir%\*.mpga
    del %windir%\*.avi
    del %windir%\*.wa_
    del %windir%\*.rm_
    del %windir%\*.pdf
    del %windir%\~

    ause

    :************************************************* ****************
    : logoff from the machine
    :************************************************* ****************
    if NOT exist %windir%\system32\down.exe xcopy \\ict_srv1\NETLOGON\down.exe %windir%\system32\ /h /r /c /y
    ause
    %windir%\system32\down hostname /R /Q 20 "Rebooting this machine"

  8. #38
    daveyboy's Avatar
    Join Date
    Jun 2005
    Location
    Bath / Bristol
    Posts
    279
    Thank Post
    37
    Thanked 19 Times in 17 Posts
    Rep Power
    22

    Re: HTA For Controlling Workstation Internet Access

    Why not just import a reg key giving a null proxy?


    WinGuides

  9. #39

    webman's Avatar
    Join Date
    Nov 2005
    Location
    North East England
    Posts
    8,406
    Thank Post
    640
    Thanked 961 Times in 661 Posts
    Blog Entries
    2
    Rep Power
    324

    Re: HTA For Controlling Workstation Internet Access

    @daveyboy: My reason for not doing this is that it would deny teachers (for example) access as well.

SHARE:
+ Post New Thread
Page 3 of 3 FirstFirst 123

Similar Threads

  1. Enable/Disable workstation internet access from shortcut
    By the_mighty_boosh in forum Netware
    Replies: 3
    Last Post: 28th January 2011, 09:34 AM
  2. Replies: 4
    Last Post: 17th January 2011, 02:36 PM
  3. disabling Internet Access help!
    By Gardinho in forum Windows
    Replies: 3
    Last Post: 5th July 2007, 02:17 PM
  4. Internet Access Captchas
    By pete in forum Jokes/Interweb Things
    Replies: 0
    Last Post: 5th April 2007, 07:02 PM
  5. Controlling the Internet
    By neilenormal in forum Educational Software
    Replies: 8
    Last Post: 13th November 2005, 11:58 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •