Jump to content

jowen

Member
  • Posts

    5
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Posts posted by jowen

  1. I have the following error after my login script as processed;

    Code 800A01AD - ActiveX component can't create object: 'Scripting.FileSystemObject' which refers to line 15 of my script;

    Option Explicit

    Dim objNetwork, strUNCPrinter, bForce, bUpdateProfile, loop_counter

    Dim strDriveLetter, fs, WinDir, strComputer, GroupObj, WSHPrinters

    Dim WSHShell, WSHNetwork, objDomain, DomainString, UserString, UserObj, Path

    Dim hp_present, mc_present, lp_present, hp2_present

    Set objNetwork = CreateObject("WScript.Network")

    ' wscript.echo "Starting"

    !! THIS LINE!!Set fs = CreateObject("Scripting.FileSystemObject")

    I have wscript version 5.6 and running server 2003 R2 64 bit SP2, any ideas??

    Many thanks Jo

  2. I have inherited a generic login script for our users on site and I want to migrate their printers onto a new print server. In testing this I have added an existing q from the functional and current print server to the new print server and manually added the printer from the new print server all works fine. However I now want to push out the print mappings through the login script and it will not see my new printer or map to it. I have also created a manual VBS file to map to the new print server q and again it states printer not found. I think my syntax is correct but any help would be appreciated my script shows this;

    '

    ' Printers.vbs - Windows Logon Script.

    Set objNetwork = CreateObject("WScript.Network")

    objNetwork.AddWindowsPrinterConnection "\\pilgrims-two\colorICT."

    My printer is shared out as ColorICT and the server is pilgrims-two, any ideas??

    Many thanks

    Jo

×
×
  • Create New...