Hey everyone. I’m just starting with powershell and while this script may never actually be used (I’m a lowly help desker) I’m using my tasks that are semi common to see if I can streamline them with powershell.
My current attempt is to automate our corrupted profile procedure.
I’m aware of the get-wmiObject method which might be part of my solution. However the part I’m having trouble with is our procedure along with removing the profile through the GUI is also to check the registry for remnants of the profile.
The process involves looking through .profilelist and profileguid for remnants.
The place I’m having trouble is checking in profilelist to see if a given username still has a profile folder on the drive. I’ve tried doing a get-childitem -include username along with a few other similar variations but no luck.
I’m not looking for an exact answer or full solution (those are already available on google) but just some guidance on options
submitted by /u/akuthia
[link] [comments]
The post Searching registry keys for matches appeared first on How to Code .NET.