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

akamenev47
Contributor II

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

Ahoy!
5 REPLIES 5

john_sherrod
Contributor II

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

akamenev47
Contributor II

@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.

Ahoy!

john_sherrod
Contributor II

@shurkin18 Thanks!

john_sherrod
Contributor II

@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
Contributor II

@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>"
Ahoy!