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

SCLabelPolicy: If label policy is set to None don't get its label display name since it's not required #3164

Merged
merged 6 commits into from
Apr 13, 2023

Conversation

ricmestre
Copy link
Contributor

@ricmestre ricmestre commented Apr 13, 2023

Pull Request (PR) description

SCLabelPolicy: If label policy is set to None don't get its label display name since it's not required. This solves an issue when for instance a label policy has outlookdefaultlabel set to None, there is no label with such name and therefore Get-Label fails.

This Pull Request (PR) fixes the following issues

@ricmestre ricmestre changed the title If label policy is set to None don't get its label display name since it's not required SCLabelPolicy: If label policy is set to None don't get its label display name since it's not required Apr 13, 2023
@ricmestre
Copy link
Contributor Author

With latest commit I'm able to export outlookdefaultlabel set to "None", changing it to "All employees (unrestricted)" and then back to "None" without errors.

@NikCharlebois NikCharlebois merged commit f101c07 into microsoft:Dev Apr 13, 2023
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

Successfully merging this pull request may close these issues.

DSC SCLabelPolicy export error
2 participants