I got an issue where my only option is to disable windows MAX_PATH.
I’ve tried to run:
- name: 'Disable windows MAX_PATH' shell: pwsh run: | New-ItemProperty -Path "HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem" ` -Name "LongPathsEnabled" -Value 1 -PropertyType DWORD -Force
This step is executed ok and I get the correct powershell feedback but the following step which must have the MAX_PATH disabled still fails. Any idea why and what can I do about it?