What if you tried pushing the logoff task to the RunOnce reg key?
Maybe a GPO script is not the best place for this.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.