A simple script to remove a User or Group from a machines Local Group, and replace it with a domain User or Group.

The script can be tweaked so that you can point it at remote machines, but it has been designed to run locally on a machine. Ideally this should be deployed using SMS.

As it stands no error handling is included. The script will return an exit code of 0 which SMS will treat as a success.

Use at your own risk, review the code, make sure your command line is correctly formated, and finally perform testing before you deploy to machines.