Not known Factual Statements About SCCM OSD Add user to admin group

I am attempting to create a VB script to be used during SCCM Desktop OS deployment. I need to use the asset tag of your device to make a local account and set the password of the account applying an current VB script (inherited not a single I compiled) after which add the account into the local administrators group.

On top of that, observe that the asset tag (SN) and password are increasingly being outed to some local folder on the device. You can conveniently adjust this to some community spot of your deciding upon.

I do the identical issue but I provide the users that should be local admins within an AD Group. Then I 'run command line' making use of this: Internet localgroup administrators "DOMAINGROUP" /incorporate

You'll be able to delete the logs after the set up or use just utilize a offer(powershell with secure string, c++ method and so forth…) that insert the user, it might be decrypted also but is tougher.

I see i have manufactured a fault On this write-up. The command have to be followed by “/insert”. The submit is now up-to-date. I am executing the command after the set up with the ConfigMgr consumer. Thanks for letting me know And that i hope this could assist!

I'd hunted for your way To achieve this in as speedy a way as you possibly can, which principles out using the GUI…it ought to be scripted. I attempted it in VBscript, but simply just couldn't get it to successfully include a user who here was within a sub-domain. It might operate for the highest domain, although not for that sub-domain.

Now, the circumstance I not long ago read more hit which has a consumer was wherever they'd a CAS plus a Principal web page.  They developed a scope, known as Pri1, and tagged the first internet site item for being part of the scope.  They then granted a user the total Administrator security part, but only about the Pri1 scope.  This Enable the user administer and run the main web site, although not contact the configuration around the CAS.

Effectively stated. This is exactly what will make an incredible IT man or woman, dilemma solving and effectively speaking anticipations.

So I switched my considered approach to PowerShell. I don’t are aware that I'll at any time return. I had a Operating script in possibly ten minutes. I then modified it and gave it some far better logic, but even that went promptly.

If you need to operate this with also creating a new local user, guarantee you have this step after the generate local user action or it will fail.

I am quite new to accomplishing this sort of detail by means of SCCM, but would this do what I am pondering it will eventually do? What takes place if there is not any user logged in and this endeavor sequence fires on their equipment?

I have around six-8 months in advance of I begin actively seeking this position . I did; nonetheless, go over a limb and apply to Microsoft like a aid engineer.

For many of you this could possibly be ample for your “lite bulb to go on,” but just in case you weren’t so Blessed, Listed below are website the actions try to be getting to create this user in this state of affairs:

I insert this stage and one other 1 to produce a local account and include it into the administrator group. But, OSD fails with the 0x00000002 mistake code.

Leave a Reply

Your email address will not be published. Required fields are marked *