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

downgradeUsertoStandard doesn't respect downgrade=false #139

Open
ajh0912 opened this issue Jun 18, 2024 · 0 comments
Open

downgradeUsertoStandard doesn't respect downgrade=false #139

ajh0912 opened this issue Jun 18, 2024 · 0 comments

Comments

@ajh0912
Copy link

ajh0912 commented Jun 18, 2024

The comment here explains that if you changed it to downgrade=false, the script won't change anything.

downgrade=true # If set to false, script will not do anything

But if L77 gets executed (because you also had abmcheck=true - the default), it would be reset back to true.

# Is this a ABM DEP device?
if [[ "$abmcheck" = true ]]; then
downgrade=false
echo "Checking MDM Profile Type"
profiles status -type enrollment | grep "Enrolled via DEP: Yes"
if [[ ! $? == 0 ]]; then
echo "This device is not ABM managed"
exit 0;
else
echo "Device is ABM Managed"
downgrade=true
fi
fi

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