Hi
You can add the domain user in local administrators group. You don't need to create a local for that.
Please don't forget to mark helpful reply as answer
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I want to create a local Admin user on the client machine from existing AD user. For example the AD user is called "smustermann" but the local admin user on the client machine should be called "smustermannChief"
The password should be the same password as Windows domain user password.
Can I do that with a power shell script?
Regards
Hi
You can add the domain user in local administrators group. You don't need to create a local for that.
Please don't forget to mark helpful reply as answer
Hi @PerserPolis-1732 ,
in addition to Thameur-BOURBITA: It's not possible to "read" the password of a domain user to use it in a script to create a local user.
In my opinion it doesn't make sense anyway because there will be no sync if the domain user password is changed.
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
Hi Andreas, Thameur,
I know how I can add a domain user in local Administrator. I can do that with GPO. But as I mention the domain is called "smustermann" and I want to have so that the local admin should be called from "smustermann" but "smustermannChief". What I mean with password I do not want to import the password.
The domain ad user is called "smustermann" and is created on AD. The local admin user should be called on the client machine "smustermannChief" and it should be come from AD based of "smustermann". Is that possible?
Regards
Hi @PerserPolis-1732 ,
do you have some kind of "mapping/reference table" which user is mapped/related to which computer?
I think this is required because how you know which local user should be created on which computer?
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
Hi,
I know what you mean. I have a domain group with domain user or I have a CSV file. The computer are all in domain. I have a OU named "CO" with all computers from the Department "CO" and the same OU "CO" which are all the ad users from that Department "CO"
For example
The user "smustermann" has the computer (is called srv02)
Regards