Skip to content

Add user to admin group variable

Featured Replies

Hello,

 

I was curious if there is a variable to add specified domain user to the administrators group. I have the OSDComputerName variable setup and appreciate the ability to change the computer name before running through my task sequence. I would like to have the same functionality with user permissions.

 

I found the original OSDComputer name options here if interested:

 

http://technet.microsoft.com/en-us/library/dd252752.aspx

 

Thank you,

Shaun

  • Author

Nope, there is no default option or variable for that. If you want to do something like that, you should use a run command line -step and do something like here: http://social.technet.microsoft.com/Forums/en-US/configmgrosd/thread/d2f34f48-9a09-482c-962e-acb0d01d323b/

 

Thank you for the response!

"cmd /c net localgroup "Administrators" "domain\user" /add

 

replace domain\user with your desired user (you can use variables in conjunction with a frontend HTA, eg: domain\%targetuser%"

 

This looks like what I need. Besides using HTA's (someday I hope to be of that skill level) How could I get a prompt to come up for %targetuser%?

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.