So I can't believe I spent so much time on this and this is the final culprit:

$Result = SetOption("Wow64FileRedirection", "OFF")

That was being turned off in a script that executed before this one. And for some reason that option is breaking a lot of stuff. Not only does it break everything I was trying to do with the logon logging, it also breaks the @FULLNAME macro (which I subsequently found a fix for with the TranslateName UDF).


The the fix is...

$Result = SetOption("Wow64FileRedirection", "ON")

Edited by syntax53 (2012-09-10 08:29 PM)