Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Move OU During TS

Codi

Member
Messages
9
Reaction score
0
Points
1
Hello,

I'm trying to automate an OU move from a Windows 7 OU to a Windows 10 OU during my upgrade process. I found a premade script, but I've spent the last 3 days trying it in every single way I know of and it has yet to work once.

The script is here http://blog.coretech.dk/jgs/vbscript-move-computer-object-to-another-ou-via-command-line-parameter/

I've put that into a VBS, saved it as Move.VBS and threw it on my server. I created 3 different run command line tasks in my task sequence and set the command line to run as such: cscript.exe \\sccm\location\Move.vbs “OU=*,OU=Computer Policies,OU=*,DC=*,DC=local” (I took out from information from there, none of it's pertinent to the issue. When I run that command on my PC, it works fine. When I put it in a task sequence it does not.

The attached picture shows where it is in my Task Sequence, as I got tired of guessing (which I'm still doing.) I have the box checked and having it run as the domain admin account.

I've checked the logs and there's nothing definitive, it lists a (00000001) at some point but it doesn't explicitly give me a solution. I'll attach the log of where these task sequence tasks begin, but I'm not seeing much and I'm starting to get frustrated with the whole thing. If there's anything I can do, please let me know!
 

Attachments

  • upload_2016-3-9_14-37-5.png
    upload_2016-3-9_14-37-5.png
    41 KB · Views: 15
  • smsts.txt
    smsts.txt
    39.8 KB · Views: 7
Back
Top