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.
- Tiago Coelho LossCopper Contributor
Thank you.
Will this bug be fixed before the RTM version? - Alan CRCopper ContributorHave 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.
- Stefan KonijnCopper Contributor
I had the same problem but in Powershell.
calling the $env:username variable returned the "SYSTEM" as username
(currently running build 17713).