Skip to content

Add domain group to localadministrator group

Featured Replies

hi,

 

(sccm2012 SP1 with post fixes)

 

I created a little powershell script which i run in a task sequence,

powershell.exe -executionpolicy bypass -command "& {([adsi]"""WinNT://./Administrators,group""").Add("""WinNT://domain/Servers,group""")}"

 

I run it within a package. As system or as a user with domain admin rights (local and domain) without success. But, it runs fine out of the sequence. (in an elevated prompt)

Please, could anybody put me in the right direction?

 

Regards

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.