It really depends on the scope of the operation. Do you need to switch all 1500 users from one PGroup to another? This seems unlikely to me, but it's better if this is the case. If it isnt, the issue is complicated and will involve some degree of manual work.
What I would suggest to you is to first ensure all the groups you want created are created. At this point, you could use an LDAP query to search for all the groups in the domain and return their PrimaryGroupToken attribute. You should use the tool CSVDE at the command line to export the Active Directory to a CSV file, you can then open that file in Excel. Along the top row is a list of AD schema fields, and underneath are entries.
Look for the group objects in the CSV file, and note thier PrimaryGroupToken Field.
Now you want to look at all the user objects, and note thier PrimaryGroupID field. The PrimaryGroupID entry will match the PrimaryGroupToken entry, if said user is a member of said group. Simplified example. The accounting group's PrimaryGroupToken is A123. John's primary group is Accounting, hence his PrimaryGroupID is A123.
Anyhow.... the beauty of CSV files is that you can open them in Notepad, and the beauty of Notepad is that you can do mass "replace all instances of this string with this new string" type operations. Technically, you can expolit this and make the changes en`masse that way. After that is done, you can just import the CSV file back into AD.
Please test this first, ensure you backup the system state on a DC before commencing!
Also, as I stated earlier, if there are alot of different groups involved, it may well be easier to manually switch them all. At least it's technically easy to do (albiet time consuming)