Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Scripting - Add computer to AD group

$
0
0

Hi guys,

Just wondering if you have any Script or Template that could do the below.

The Task

During SCCM OS build task sequence; I want to run a script to add the computer account to a group I created in AD. I have two groups in AD  -The addition should be based on the IP of the computers .

The Variable

 if 192.168. XXX join to A group

If 171.15.XXXX   join to B group.

Any info on how I could archive this ?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>