Skip to main content
Question

Extension attribute if anybody need - shows current setting for Use UNC path from Active Directory to derive network home location

  • May 6, 2016
  • 5 replies
  • 28 views

akamenev47
Forum|alt.badge.img+10

We currently upgrading users from Yosemite to El Capitan and we need to check each user for the "Use UNC path from Active Directory to derive network home location" setting before proceeding, I have created a simple extension attribute which will show the status of the setting under General tab for each machine in JSS as: AD UNC Path Check: Use Windows UNC path for home = Disabled

Download

5 replies

john_sherrod
Forum|alt.badge.img+17
  • Valued Contributor
  • January 8, 2019

@shurkin18 Do you still have this extension attribute? Your link no longer works, but I could actually really use this.


akamenev47
Forum|alt.badge.img+10
  • Author
  • Valued Contributor
  • January 8, 2019

@john.sherrod , definitely. Sorry, I am currently out of country, and don't have access to my work computer, but will be back in 4-5 days and can share the extension attribute.


john_sherrod
Forum|alt.badge.img+17
  • Valued Contributor
  • January 8, 2019

@shurkin18 Thanks!


john_sherrod
Forum|alt.badge.img+17
  • Valued Contributor
  • January 8, 2019

@shurkin18 I started messing around with this and came up with this:

#!/bin/bash

if dsconfigad -show | grep -q 'Use Windows UNC path for home  = Disabled'
then
    echo "<result>Disabled</result>"
else
    echo "<result>Enabled</result>"
fi

I don't know if that's the best way to format it, but it seems to work.


akamenev47
Forum|alt.badge.img+10
  • Author
  • Valued Contributor
  • January 14, 2019

@john.sherrod , that's a way to do it. Here is how we got it setup here:

#!/bin/sh
ad_specs_uncset=`dsconfigad -show | grep "Use Windows UNC path for home"`

echo "<result>$ad_specs_uncset</result>"