microsoft / shell-intune-samples

Sample shell scripts for Intune admins.
MIT License
627 stars 213 forks source link

downgradeUsertoStandard doesn't respect downgrade=false #139

Open ajh0912 opened 2 weeks ago

ajh0912 commented 2 weeks ago

The comment here explains that if you changed it to downgrade=false, the script won't change anything. https://github.com/microsoft/shell-intune-samples/blob/5f2f27f919e8504456f4dbaabd86d67ce704992a/macOS/Config/Manage%20Accounts/downgradeUsertoStandard.sh#L32

But if L77 gets executed (because you also had abmcheck=true - the default), it would be reset back to true. https://github.com/microsoft/shell-intune-samples/blob/5f2f27f919e8504456f4dbaabd86d67ce704992a/macOS/Config/Manage%20Accounts/downgradeUsertoStandard.sh#L67-L79