jowen
Content Type
Profiles
Forums
Events
Posts posted by jowen
-
-
thanks,this isn't my script I've inherited it and your right this doesn't run after login, I am coming to conclusion to rewrite the entire script will be quicker in the long run than pickng my way through problems. Its' not dim'd out in the script I just put the remark to show which line is failing.
0 -
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
0 -
AdamT, many many thanks, works a treat adding the path to the variable! Jo
0 -
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
0
ActiveX component can't create object
in Programming (C++, Delphi, VB/VBS, CMD/batch, etc.)
Posted
Whoops hope I haven't started an angry debate with this one. Thanks for all your comments, I'm probably going to go away andjust write a basic batch file now for my logins :0)