Can anyone provide a script or some links for searching AD for all accounts that expired yesterday?
Once I have these accounts I have a script that will disable / move the account to a specified OU.
Thanks
Edit -
I can get the expiry date and then use the following code to change it to a...
I have written a function that will take a DN and only output the CN.
This works fine, however when I add this to my main script (It pulls back usernames of users who have an expiry date) I get error -
Invalid Use of Null
Please be aware I am new to scripting so the script my not follow the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.