Click here to Skip to main content
15,881,588 members
Articles / Web Development / ASP.NET

Move Computers in Active Directory Using a SQL Server Datasource

Rate me:
Please Sign up or sign in to vote.
4.20/5 (3 votes)
3 Aug 2006CPOL2 min read 27K   219   18  
Move multiple computers from one OU to another using a SQL Server table as a datasource.
@echo off
REM Collect user name and computer name
echo %username%,%computername% >> \\Servername\sharename\userpclog.txt

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Database Developer
United States United States
I am an MBA with a bunch of MS certifications. Technically, I am a DBA, but I do a good deal of sys admin work and web development using .NET. I like to focus on business intelligence, database design, messaging architectures, and web services.

Comments and Discussions