Jamf-Scripts
Jamf-Scripts copied to clipboard
Computer Information.bash - AD test section
I came across your script this morning and was able to modify to my needs, mostly. I have a question/favor/request...
for the section for testing AD binding, I need to have it determine which domain it's connected to (we have 3). I was able to do the section for displaying binding by adding elif statements, but I'm unsure how to do the same for the testing section.
Thank you!
Try this command in Terminal on an AD-bound Mac and see if it returns the correct NetBIOS domain. If it does, then we have a place to start.
/usr/bin/dscl "/Active Directory/" -read / SubNodes | /usr/bin/awk 'BEGIN {FS=": "} {print $2}'