FSLogix Unable to access logging directory

Андрей Михалевский 3,301 Reputation points
2021-05-29T17:49:45.293+00:00

Hi.

I installed the folder(LogDir): \DATTUM-FS-03\FSLogix\Logs\%computername%

After restarting the server, the folder is created, but the logs do not appear

100684-1.png

I gave full rights to everyone
also gave full rights to domain computers, domain users

If change the directory to \DATTUM-FS-03\FSLogix\Logs\DATTUM-RDP-12

All logs appear.

What the problem?

Update:

I am testing further.

I replaced the computername with the username

Folders began to be created and logs were written.

I also have a policy enabled: Access network as computer

Maybe this is the problem?

But I still don't understand why the variable works with the %username%, but not with the %computername%.

FSLogix
FSLogix
A set of solutions that enhance, enable, and simplify non-persistent Windows computing environments and may also be used to create more portable computing sessions when using physical devices.
495 questions
0 comments No comments
{count} votes

11 answers

Sort by: Most helpful
  1. Андрей Михалевский 3,301 Reputation points
    2021-06-01T14:23:19.307+00:00

    1.You yourself gave a link to the source where it says that I have to use & computername & - it doesn't work. But it works correctly with & username & It is not written about it anywhere.
    2. Only a folder with the computer name is created. Logs do not appear.
    But the logs appear if you replace the key & computer name & with & username &

    0 comments No comments

  2. Leila Kong 3,701 Reputation points
    2021-06-04T07:30:26.937+00:00

    Hello @Андрей Михалевский ,

    The registry path of LogDir seems to be wrong, which shouldn't be added with Relative Path.
    Please try to delete the suffix of %username% after FSLogix\Logs and check if the problem would be solved.

    102339-logdir.png

    0 comments No comments

  3. Андрей Михалевский 3,301 Reputation points
    2021-06-04T07:55:36.393+00:00

    It works. But all servers write to one file.

    That is, there is an error in the description that I can use% computername%? https://social.msdn.microsoft.com/Forums/windowsserver/en-US/b9d37ab2-f754-434c-b487-afef7886f31c/change-the-logging-output-location-and-permissions?forum=FSLogix

    Why, then, does this work correctly with% username%?


  4. Leila Kong 3,701 Reputation points
    2021-06-11T07:50:43.753+00:00

    Hello @Андрей Михалевский ,

    I've received feedback from our internal team as follows:

    This document below shows how to correctly setup the logging to a central location and keep the logs in a per computer folder.
    https://social.msdn.microsoft.com/Forums/en-US/b9d37ab2-f754-434c-b487-afef7886f31c/change-the-logging-output-location-and-permissions?forum=FSLogix

    It has been used hundreds of times successfully. Please double check that everything is as per the doc.

    0 comments No comments

  5. Андрей Михалевский 3,301 Reputation points
    2021-06-11T08:34:44.27+00:00

    This does not work. You have seen all my settings.
    I think this is a problem with the AccessNetworkAsComputerObject parameter

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.