Hi,
does anyone know if it's possible to create a batch file to acomplish the following.
1. Check if machine is joined to domain.
2a. If it is joined to the domain create a new user account.
2b. If it's not joined to the domain create a different user account.
I am clear in NET USE command and how to add/delete users.
What i'm not clear on, is how to check if a machine is joined to the domain using a batch file.
Any ideas are appreciated.
Thanks.