How to add roles to multiple computers in SQL DB RRS feed

  • Question

  • Is there a way to add roles to computers in my SQL DB in "bulk"? For example, if I have 45 PC's in room 310 that are all being assigned the "General Lab" role, do I have to add the role to the PC's in my database one at a time, or is there a way to add the role to all 45 at once? I know you can't highlight all 45, right click, and modify the properties of each. I was wondering if there's a PS script capable of adding the role to a range of PC's.

    I PS'd my database into MDT, so I thought there might be a way of adding that parameter into the PS script.

    Any suggestions welcome!


    Friday, August 9, 2019 12:25 PM