Error handling variable% USERNAME% Windows Server 2019 Preview build - 17713 17723

New Contributor


The %USERNAME% environment variable does not return the logged-in user. Example: Administrator => SYSTEM

 

Image attached.

3 Replies

I had the same problem but in Powershell.

calling the $env:username variable returned the "SYSTEM" as username

 

(currently running build 17713).

 

 

Have same $env:username with 17723 (logged on as Administrator). Also tried running the Windows Update troubleshooter for something else and got a pop-up "Windows could not access.." ..\system32\msdt.exe.

Thank you.

Will this bug be fixed before the RTM version?