The procedure adds the given user (Domain User or Local User) to the given Local Group. The user either part of the domain or local can be added into the given group.
Please run the script as System User
Note :
The script needs to add double quotation mark when group or user name has space between them.
like gname=' "Power Users" '
gName = 'group_name' and uName = 'local_user_name or domain_user_name'
Comments