Skip to content

Join computer to AD Security Group using .vbs during OS Task Sequence

Featured Replies

  • Author

Hello Jorgen,

Hello Peter,

 

The issue have been resolved now.

 

The Culprit was VMvaretools which was changed registry HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3 value ;Hence my .vbs script was unable to run.

 

See http://dynamicdatace...y/provisioning/

 

 

To troubleshoot the issue i followed below steps.

 

1. Copying script to local system folder

 

post-15600-0-25737300-1334637072_thumb.png

 

2. Running the script from local system and redirects its output to .txt file so that the exact error can be viewed,

 

post-15600-0-93028100-1334637073_thumb.png

 

3. The error in .txt was it "could not find the script engine."

 

4. Change the registry setting is command line TS.

 

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COM3 /v REGDBVersion /t REG_BINARY /d 010000 /f

 

post-15600-0-06366100-1334638757_thumb.png

 

 

 

 

5. SUCCESS

  • 4 years later...

how to add a group automatically based upon Organisation Unit

 

for example

 

If the computer organisation unit is "corporate" it would add to corporate group similarly If the computer organisation unit is "IT" it would add to IT group

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.