Actually normal users typically don't have rights to write in the
policy section of HKCU either on purpose.
 
Without being Golf happy this will work fine except perhaps for permissions
 
Code:

$RC = WriteValue('HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\System','DontDisplayLastUserName',0,REG_SZ)