Scripting help- using the Scripting Guys scrips

Discussion in 'Windows Small Business Server' started by DJK, Dec 24, 2005.

  1. DJK

    DJK Guest

    Can anyone help me implement this script:


    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.Namespace(TEMPORARY_INTERNET_FILES)
    Set objFolderItem = objFolder.Self
    strPath = objFolderItem.Path & "\*.*"

    Set objFSO = CreateObject("Scripting.FileSystemObject")

    It is for deleting the temp internet files obviously. The problem is, what
    do I save it as to get it to work? I tried vbs and bat but it doesn't work.
    DJK, Dec 24, 2005
    1. Advertisements

  2. Why do this with a script, since with SBS you can do it through Group

    From either Computer or User Configuration, drill down Administrative
    Templates > Internet Explorer > Internet Control Panel > Advanced Page

    and look for the object 'Empty Temp Internet Files folder when browser is
    Kevin Weilbacher [SBS-MVP], Dec 25, 2005
    1. Advertisements

  3. Do you know how to use the script?

    davidjkinsella, Dec 25, 2005
  4. DJK

    Thomas Kragh Guest


    I strongly recommend using the GP method - but I think I have the
    information you need.

    You have to save it as a .vbs file (this is the normal since it is from the
    scripting guys)

    Everyone can read more about your scipt here:

    To implement the deletion each time a user logs on the workstation you can
    do this:
    Find a file called SBS_LOGIN_SCRIPT.bat on your SBS.
    (It should be placed in: C:\WINDOWS\SYSVOL\sysvol\"yourdomainname"\SCRIPTS)

    If you script is called deletetemp.vbs you add this filename to

    I think your SBS_LOGIN_SCRIPT.bat would look like this:
    \\"yourservername"\Clients\Setup\setup.exe /s SBS2003

    Maybe you will get errors on your workstation from the Antispyware program
    (Like Microsoft Antispyware) and your antivirusprogram (I hope you have both
    installed). You wont have problems like that using a Group Police (so please
    use the GP method).

    Another info: In the SBS_LOGIN_SCRIPT.bat you can also map network drives
    and map old DOS printers using the NET USE command. (Write NET USE /? in DOS
    to read more about this topic)

    I hope this cleared something for you.

    /Thomas Kragh

    Thomas Kragh, Dec 25, 2005
  5. DJK

    Mal Osborne Guest

    Setting that with a GPO is problematic if you are using roaming profiles.

    Mal Osborne
    MCSE MVP Mensa

    Mal Osborne, Dec 27, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.