We have been forced early to upgrade to Sierra on some new iMacs due to they don't support El Captain, and i have managed to get everything working except two issues.
Firstly we do use AD bind with mobile accounts to get rid of the Library Errors, which is working fine.
It map's the UNC path fine and mounts the root to the desktop but no longer puts the Documents on the right side of the dock like it does in El capatain which i need to get resolved.
I have tried some scripts to re-map the home folder but to no avail. Is their an easier way to re-create this shortcut. Its made a bit more difficult as the student home folders are //gc-server/student-home/33208/Documents/
33208 being the id of the student domain username. So i may have to use the $3 to get the logged in username.
It looks like sierra is mapping this correctly but just not applying the shortcut to Documents folder in the dock.
I map another share via a config script and this is working fine.
The other issue i have is stopping the iMacs going into sleep.
I have rolled the following to the PowerManagment.plist
sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.PowerManagement SystemPowerSettings -dict SleepDisabled -bool NO
Which does take effect and does remove the sleep option from the menu, but the iMacs continue to somehow go into sleep. But its a bit hit and miss as sometimes it does disable if from the login page also, but then seems to come back and turns back on.
But i have noticed that their are other PowerManagement.plist files within preferences with long random numbers at then end also within the folder.
Is their a sure fire way to disable Sleep permanently in any way.
Any Help would be greatly appreciated