Prompt for AD account to add to local admin group
I've been using the standard "join_domain.vbs" script on my K2000 as a post install task for adding systems to the domain, which works fine. I'd like to improve my post install by prompting for the users AD account name and adding that name to the local administrators group. Is there an easy way to add this to the join domain script? I see there are quite a few examples of adding a user account to the local admin group but I don't see any specifying prompting. In the worst case if I could pre-populate the local admin group with the account of a local AD admin in that location that would work as well. Appreciate any help. Just getting into scripting so excuse the remedial nature of the post :)
Ken-
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
ambrish7
7 years ago
Posted by:
anonymous_9363
7 years ago
Posted by:
kenrinc
7 years ago