Jazzy,
Being as nosey as I am, I will critique your methodology. Somehow the idea of renaming a computer based on who logs in doesn't sit well with me. Personally, I whould collect data on the PCs and users for a while. Then I would compile a table of name changes and lookup the names in the table for the change.

The table could be as simple as an INI file you could query with ReadProfileString() and contain OldName=NewName.

Just my $.02 (in Canadian dollars)

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.