Solved

Move list of pc s from one ou to another

Posted on 2013-10-23
1
277 Views
Last Modified: 2013-10-25
Please advise howto move a list of pc s from one ou to another in powershell.

J.
0
Comment
Question by:janhoedt
1 Comment
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
Comment Utility
If you have win 2008 R2 domain controllers, then you can try..
Import-Module Activedirectory
GC C:\PC.txt | %{get-adcomputer $_ | Move-ADObject -TargetPath 'ou=ComputerOU,dc=Domain,dc=Com'}

Open in new window

Input file format..
WINPC1
WINPC2
WINPC3

Open in new window

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

This article shows how a content item can be identified directly or through translation of a navigation type. It then shows how this information can be used to create a menu for further navigation.
The article will show you how you can maintain a simple logfile of all Startup and Shutdown events on Windows servers and desktops with PowerShell. The script can be easily adapted into doing more like gracefully silencing/updating your monitoring s…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

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

7 Experts available now in Live!

Get 1:1 Help Now