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

desktop-config.json written incomplete due to default depth level of ConvertTo-Json (fix) #5

Open
micronyaol opened this issue Apr 16, 2021 · 0 comments

Comments

@micronyaol
Copy link

Hi!

I noticed desktop-config.json is written incompletely in "userAccounts" section resulting in Teams stuck on splash screen. In my case there are 5 nested levels in this section. But default Depth of ConvertTo-Json is 2.

Fix:
$newContent = $json | ConvertTo-Json -Depth 8

I used 8 just as precautions for future changes in json structure, 5 will work just fine.

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

1 participant