First a confession, I am still quite green with powershell. Anyway I have a powershell script, very similar to PowerShell Script to Loop Over All Users in a Group
It has been working fine (the script looks for members of a group and sets an AD attribute etc. It has been working fine for some time and about 2500 users processed but recently it failed) format-default : The following exception occurred while retrieving member "PSComputerName": "Unknown error (0x80005000)"
There is one user which causes the error. My question is how do I get powershell to trap this error\ignore it and carry on working?
Thanks