Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED Automatically Join Active Directory Group

UltimateIdiot

New Member
Messages
4
Solutions
1
Reaction score
0
Points
1
I need computers to join an Active Directory group when deployed. They can join as part of their OSD task sequence or by some other means, but before the user's first logon. I've looked at PowerShell, but it will require the Active Directory Module. I've tried a VB Script (VBS), but I just keep finding more errors. The latest is "CScript Error: Can't find script engine "VBScript" for script", this is after the TS reboots after PE. So, I added the path to cscript.exe.

I'd appreciate any other methods, ideas, or guidance.

Thanks.
 
Solution
I found the solution. I used the Net command: net localgroup "Computers - M365 Apps Device License" %computername%$ /ADD /domain

Executed it as a command line task in an OSD task sequence with run as a domain admin.


JoinADGroup.png
I found the solution. I used the Net command: net localgroup "Computers - M365 Apps Device License" %computername%$ /ADD /domain

Executed it as a command line task in an OSD task sequence with run as a domain admin.


JoinADGroup.png
 
Solution

Forum statistics

Threads
7,169
Messages
27,980
Members
18,282
Latest member
SirTimbit

Trending content

Back
Top