In order to see the full impact of this script example, add your user account to the newly created AGroup. Log back in and re-run the scripts. You should now receive the drive mappings contained in both the [Domain Users] and [AGroup] sections of the drivemapping.ini file. You can add new group sections by simply copying the format for any of the sections.
Now add a few additional drive mappings into an existing section of the drivemappings.ini file and re-run the script.