Jump to content


  • 0
Tinsnut

Add user to admin group variable

Question

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

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

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%?

Share this post


Link to post
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

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.