jefmelkenbeek
asked on
Delete bulk AD account from text file
Hi,
Can someone help me with a script? I need a script to delete bulk AD contacts from text file. In text file the script has to read line by line. On each line there is a proxyaddress, the script has to find these proxyaddresses in AD and after delete it.
regards,
Jef
Can someone help me with a script? I need a script to delete bulk AD contacts from text file. In text file the script has to read line by line. On each line there is a proxyaddress, the script has to find these proxyaddresses in AD and after delete it.
regards,
Jef
ASKER
hello,
this is not what I'm looking for. I have already seen many bulk tools, but i have my own order of attributes in my csv or text file.
this is not what I'm looking for. I have already seen many bulk tools, but i have my own order of attributes in my csv or text file.
ASKER
I was looking for another answer.
Is it possible to refund the points back?
Is it possible to refund the points back?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
* Now in the above script;
* In line number 4: Replace the OU and domain structure as per your organization
* In line number 5: Replace the input file name and path for the same with your input file.
* In Line number 12, the attribute that has been taken into consideration is the Cannonical Name (CN) of the user property. Here you can replace it with any of the attributes that you want or is there in the input text file for the users; i.e. it may be the "mail" attribute (for email address) or the DN attribute for the distinguished name etc.
* And finally to see what all attributes for a user object is supported you can use a low level editing tool like ADSIEdit.msc and then using it drill down to the user obect as depicted in the ADUC console (you would find it in the domain partition part of the Adsiedit console) and the right click on that user and say properties and there check the box which says attributes with values and you can find all the attributes there.
Hope this helps (^_^)
* In line number 4: Replace the OU and domain structure as per your organization
* In line number 5: Replace the input file name and path for the same with your input file.
* In Line number 12, the attribute that has been taken into consideration is the Cannonical Name (CN) of the user property. Here you can replace it with any of the attributes that you want or is there in the input text file for the users; i.e. it may be the "mail" attribute (for email address) or the DN attribute for the distinguished name etc.
* And finally to see what all attributes for a user object is supported you can use a low level editing tool like ADSIEdit.msc and then using it drill down to the user obect as depicted in the ADUC console (you would find it in the domain partition part of the Adsiedit console) and the right click on that user and say properties and there check the box which says attributes with values and you can find all the attributes there.
Hope this helps (^_^)
ASKER
Hello Rudram,
thanks a lot for your reponse.I will test it tomorrow:) and will let you know the result.
regards
thanks a lot for your reponse.I will test it tomorrow:) and will let you know the result.
regards
ASKER
Thanks for your code :).
it did the trick
it did the trick
http://manageengine.adventnet.com/products/ad-manager/index.html
Good Luck (^_^)