Jamf-Scripts icon indicating copy to clipboard operation
Jamf-Scripts copied to clipboard

Computer Information.bash - AD test section

Open n0brainer opened this issue 6 years ago • 1 comments

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!

n0brainer avatar May 09 '19 13:05 n0brainer

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}'

talkingmoose avatar May 10 '19 03:05 talkingmoose