Posted on 10-25-2012 11:47 AM
Hey all,
Theres a command I am trying to use as a script but for some reason, it doesn't run. JSS shows the policy as successful.
#!/bin/sh
defaults write /Library/Preferences/com.apple.NetworkAuthorization UseShortName -bool YES
We have tried running this script at logon and startup to no avail.
Thanks in advance!
Solved! Go to Solution.
Posted on 10-25-2012 12:10 PM
Maybe try something like this out
#! /bin/sh
sudo defaults write /Library/Preferences/com.apple.NetworkAuthorization UseShortName -bool YES;
if [ -f '/Library/Preferences/com.apple.NetworkAuthorization.plist' ]
then
exit 0;
fi
exit 1;
Posted on 10-25-2012 12:10 PM
Maybe try something like this out
#! /bin/sh
sudo defaults write /Library/Preferences/com.apple.NetworkAuthorization UseShortName -bool YES;
if [ -f '/Library/Preferences/com.apple.NetworkAuthorization.plist' ]
then
exit 0;
fi
exit 1;
Posted on 10-25-2012 12:14 PM
#! /bin/sh
sudo defaults write /Library/Preferences/com.apple.NetworkAuthorization UseShortName -bool YES;
if [ -f '/Library/Preferences/com.apple.NetworkAuthorization.plist' ]
then
exit 0;
fi
exit 1;
Sorry about that and the double post. You should be able to set up a managed preference for that as well
Posted on 11-09-2012 07:02 AM
Sorry,
Sandy shut our district down for a week. The script seemed to work. Thanks jdziat!