Skip to content

Featured Replies

Hi,

" not shifted to the correct OU." does that mean that the computer account already existed? The domain join phase will not move any existing computer objects, you need to script that yourself, with something like this:

http://ccmexec.com/2010/12/move-computer-to-the-correct-ou-during-deployment/

 

Regards,
Jörgen

  • 3 weeks later...
  • Author

Hi,

 

Took the script:

 

This is what is happening now.

 

I am trying to run this on task sequence as:

cscript.exe “%deployroot%\scripts\moveou.vbs” “LDAP path with mentioning the LDAP:\\xx”

Command comes as this:

smswd.exe /run:lcc00123 cscript.exe “%deployroot%\scripts\moveou.vbs” “OU=xxxxxx”

all good however, I am getting following error:

exit code 80004005, running a command line under a user account is not supported in winpe

 

I run the above with the package for the scripts which is replicated to DP: LCC00123 refers to the package folder.

 

Under the task sequence I run it like this:

 

run command:

 

cscript.exe “%deployroot%\scripts\moveou.vbs” “LDAP path with mentioning the LDAP:\\xx”

 

 

Brousing to package to run it from mentioned package where the moveou.vbs exists.

 

run as user that has move rights on within ad.

 

._________________________________________________

 

I runned it like this on top of the computer running windows xp.

 

cscript.exe “scripts\moveou.vbs” “LDAP path with mentioning the LDAP:\\xx”

 

it worked fine.

 

However task sequence is giving me:

 

exit code 80004005, running a command line under a user account is not supported in winpe

 

 

 

any idea?

  • Author

Sorry the path for LDAP is mentioned fine... my explaintion makes it confusion.

 

script is runned like this:

 

cscript.exe "%deployroot%\scripts\MoveOU.vbs" "OU=Win7,OU=Corporate,DC=xxx,DC=com"

 

thanks for quick response.

 

Asher

Hi,

Where do you run it in the task sequence? it has to be run in the full Windows OS that would be after the "Setup windows and Configuration manager" step.

Regards,
Jörgen

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.