set primary group script

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'

Supported on: At least Microsoft Windows 7 or Windows Server 2008 family

set primary group script

Registry PathSoftware\Policies\Samba\smb_conf\set primary group script
Value Nameset primary group script
Value TypeREG_SZ
Default Value


Administrative Templates (Computers)