microsoft / shell-intune-samples

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

downgradeUsertoStandard doesn’t use a variable for admin account #140

Open ajh0912 opened 2 weeks ago

ajh0912 commented 2 weeks ago

The comment here implies there is an adminaccountname variable. https://github.com/microsoft/shell-intune-samples/blob/5f2f27f919e8504456f4dbaabd86d67ce704992a/macOS/Config/Manage%20Accounts/downgradeUsertoStandard.sh#L23

But L83 is hard coded to the string ‘admin’. https://github.com/microsoft/shell-intune-samples/blob/5f2f27f919e8504456f4dbaabd86d67ce704992a/macOS/Config/Manage%20Accounts/downgradeUsertoStandard.sh#L81-L90