I am looking at deleting all user profiles that have not been used in over 10 days. I saw previous examples that used the $ _. Special option but that is not working for me. Also the lastusetime does not work, for some reason it is displaying them all as being accessed within the last day. I do not have the option to use group policy either.<\/p>\n
and I just need to run it against a list of profile names that I have in a text file. This is what i have so far but I need to remove or change the -eq to ru against the actual list of profiles.<\/p>\n
Any help would be great<\/p>","upvoteCount":2,"answerCount":16,"datePublished":"2022-02-25T19:09:54.000Z","author":{"@type":"Person","name":"spiceuser-dlbl2","url":"https://community.spiceworks.com/u/spiceuser-dlbl2"},"acceptedAnswer":{"@type":"Answer","text":"
There is controls in the environment that I think are stopping me from doing this. Since the NOC controls my life I can not do anything about it. You were all very helpful though.<\/p>","upvoteCount":0,"datePublished":"2022-03-04T16:28:31.000Z","url":"https://community.spiceworks.com/t/delete-list-of-user-profiles/826166/16","author":{"@type":"Person","name":"spiceuser-dlbl2","url":"https://community.spiceworks.com/u/spiceuser-dlbl2"}},"suggestedAnswer":[{"@type":"Answer","text":"
I am looking at deleting all user profiles that have not been used in over 10 days. I saw previous examples that used the $ _. Special option but that is not working for me. Also the lastusetime does not work, for some reason it is displaying them all as being accessed within the last day. I do not have the option to use group policy either.<\/p>\n
and I just need to run it against a list of profile names that I have in a text file. This is what i have so far but I need to remove or change the -eq to ru against the actual list of profiles.<\/p>\n
Any help would be great<\/p>","upvoteCount":2,"datePublished":"2022-02-25T19:09:55.000Z","url":"https://community.spiceworks.com/t/delete-list-of-user-profiles/826166/1","author":{"@type":"Person","name":"spiceuser-dlbl2","url":"https://community.spiceworks.com/u/spiceuser-dlbl2"}},{"@type":"Answer","text":"