Open meshyamsundar opened 8 months ago
If I log out and login again, the script works fine, but if I shut it down and turn it on again, my account does not getting changed back to standard, it's still an Admin
Are you using Jamf Connect in your environment?
Yes
So when using Jamf Connect, if your user becomes admin and the computer restarts, Jamf Connect will not make that admin user a standard user. However if you log out and log back in, Jamf Connect can demote that user at the login window.
Used this script and Elevated the account to admin for 5 min, immediately shut down the device once the timer started and Turned it on again after 5 mins, The User account is still an Admin. I have set RemoveadminRights as True.
When I check the Logs it says
Elevate: is already admin Elevate: Clicked cancel, exiting..
there is no user information, I guess it's running before the user logs in and gets quit and removes the script form Temp, and I still have admin rights.