When trying to customize my command prompt I faced a strange behaviour:
from the CMD the line
SET set prompt=$D $T$H$H$H$_%USERNAME%@%COMPUTERNAME%$_$P$G
works as expected:
28/05/2020 12:02:15
DDS@DDS-PC
C:\Users\DDS>
But if I set the same variable EDIT: (in "variable for user DDS") with the very same values from the windows utility to set variables I got:
28/05/2020 12:04:18
SYSTEM@DDS-PC
C:\Users\DDS>
NOTE: the utility itself is showing the value correctly DDS when editing the variables, just the command prompt resolves %USERNAME%
to SYSTEM