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 bkrike 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

    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?
  7. 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
  8. 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...
  9. 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?
  10. 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?
  11. 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...
  12. 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...
  13. 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...
  14. 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}!\\" &_...
  15. Stephon98caffe

    Calling a VB script within a VB Script

    I was wondering if it is possible to start a VB script within one that is excuting.
  16. Stephon98caffe

    Trying to cast array of strings to string

    I keep getting the error Mismatch types computersInOU is a array of computer names from an OU. I would just like to be able to put on computer name at time in the string strComputer and then send strComputer to the function IsConnectible. For each x in computersInOU strComputer = x If...
  17. Stephon98caffe

    How do you ping everthing in a certain OU

    My job would like to have the capability to ping every machine in a certain OU. I have seen methods of reading in a file with all the computer names, but a file like of just names is to long to maintain. I would like to be able to supply a OU and just ping all the machine names in that OU. Is...

Part and Inventory Search

Back
Top