Forum Discussion
Tiago Coelho Loss
Jul 31, 2018Copper Contributor
Error handling variable% USERNAME% Windows Server 2019 Preview build - 17713 17723
The %USERNAME% environment variable does not return the logged-in user. Example: Administrator => SYSTEM Image attached.
Stefan Konijn
Aug 01, 2018Copper Contributor
I had the same problem but in Powershell.
calling the $env:username variable returned the "SYSTEM" as username
(currently running build 17713).