ducksrfr / mac_admin

Helpful scripts & configuration profiles for the Mac admin community
MIT License
232 stars 43 forks source link

Re: Local_pw_expiration.sh #1

Closed Genesis2kx closed 5 years ago

Genesis2kx commented 5 years ago

Is there a way to programmatically click the "Change Password..." button in the System Preference Pane that opens up? I feel this one extra step would be golden to using this implementation.

ducksrfr commented 5 years ago

@Genesis2kx Good idea, check out the new version! It took some trial and error before I noticed that the characters following "Change Password" were and not ...

Genesis2kx commented 5 years ago

Sounds good i'll give it a run. Also, what's the xmlString variable used for? I couldn't find it being used in the script after it was declared.

ducksrfr commented 5 years ago

Ah, that looks like a variable I used in another script that I overlooked when copy and pasting. It's removed now.