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 SkipVought 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. yellowartist

    Script for Modifying Active Directory Accounts

    One more thing I have noticed is that it is starting a row 2 and working down from there. It completely skips row 1. Row 3 is empty.
  2. yellowartist

    Script for Modifying Active Directory Accounts

    I have made some changes, I have looked at that Spreadsheet file it is creating and it looks good. There are occassionally blanks like on the home drive field if they don't have a home drive. This hadn't caused a problem before. I am making it through the first loop on SUB ModifyAcct, and then...
  3. yellowartist

    Script for Modifying Active Directory Accounts

    I am writing a script that will enumerate members of Group1 and put their requested AD properties into a spreadsheet. The script will then bind to each user from that spreadsheet and make the requested modifications. I am having problems with making some of the modifications. Problems: 1. It...
  4. yellowartist

    VBS to install a printer in my LAN

    Check out this forum that I had... http://www.tek-tips.com/viewthread.cfm?qid=1410148&page=1 I was able to write a simple script to map a printer.
  5. yellowartist

    Script or Batch file to Install Printers

    Ok I got it to work... here is what I've done. strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set objNewPort = objWMIService.Get _ ("Win32_TCPIPPrinterPort").SpawnInstance_ objNewPort.Name =...
  6. yellowartist

    Script or Batch file to Install Printers

    I am wanting to create a script or a batch file that I can post on a intranet site that I can direct users to for printer installs. We like to have the printer installed as a local printer, with a tcp/ip port (this resolves both by the IP address or the name of the printer). Here is the code I...
  7. yellowartist

    Is it possible to remove groups by groupType?

    What I am trying to occomplish is I have a script that generagtes a list of users that are tied to a specific global group. From that list I want to go through all the users and remove them from any Distribution Lists. The group type is always Distributions list or 8 The Group Scope is...
  8. yellowartist

    Adding Contacts from a spreadsheet

    The field is added through our exchange piece, adding the Cstr(strAlias) worked. Thank you very much!!
  9. yellowartist

    Adding Contacts from a spreadsheet

    I have about 400 Contact cards I need to create. I am running into an error when creating the mailNickname. I want it to be a phone number however I get the following error. Line: 40 Char: 4 Error: Unspecified error Code: 80004005 Source: (null) It will work when I do...
  10. yellowartist

    Creating a HTA GUI for my VBScipts

    I am trying to add a GUI to run a few scripts from. I have decided to use HTA. I am not very familiar with HTA, and I'm getting better as VBScript. Here is the HTA code I have so far... <head> <title>Employee Separations</title> <HTA:APPLICATION APPLICATIONNAME="Employee Separations"...
  11. yellowartist

    Enumeration Groups a user is a memberof.

    Thanks for the simplified answer. I am curious then how this piece is working.... ' Add to Group If strougroup = False Then Set objgroup = GetObject("LDAP://" & Strougroup) objGroup.PutEx ADS_PROPERTY_APPEND, "member", Array(strdn) objGroup.SetInfo End If Thanks again!
  12. yellowartist

    Enumeration Groups a user is a memberof.

    Umm... no not really. Sorry.
  13. yellowartist

    Enumeration Groups a user is a memberof.

    Ok I'm pretty new at this, I do not see the problem? If "CN=PROXY_USERS,OU=Groups,OU=KBS,DC=Domain,DC=com" = True Then 1) Bind to the Group 2) Remove UserX from group End If Thats exactly what I'm wanting it to do.
  14. yellowartist

    Enumeration Groups a user is a memberof.

    Let me see if I can explain it a little better... There are three scripts I have wrote to occomplish what I am trying to acheive. Over all I am trying to list information about the members of a specific group (We'll call it XYZ) and then modify some attributes of each user account that is tied...
  15. yellowartist

    Enumeration Groups a user is a memberof.

    Strougroup and StrOUProxy are referenced to two groups. What I am trying to accomplish now is from that list of users in group 1 if the script finds they are in Strougroup do nothing, if not add them to strougroup. If the script finds them in StrOUProxy remove them from that group, if its not...
  16. yellowartist

    Enumeration Groups a user is a memberof.

    Ok I got that script to work. Here is what I did... Enumeration Groups a user is a memberof Option Explicit on error resume next Dim objGroup, objuser, objExcel, iRow, strUser, iCol dim strExcelPath, objApp, strGroupName strExcelPath = "\\Server\share\EmpSepScript\Work_Log.xls" set...
  17. yellowartist

    Enumeration Groups a user is a memberof.

    Join(objUser.proxyAddresses) That worked!! Now I just need some assistance getting it to cycle through all users in the group and list all the groups they are members of. Thanks for the help so far!!
  18. yellowartist

    Enumeration Groups a user is a memberof.

    I am trying to pull out a some attributes from a user's Active Directory account that is a member of a specific group and place it into a spreadsheet. I cannot get it to list the SMTP addresses and the groups. I also cannot get it to loop through all users. Here is the script. Option...
  19. yellowartist

    Is it possible to Modify the CN, NAME, and DN

    Is it possible using VBScript to modify the CN, Name, and Distinguished name for a list of users in Active Directory. I am trying to write a script to use when we separate employees. The standard now is to put the date they left infront of their name in active directory. I can get the display...

Part and Inventory Search

Back
Top