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!

Search results for query: *

  1. djlax152

    Removing All Network Printers

    For those of you that are still curious about this script. This one really works. I only tested this on windows XP though not sure about 2000 '---------------------------------------------------- 'Remove all Network printers but not local printers Set WshNetwork =...
  2. djlax152

    Removing All Network Printers

    'Remove All Network Printers Set WSHPritners = WSHNetwork.EnumPrinterConnections For Loop_Counter = 0 To WSHPrinters.Count - 1 Step 2 If Left(WSHPrinters.Item(Loop_counter + 1),2) = "\\" then WSHNetwork.RemovePrinterConnection WSHPrinter.Items(Loop_Counter +1),True,T End If Next this...
  3. djlax152

    Removing All Network Printers

    Only problem is that i do not want to delete the local printers only the nework printers I am not sure how to use PRINTUI.dll
  4. djlax152

    Removing All Network Printers

    I need a Script that will remove all Network Printers stored on local machine. I have tried several that i found online and i can not get any of them to work! I want to inculde this small script before I map my printers so that they do not get messed up when my users see 5 printers.
  5. djlax152

    Wildcards maybe of use in this script ???

    okay Thank your for all of your help PHV !! & tsuji !!
  6. djlax152

    Wildcards maybe of use in this script ???

    DOes this mean that computernames that were named in lowercase will work also as loong as i put Ucase and 5001-CAPS ??
  7. djlax152

    Wildcards maybe of use in this script ???

    Hmm Its seeems to be ingnoring the Ucase because when i put If Left(ucase(computername),7) = "5001-ad" then it did not work no errors or anything just didnt map the printers when i put If Left(ucase(computername),7) = "5001-AD" then it did work! (notice the caps in AD)
  8. djlax152

    Wildcards maybe of use in this script ???

    'Map Printers for Shenandoah 'Drew Dorben Jan 28th '---------------------------' Option Explicit 'Declaring Variables Dim obj2200 Dim obj810c Dim unc2200CL Dim unc810ccl Dim Objcomputername Dim Computername DIM strComputer 'Set type Set obj2200 = CreateObject("Wscript.Network") Set obj810c...
  9. djlax152

    Wildcards maybe of use in this script ???

    Option Explicit 'Declaring Variables Dim obj2200 Dim obj810c Dim unc2200CL Dim unc810ccl Dim Objcomputername Dim Computername 'Set type Set obj2200 = CreateObject("Wscript.Network") Set obj810c = CreateObject("Wscript.Network") Set objcomputername = Wscript.CreateObject("Wscript.Network")...
  10. djlax152

    Wildcards maybe of use in this script ???

    Can you break that down for me a little bit more im not sure how i could incorp that with my script ? Thanks for the Patience (im still learning)
  11. djlax152

    Wildcards maybe of use in this script ???

    Something crossed my mind while i was writing this script, myabee you might know this. I was thinking since my computers are named 5001-CL<- followed by the computer number (CL standing for what room it is i.e computer Lab) that maybee instead of writing 5001-CL01 , CL02 , CL03, ect.. ect.. that...
  12. djlax152

    Using the IF statement and computername ??

    Okay for msgbox computername I get a popup with 5001-ADMIN01 FOR debug.print i get a windows script host ERROR Line 27 Char 1 Object doesnt support this property or Method 'Debug.Print' Code 800A01B6 Source Microsoft VBScript runtime error Sorry about posting in the wrong category i...
  13. djlax152

    Using the IF statement and computername ??

    Yeah actually i made a mistake when i posted the topic. It does actually look like if Computername = "5001-admin01" Then obj2200.AddWindowsPrinterConnection UNC2200cl obj810c.addwindowsprinterConnection Unc810ccl wscript.echo "Printers were connected successfully" End if Nothing happens...
  14. djlax152

    Using the IF statement and computername ??

    Okay according to out current domain sturcture i no longer have access to group policys. So i am trying to map my printers by way of a logon script. I have a naming scheme for my computers so this is what i want to do. I would like to script that uses an if statement that checks the...
  15. djlax152

    Setup Runtime files - failed

    did you ever find a fix for this ?? what did you do
  16. djlax152

    &quot;Error 619: The specified port is not connected&quot;

    mattwray - I don't know how to &quot;make sure port 1723 IP protocol 47 is open&quot; - Can this be done in the PDM? blin2000 - I'm not trying to let a VPN connection come inbound. I'm trying to establish a VPN connection via Microsoft's VPN adapter in DUN. Thanks for the info, but I'm still...
  17. djlax152

    Microsoft ODBC Driver Manager - Data source name not found

    you do not have the .dbf files in your odbc drivers i dont know where to get them either cause i tried installing all the options and it doesnt work
  18. djlax152

    Why Does ntoskrnl.exe always want to UDP to 169.254.255.255

    Does anyone know why ntoskrnl.exe always wants to connect to the internet my firewall always pickes it up and im not sure why it wants to go out Along with other windows files as well also want to broadcast out to the internet like (Generic hosts processes win 32 services), (NT Kernal &...

Part and Inventory Search

Back
Top