Hi
I am looking for a way to originise the workstations, in one of the domains that I help administer, into the correct OUs.
My initial thought was to use scripting. The office is split into office blocks and IP addresses are assigned according to office block number. Our AD OU structure reflects the office block numbers and so does our DHCP allocation.
So, the script would happen during login, capture the IP address and move the machine to the correct OU. Pretty straight forward logic to it. The only problem is that I wouldn't know how to get the IP address of the machine and then check what scope it fits into, then apply the computer move.
I already have a script that will move computers, I just need the IP address bit.
Can anyone help?
Also, if there already any apps that do this I would be interested in them as well.
Thanks a lot
Colin
I am looking for a way to originise the workstations, in one of the domains that I help administer, into the correct OUs.
My initial thought was to use scripting. The office is split into office blocks and IP addresses are assigned according to office block number. Our AD OU structure reflects the office block numbers and so does our DHCP allocation.
So, the script would happen during login, capture the IP address and move the machine to the correct OU. Pretty straight forward logic to it. The only problem is that I wouldn't know how to get the IP address of the machine and then check what scope it fits into, then apply the computer move.
I already have a script that will move computers, I just need the IP address bit.
Can anyone help?
Also, if there already any apps that do this I would be interested in them as well.
Thanks a lot
Colin