A powershell script to connect work or school account

류승석님 0 Reputation points


i have set up a lot of laptop in short time

so i searched a script for automate connect work or school account, but cant find it.

could you give me some help for it.

Thank you

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
8,937 questions
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,310 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 34,191 Reputation points Microsoft Vendor


    If you are looking for the way to multipal AD domain join computers, you could initialize PS remote session to the laptops and using Add-computer to join domain:


    User's image


    User's image

    If you are looking for tht way to AAD join computers, you may consider autopilot or bulk enrollment:


    Best Regards,

    Ian Xue

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments