A powershell script to connect work or school account

류승석님 0 Reputation points
2023-12-05T08:01:48.78+00:00

hello,

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
PowerShell
PowerShell
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
    2023-12-06T07:24:41.04+00:00

    Hello,

    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:

    https://learn.microsoft.com/en-us/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-7.3

    User's image

    https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/add-computer?view=powershell-5.1

    User's image

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

    https://learn.microsoft.com/en-us/entra/identity/devices/device-join-plan#understand-your-provisioning-options

    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