Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

need assistance with a posh script

Posted on 2013-01-14
2
Medium Priority
?
342 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 2000 total points
ID: 38775654
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
ID: 38775730
perfect. thx Subsun
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

One-stop solution for Exchange Administrators to address all MS Exchange Server issues, which is known by the name of Stellar Exchange Toolkit.
On September 18, Experts Exchange launched the first installment of the Help Bell, a new feature for Premium Members, Team Accounts, and Qualified Experts. The Help Bell will serve as an additional tool to help teams increase question visibility.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

604 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