But it was a couple of sys admins that were testing and we know better.

I understand your point however and will change it to...
Code:

$Nul = MessageBox("This is your first time logging into a terminal server"+@CRLF+"You will be logged off in 10 seconds to finish updating your profile.","Notice",16)
Sleep 10
Logoff(1)



However this still does not address the issue of the logoff() not working as intended.

I did forget to add that this is running via GPO, if it makes any difference, and it is only a problem on Terminal Servers (well I haven't tested it on a regular domain logon).
_________________________
Today is the tomorrow you worried about yesterday.