I've set a Group Policy to remove user profiles not used for 30 days, they are training machines. This functions and removes them from the user profiles list (see borrowed image) but leaves the registry key and profile folder in C:\Users. A known 'feature' when using GP to remove profiles.
What's the easiest way to clean up these reg keys and old profile folders? Some old profile folders just contain an ntuser.dat file.
Preferred methods are Powershell, bat file or Autohotkey exe (that can be run remotely as Admin using PDQ) or other native Windows function.