You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Images:
en-us_windows_server_2019_x64_dvd_f9475476 -- works fine
ru-ru_windows_server_2019_x64_dvd_e02b76ba -- breaks in ini.psm1 with the following error (see the screen)
I have discovered the reason: PowerShell internally compiles this code. During this compilation, the .NET Framework may use TempFileCollection to create temporary files for the compilation process. That temp file is generated as a shortname and it seems that different parts of Windows do not understand these paths equally.
I have found a workaround, but I do not know your code enough to propose a pull request for this and be sure that it will not break anything for other systems.
But my straightforward fix looks like inserting in Logon.ps1 code the following snippet after line 8 or in ini.psm1 in the beginning:
Images:
en-us_windows_server_2019_x64_dvd_f9475476 -- works fine
ru-ru_windows_server_2019_x64_dvd_e02b76ba -- breaks in ini.psm1 with the following error (see the screen)
But my straightforward fix looks like inserting in Logon.ps1 code the following snippet after line 8 or in ini.psm1 in the beginning:
Hope it helps and you will decide for yourselves how to fix it in the most correct way
The text was updated successfully, but these errors were encountered: