My apoligies NTDOC;

What I need to do is check the computer naming convention to see if it matches the users login name (@USERID), if not exit the function. Then I need to check if the srvcomment value in the registry key matches the users full name or not (@FULLNAME), if so exit the function. If neither are met write the value into the registry key.

I'm sorry if that's confusing. There just needs to be some sort of error handling for what I'm trying to accomplish and my options are unfortunately limited.