Create a local Admin user from AD with power shell script

PerserPolis-1732 1,951 Reputation points
2022-03-16T15:50:27.72+00:00

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

Windows for business | Windows Server | User experience | PowerShell
Windows for business | Windows Server | User experience | Other
0 comments No comments

13 answers

Sort by: Most helpful
  1. PerserPolis-1732 1,951 Reputation points
    2022-03-18T06:42:57.02+00:00

    Hi,

    It seems to work.

    Regards

    Was this answer helpful?


  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.