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 for business | Windows Server | User experience | PowerShell
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    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

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.