Move Computers Between OUs

Anything VBScript-related, including Windows Script Host, WMI, ADSI, and more.
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 16 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
ga_vbs

Move Computers Between OUs

Post by ga_vbs »

Hi all,
I've been looking for a way to move computers between OUs in the same domain, and I found few scripts, but for some reason they didn't work for me.
I foun "Moving Computers from a list into an OU" at http://www.scriptinganswers.com/vault/a ... extfiletxt but I still can't get it to work.


can you guys tell me what I am doing wrong here?

I apreciate all comments
MJ
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Move Computers Between OUs

Post by jvierra »

THe script runs perfesctly for me.

Are you sure you posted the correct script. This script has no line 13. Lin 13 is a comment.
jvierra
Posts: 15439
Last visit: Tue Nov 21, 2023 6:37 pm
Answers: 30
Has voted: 4 times
Been upvoted: 33 times

Move Computers Between OUs

Post by jvierra »

Line 43
If strNTName "" Then

Miissing equal sign. This would produce the error.
ga_vbs

Move Computers Between OUs

Post by ga_vbs »

I added the equal sign and I am not getting the error message any more, but the computers are not moved.

I appreciate your input
ga_vbs

Move Computers Between OUs

Post by ga_vbs »

do you mean I put it in the beginning of the script, or before each line?

Thanks
ga_vbs

Move Computers Between OUs

Post by ga_vbs »

Thanks for the great advice :)
ga_vbs

Move Computers Between OUs

Post by ga_vbs »

One of my colleagues was able to fix this script and and he also did some customization that fits our environment.

Thanks to all for the helpga_vbs2007-05-29 13:45:12
This topic is 16 years and 10 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked