To manage local groups, you can think about using net.exe. It may be much easier than using COM interfaces. The next line will add a local user account to the local Administrators group:
net localgroup Administrators Tobias /ADD
This functionality may not be available in Windows XP.