I'm trying to image existing machines to Windows 10 which also includes moving to a separate OU. I understand from my bit of Googling that an SCCM TS is unable to move OU's through normal tasks for exisiting device records.
I found that it is possible through a VBscript, however this seems to be where I'm running into an error. I can't find a definitive guide on how to use this.
I changed the two LDAP:// addresses to the OU where I wish to move it and saved it as a VBscript. I moved it to my sources folder and created a package. Creating a package is usually where I get hung up, truthfully.
To create the package I:
Checked source files, pointed it at the folder containing the VBscript. Choose to create a "Standard Program". I name it, set the command line as "cscript Move.vbs" have it run minimized, whether or not a user is logged in and with administrative rights. I then finish up the package.
I've then inserted it into the TS as seen in the pictures below. I believe I'm probably just messing up at one or two avenues and it's causing me 4-5 hours worth of wait. (I have to image back to W7, customize it a bit and then run the W10 TS in hopes USMT functions as intended.)
The task sequence is failing when it gets to that step with an error of 0x80004005 per the log. I can successfully image back to Windows 7 without an error, so I know it's not a laptop configuration issue but assumingly my OU move error.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Hello,
I'm trying to image existing machines to Windows 10 which also includes moving to a separate OU. I understand from my bit of Googling that an SCCM TS is unable to move OU's through normal tasks for exisiting device records.
I found that it is possible through a VBscript, however this seems to be where I'm running into an error. I can't find a definitive guide on how to use this.
I used a script found over at http://blog.coretech.dk/jgs/vbscript-move-computer-object-to-another-ou-via-command-line-parameter/
The script is:
I changed the two LDAP:// addresses to the OU where I wish to move it and saved it as a VBscript. I moved it to my sources folder and created a package. Creating a package is usually where I get hung up, truthfully.
To create the package I:
Checked source files, pointed it at the folder containing the VBscript. Choose to create a "Standard Program". I name it, set the command line as "cscript Move.vbs" have it run minimized, whether or not a user is logged in and with administrative rights. I then finish up the package.
I've then inserted it into the TS as seen in the pictures below. I believe I'm probably just messing up at one or two avenues and it's causing me 4-5 hours worth of wait. (I have to image back to W7, customize it a bit and then run the W10 TS in hopes USMT functions as intended.)
The task sequence is failing when it gets to that step with an error of 0x80004005 per the log. I can successfully image back to Windows 7 without an error, so I know it's not a laptop configuration issue but assumingly my OU move error.
Share this post
Link to post
Share on other sites