Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Add an Active Directory Object to Organizational Unit !!!!

3 views
Skip to first unread message

mamhil

unread,
Jan 5, 2010, 8:31:09 AM1/5/10
to

Hi everyBody , I want to add an Active Directory Object (User Acount , Group
, Compturer...) to an OU by using PowerShell , and i don't know How , any
help will be apreciate .

thanks .

IT STAFF

unread,
Jan 5, 2010, 9:16:57 AM1/5/10
to
use the redirusr or redircmp from microsoft. It will always go to that OU.

"mamhil" <mohame...@hotmail.com> wrote in message
news:BAC9EB20-A4B6-466B...@microsoft.com...

Clint

unread,
Jan 5, 2010, 3:10:11 PM1/5/10
to
There are a few different ways to do this that I am aware of:

1) Using Native ADSI/.NET methods. The most complex, you can find
examples on the technet script center like this one:
http://gallery.technet.microsoft.com/ScriptCenter/en-us/673a3c9b-5f7f-4c76-be6d-0ffe7aa16aca.

2) Using Quest's AD Plugin
(http://www.quest.com/activeroles-server/arms.aspx). Stable and not too
hard to work with in my experience. Then you can do something like:
C:\PS>new-QADUser -name 'user1' -ParentContainer
'OU=companyOU,DC=company,DC=com' -UserPassword 'P@ssword'

3) If you have Windows 7 RSAT & Server 2008 R2 Domain Controllers (or
have added the Web Services component to any Server 2008 DC) you can use
the Active Directory Team's cmdlets. I don't have any experience with
these outside of fiddling a little in my VMs, so I can't offer too much
help other than a few links:
http://technet.microsoft.com/en-us/library/ee617195.aspx,
http://blogs.msdn.com/adpowershell/

HTH,
~Clint
http://outputredirection.blogspot.com

mamhil

unread,
Jan 6, 2010, 10:09:33 AM1/6/10
to
Thanks all for the Help ,

Clint :

I'll try the Quest AD Plugin , and it's work fine .

thank U .

"Clint" <clintb...@gmail.com> a �crit dans le message de groupe de
discussion : evmTUMkj...@TK2MSFTNGP06.phx.gbl...

0 new messages