Solved

need assistance with a posh script

Posted on 2013-01-14
2
339 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 500 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

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

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

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

730 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