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!
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!