AD Description Field: Search/Parse
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
AD Description Field: Search/Parse
I am looking to find an easy repeatable way to search for a date found in the description field for computers. Commonly this date is in between text but is seperated by a ":" in each description field. For example it may be: "Comment:01/25/2013:Comment". I am looking to search for computers with 01/25/2013 in the description field, and next level something like today - 60, whatever date that is see if is in any description fields. Hope someone can help. Thanks.
AD Description Field: Search/Parse
Not an issue. Are you talking about AD description field?
We can retrieve the computer object and then use RegEx to extract the date from the description.
We can also use LDAP filters to match the date.
(description=*1/25/2013*)
This, combined with objectClass can find that string.
We can retrieve the computer object and then use RegEx to extract the date from the description.
We can also use LDAP filters to match the date.
(description=*1/25/2013*)
This, combined with objectClass can find that string.
AD Description Field: Search/Parse
I can try to use that in my current filter (Yes description field for AD computer object). How could I change that from a hard coded string like the date to something like today - 30 = date to search for in the description field.