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. Stephon98caffe

    List printers on print server

    My boss has asked me to supply a number of how many printers are located per building. Is there a way to run a script on a print server so that it list the printer name and its Ip Address. It would be easy to count b/c the buildings are broke down by IP range.
  2. Stephon98caffe

    Print group members to a excel spreed sheet

    I am looking for a simple script to print a AD groups members to an excel spread sheet.
  3. Stephon98caffe

    Search global catalog

    I would like to create script that will search my global catalog and determine whether the user exist. I would like to print the list back out stating whether it was accepted or not. Does any one know the command to search the "GC"? The list is in this format: Smith, Steven J.
  4. Stephon98caffe

    How do you break down a username?

    I need to write a script for my boss that will take a username ie vacosmiths1. And remove the vaco from the username and leave me with smiths1.
  5. Stephon98caffe

    restrict users ability to save to local drives

    I have been asked to create a GPO that restricts users ability to save docs to the C drive. So far I have created a GPO with the following settings. *loopback enable in computer settings set for replace * folder redirection for documents and application data pointing to their user folders...
  6. Stephon98caffe

    remove quotations mark

    thanks
  7. Stephon98caffe

    How would you determine the OS a device is running.

    I have a list of computers and need to determine what type of OS they have on them. CN=COCL28I-1 ,OU=Computers,OU=ITSS,OU=VACO,DC=dva,DC=va,DC=gov I have not had much practice using getObject("wingmts:// what would I need to print what type of OS cocl28-I has?
  8. Stephon98caffe

    remove quotations mark

    I have a file of computer names that look like this "CN=COCL28I,OU=Computers,OU=ITSS,OU=VACO,DC=dva,DC=va,DC=gov" The quotation marks are at the front and end of string I need to remove them so I can pass this string to the LDAP Is there a command to remove chars
  9. Stephon98caffe

    created multiple excel sheets with no duplicates

    Ok I must be doing something wrong. I tried to do a simple example and I get this error Err: Object required:"ActiveWorkBook' @ line 6 If I can get the excel sheet to do what I want I think I will be ok. ' VB Script Document Dim objXL, myWS, strTitle1 Set objXL =...
  10. Stephon98caffe

    created multiple excel sheets with no duplicates

    now I can do this with each OU? How would I add something to each OU. Or should I say go back in forth. Say I add to ORM spread sheet 2 entries and I need to add something to NOC? Now is myWS the entire workbook? Set myWS = objXL.ActiveWorkbook.Worksheets.Add() myWS.Name = "OU name"
  11. Stephon98caffe

    created multiple excel sheets with no duplicates

    But How would I go about creating spread sheets for each OU?
  12. Stephon98caffe

    created multiple excel sheets with no duplicates

    This program reads a file with out of date workstations. The workstations are in different OU and I want to list the workstations by OU's in different Excel sheets. I can not seem to figure out how to create spread sheets for each OU's list of Workstations. I have to be able to create the...
  13. Stephon98caffe

    Refererence for entire VB Script

    Are there any good free sites that have a list of all the different object collection for VBScript and description of what each object does?
  14. Stephon98caffe

    How do you add a worksheet to a workbook in excel using .vbs

    I know how to open an excel spread sheet using .vbs. I have a huge list of data but I want to separate each OU on the same workbook but on different sheets. How do you access each sheet within a workbook?
  15. Stephon98caffe

    Parse AD computer names to excel sheet

    The code you provided captures the "=". How would I take the "=" sign out "CN=DUB13520163-L,OU=Computers,OU=ORM,DC=dva,DC=va,DC=gov" what actually does the Mid( , ) work? arTmp = Split(strLine, ",") strCN = Mid(arTmp(0), 4) strOU = Mid(arTmp(3), 4)
  16. Stephon98caffe

    Error message

    Is there something wrong with this code? I get this error message. ' VB Script Document Dim objFile, strGuyFile, strFilePath strFilePath = "c:\temp\outofdate.txt" 'opens file Set objFile = CreateObject("Scripting.FileSystemObject") '****Invalid procedure call or argument**** Set strGuyFile...
  17. Stephon98caffe

    Parse AD computer names to excel sheet

    My job would like me to parse a file that contains a list of computer names in the following format: "CN=DUB13520163-L,OU=Computers,OU=ORM,DC=dva,DC=va,DC=gov" "CN=co0828-01,OU=VHACO Laptops,OU=VHA,DC=dva,DC=va,DC=gov" I was wondering if anyone knew a better logic of parsing this information...
  18. Stephon98caffe

    Changing permission of a registry

    I would like to delete the contents of a registry using a script. I think my logic is correct but it won't delete contents. For some reason this statement Return = objReg3.DeleteKey(HKU, strKeyPath3) does not return 0. I also think there is a problem with permission on the object that won't...
  19. Stephon98caffe

    DeleteKey in registry

    no error occurs it just doesn't delete registry folder. I think it is a permission issue b/c folder is only read access for
  20. Stephon98caffe

    DeleteKey in registry

    The registry is not delete once I go into regedit. Does the code I have looking right On Error Resume Next Const HKU = &H80000003 strComputer = "." Set StdOut = CreateObject("WScript.StdOut") sMethod = "DeleteKey" Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_...

Part and Inventory Search

Back
Top