Run as Local System User.
1. Change the parameter of the variable days to total amount of days you want to check. For e.g days = 10
2. Change the parameter of the variable Exclude_list to user accounts name whose account should not be deactivated. For example
* If you want to exclude one user just give [user1]
* If you want to exclude more than one user just give [user1,user2,user3]
* If you dont want to exclude any user just give [ ].