Jump to content

Kbelcher

Members
  • Posts

    2
  • Joined

  • Last visited

Kbelcher's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I just thought I would add that I have each of the 50 or so pieces of code in separate text files right now...don't know if there is an easier way to go about the whole process but am open to any and all suggestions.
  2. Hello All, I am new to scripting in AutoIt and am having some troubles. I am using JoeWare's adfind.exe and admod.exe AD tools to modify User/Computer object attributes. Currently I open a command prompt where the .exe's are located and run the following command: adfind.exe -b -default -rb "ou=Printers,ou=Anaconda,ou=OPD,ou=DOA" -f "&(objectCategory=computer)(!doaITSDBillingClient=EXE-OPD-610805-OPD_20520)" -dsq | admod.exe "doaITSDBillingClient::EXE-OPD-610805-OPD_20520" -unsafe Basically it searches a defined OU for computer objects and pipes the results into the modification tool. I have about 50 similar commands to run on different OUs and object types so I would like to get them all into one script. Currently I have attempted using the following code in an AutoIt script, but it is not working: RunWait(@ComSpec & '"C:\ADTools\adfind.exe -b -default -rb "ou=Printers,ou=Anaconda,ou=OPD,ou=DOA" -f "&(objectCategory=computer)(!doaITSDBillingClient=EXE-OPD-610805-OPD_20520)" -dsq | admod.exe "doaITSDBillingClient::EXE-OPD-610805-OPD_20520" -unsafe"') Any help you can provide me as a n00b is greatly appreciated. Cheers
×
×
  • Create New...