I have had this problem for some time. I have set up a Windows IIS. But I would like to read the Windows username of the person who calls the page.
On other sites there is as solution: $_SERVER['REMOTE_USER']; But this did not work for me. I guess because the user who calls the page is an anonymous user. As an idea to solve this, I turned on authentication in Windows IIS Manager. IIS-Manager Authentication
But that didn't solve my problem either. My question now is: Does anyone have an idea how I could solve this problem?