Finally reached my wits end.

On Zenworks 7 we have a registry edit function which uses the environmental variable %USERNAME% to put the users login name into a registry string as a value and it works fine.

Doing this on ZENWORKS11 has turned into a nightmare as for some reason, Zenworks 11 translates it as the computers name.

I have found the list of $(xxx) variable in Zenworks documentation, but none of them refer to the user name. I have tried


Please can anyone advise how I can get the users login name as a registry string value