Solved

need assistance with a posh script

Posted on 2013-01-14
2
333 Views
Last Modified: 2013-01-14
looking for a powershell or Quest AD cmdlets script that will accomplish the following:

look at all accounts in a specific OU for value "Emp" in "custom attribute 7" and if it finds that, move the account to a different OU.

thx in advance!

S.
0
Comment
Question by:siber1
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
Comment Utility
Try this..
Get-QADUser -SearchRoot "test.com/Admin" -SizeLimit 0 -IncludedProperties extensionAttribute7 | 
? {$_.extensionAttribute7 -eq "Emp"} |
Move-QADObject -NewParentContainer "test.com/Admin/Users"

Open in new window

0
 

Author Closing Comment

by:siber1
Comment Utility
perfect. thx Subsun
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
In this video we show how to create a Distribution Group in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Recipients >>…
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now