I need help with script that pulls all profiles from a list of servers that has not been logged in for the past 48 hours and remove it, but to exclude a few profiles.
I would like to use the $PServers to specify the servers ex below
How do I use the WMI command to pull profiles that has not been used within the last 48 hours?
Do I just use the filter to filter out the profiles I don't want to remove? Would it be easier to put all the profiles I want to be excluded in a string?
Profiles I don't want to remove : Administrator, Ctx_StreamingSvc , Public
Hidden profiles: All Users, Default, Default Users
How would you guys script this request?