Scripting questions



Hi, gurus,

What is the best way to archive the following tasks:

1. list all users (domain and local) in local administrators group on remote computer
2. remove user from local administrators group on remote computer
3. add domain user account to local administrators group on remote computer
3. remove local user account from remote computer

Thanks!
John