We have Yubikeys paired keys with MacOS. I have to export Yubikey Cert infos to shared smb.
Solution: I have a Powershell script to deploy on admin and non admin users.
These commands are working just fine locally. Am not able to write these commands using a script to be deployed as Jamf Policy. Any idea?
Solved! Go to Solution.
Homebrew needs to be installed within the user context and Jamf runs scripts under the root. You could try running each of those commands as the user in your script. (See this excellent article. Running a Command as another User – Scripting OS X)
With that being said, I would NOT recommend this approach of using Homebrew to install other packages. Instead i would look at installing PowerShell via a package. It looks like Microsoft provides and installation package that should work better. It looks like Yubi also provides a package installer for ykman. You should be able to upload both packages to Jamf and create a policy to install them.