joshua-d-miller / macOSLAPS

Swift binary that will change a local administrator password to a random generated password. Similar behavior to LAPS for Windows
MIT License
382 stars 57 forks source link

Version Extension Attribute #90

Closed fgs2022 closed 5 months ago

fgs2022 commented 1 year ago

Do you have a version extension attribute script to use in Jamf so machines can easily update from 3.0.1 to 3.0.4? Thanks.

joshua-d-miller commented 1 year ago

Hello @fgs2022,

Here is a simple script that should accomplish that for you:

#!/bin/zsh
## Get macOSLAPS Version ##
VERSION=$(/usr/local/laps/macOSLAPS -version)
/bin/echo "<result>$VERSION</result>
fgs2022 commented 1 year ago

Is this all I should need to do?

image

I don't see anything populating even though I've updated inventory multiple times.

image
joshua-d-miller commented 1 year ago

Hello,

Yes that should be it. Let me know how it goes.

Thanks!

fgs2022 commented 1 year ago

Unfortunately it is not reporting any version number.

fgs2022 commented 1 year ago

Would there be any harm in just pushing the latest client out to all endpoints that have macOSLAPS installed, even if they already have the latest version installed?

joshua-d-miller commented 5 months ago
sudo /usr/local/laps/macOSLAPS -version
3.0.4

You can update LAPS as much as you want. You could also look for the pkg recipes and verify that with this command:

pkgutil --pkg-info "edu.psu.macOSLAPS" | grep "version" | awk '{print $2}'
3.0.4