Script to check if a user has a profile on a server
Posted on 2013-01-24
We have 200+ Windows 2008 and 2008 R2 servers and about 150 tech support personnel who can log into the server. Our tech support personnel roster has a high turnover, so when someone leaves the company, we have the possibility of checking these 200+ servers for local profiles of the tech support personnel and then deleting them.
Since this is a ridiculously tedious process, we want to script this somehow. All the servers belong to one domain, so I'm thinking checking AD for a server list and then running this server list against the username of the tech support guy who left. And then we could potentially script the deletion of the profile or go in manually (script is preferrable).
Please don't tell me to use roaming profiles or folder redirection as my solution. That is in the process but due to the complexity of our environment is not an easy deployment. Any suggestions?