Thanks to the Posix subsystem in NT a Windows User has a primary group in addition to the auxiliary groups. This script sets the primary group in the unix user database when an administrator sets the primary group from the windows user manager or when fetching a SAM with net rpc vampire. %u will be replaced with the user whose primary group is to be set. %g will be replaced with the group to set.
Example: /usr/sbin/usermod -g '%g' '%u'
|Registry Path||Software\Policies\Samba\smb_conf\set primary group script|
|Value Name||set primary group script|