Hi, the script will only create the file if there *is* something in the wwwHomePage attribute.
If I remember correctly, when the user finishes viewing the PPT, you will write a value into the wwwHomePage attribute.
So, here is what the script currently does:
1) If the current date is past the cut off date, do nothing.
2) If the cutoff date has not been reached, and there is no wwwHomePage value (that is, the user has NOT viewed the PPT), then show the PPT.
3) If the cutoff date has not been reached, and there is a wwwHomePage value (that is, the user HAS viewed the PPT), then write to the file to inform Admins to disable the account.
Reading that, I don't think that's actually what you need. Here is what I think you do need:
1) If there is NOT a value in wwwHomePage, and the cutoff date has not been reached, show the PPT
2) If there is NOT a value in wwwHomePage, and the cutoff date has been reached, write to the file to disable the account.
3) If there IS a value in wwwHomePage, do nothing, because the PPT has been viewed
So, I have re-ordered the script to suit that.
What I have realised you will need to do, is run the script I gave you to read the Disabled user accounts, on a daily basis, or maybe more if you like, because the user accounts won't be written there until each user logs in, and this may take a while if you have users away for a while.
Also, feel free to test this before closing the question. You are welcome to ask for clarification and fixes, if this does not do what you need.
Regards,
Rob.