Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import breaks certain settings due to invalid seperator #8

Open
nickscarpenter opened this issue Jul 16, 2024 · 2 comments
Open

Import breaks certain settings due to invalid seperator #8

nickscarpenter opened this issue Jul 16, 2024 · 2 comments

Comments

@nickscarpenter
Copy link

Hi

i have noticed when importing that the seperator "" doesnt appear to pull through correctly and gets replaced with ""

image

thanks for the hard work! , shame it doesnt work on Windows 11 AVD multi-session hosts :(

@eneerge
Copy link
Owner

eneerge commented Jul 16, 2024

Hey nicksparpenter,

If you're making any changes to the configuration, make sure you save the file with UTF16 or UTF-8 with BOM encoding or it will replace that character as you mentioned. I had this exact same issue, but once I re-saved with the correct encoding, it fixed the issue. You may have to go back and do a replace-all to fix the bad chars. The  is the correct character. I certainly disagree with this being the character that has to be used, but that's what Microsoft decided to use.

I could probably upadate the configuration to use a keycode instead of relying on the encoding of the saved file. I will see if that's possible. But until then, try using the UTF BOM encoding

Let me know if this helps.

@fatcat2248
Copy link

Same problem - wish I checked the issues first instead of inspecting the policies until I found where it was broken. :)

Great script - may be worth adding this 'Gotcha' to the Read Me as people are going to run into the same issue breaking the file by updating the Tenant-ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants