cl.exe use corrupted paths

I am building project and got error. Later I check Process Monitor and i see that
4:16:32,3853584 cl.exe 25868 CreateFile E:\Programms\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64%SystemRoot%\system32\rsaenh.dll PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

4:16:32,3854249 cl.exe 25868 CreateFile C:\WINDOWS\SYSTEM32%SystemRoot%\system32\rsaenh.dll PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

4:16:32,3854961 cl.exe 25868 CreateFile C:\WINDOWS\system%SystemRoot%\system32\rsaenh.dll PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

4:16:32,3855612 cl.exe 25868 CreateFile C:\WINDOWS%SystemRoot%\system32\rsaenh.dll PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

4:16:32,3856054 cl.exe 25868 CreateFile D:\Programms\UE_5.4\Engine\Source%SystemRoot%\system32\rsaenh.dll PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

cl.exe use %SystemRoot% in all paths, which leads to their corruption. How I can fix that?

I get this same error. I’m researching but haven’t found any solution.

9:00:02.4489639 PM cl.exe 19656 CreateFile C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64%SystemRoot%\system32\rsaenh.dll PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
9:00:02.4490487 PM cl.exe 19656 CreateFile C:\windows\SYSTEM32%SystemRoot%\system32\rsaenh.dll PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
9:00:02.4491138 PM cl.exe 19656 CreateFile C:\windows\system%SystemRoot%\system32\rsaenh.dll PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
9:00:02.4491927 PM cl.exe 19656 CreateFile C:\windows%SystemRoot%\system32\rsaenh.dll PATH NOT FOUND Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a
9:00:02.4492341 PM cl.exe 19656 QueryOpen H:\Engine\UE_5.5\Engine\Source%SystemRoot%\system32\rsaenh.dll PATH NOT FOUND

I would like to have news as to how I fixed my issues with this but I found no one item that seemed to fix it for me.

I started by uninstalling various VS components (I didn’t think it would help) but after a number of uninstall components and reinstall and complete uninstall and reinstall in parts it started working.

So I have no solution other than “turn if off and back on”.

Jason