Re: Moving workstations/servers OU to OU
- From: "Austin Osuide" <austin@xxxxxxxxxxx>
- Date: Mon, 29 Oct 2007 21:02:37 -0000
Or why not go with the new?
Learn Powershell.. With the Quest ActiveRoles AD cmdlets it's as easy as:
Get-QADComputer -Searchroot 'CN=computers,DC=Example,DC=Com' | where {($_.name -match "NN*")} | Move-QADObject -NewParentContainer 'OU=NN_OU,DC=Example,DC=Com'
Regards,
Austin
www.microsoft.com/powershell
http://www.quest.com/activeroles-server/arms.aspx
"Jorge Silva" <jorgesilva_pt@xxxxxxxxxxx> wrote in message news:OV3EgSkGIHA.5980@xxxxxxxxxxxxxxxxxxxxxxx
Hi
Check at Technet script center, they have many sample scripts that do similar process, you just need to adapt them to your needs.
--
===================================
I hope that the information above helps you.
Have a Nice day.
Jorge Silva
MCSE, MVP Directory Services
===================================
"kickballmvp2006" <kickballmvp2006.2z80zg@xxxxxxxxxxxxx> wrote in message news:kickballmvp2006.2z80zg@xxxxxxxxxxxxxxxx
In AD, when you add a computer or server to the domain, it goes to the
Computers OU. I would like to set up a script (on the domain
controller) that would run every now and then (possibly every hour)
that would look to see if there is any new workstations in the
Computers OU and if there is, look at the first two letters of the
workstation. If it's equal to YH then, put it in the YH OU, if equal to
NN then put in the NN OU and so on.
Does anybody have something similar?
--
kickballmvp2006
------------------------------------------------------------------------
kickballmvp2006's Profile: http://forums.techarena.in/member.php?userid=29383
View this thread: http://forums.techarena.in/showthread.php?t=842952
http://forums.techarena.in
.
- References:
- Moving workstations/servers OU to OU
- From: kickballmvp2006
- Re: Moving workstations/servers OU to OU
- From: Jorge Silva
- Moving workstations/servers OU to OU
- Prev by Date: Re: DCPromo demote question
- Next by Date: enterprise domain controllers
- Previous by thread: Re: Moving workstations/servers OU to OU
- Next by thread: Re: Sysvol And Jrnl_Wrap..........
- Index(es):
Relevant Pages
|