A possible unrelated solution...

 Code:
$nul = WriteValue("HKLM\Software\Microsoft\CurrentVersion\Policies\System","DisplayLastLogonInfo","1","REG_DWORD")