none
SCCM to AD import push RRS feed

  • Question

  • Hello All,

    I am looking to use SCCM to import all machines to their respective users into a field on AD. SCCM is the only tool we use currently that keeps a full inventory of the PC's in our environment. Is this possible through SCCM? Would you recommend a better way?

    Thank you in advance!

    Wednesday, November 20, 2019 6:29 PM

All replies

  • Define what you by "import". Do you simply mean add information to existing objects? If so, what information and added to what exactly?

    Ultimately, ConfigMgr itself does not in any way populate information in AD so you need to write a custom script for this no matter what.


    Jason | https://home.configmgrftw.com | @jasonsandys

    Wednesday, November 20, 2019 7:09 PM
  • Import being.. adding a users machine to their AD profile. As we use SCCM to manage our PC fleet currently, it seemed logical that it may be able to add the information to profile attributes. 

    However if you still recommend going down the scripting avenue, I'm assuming this would be Powershell? Could you point me in the right direction for this please?

    Thanks!

    Thursday, November 21, 2019 1:08 PM
  • Sorry, this still doesn't make sense: "adding a users machine to their AD profile".

    You are using undefined, made up terms for things so it's impossible to decipher your meaning.

    What do you mean by "user's machine"? It's name?

    What's an AD Profile? You mean the AD user object? If so, add the machine name where exactly?

    As for using a script, it's not about my recommendation, it's about technical capabilities. As noted, ConfigMgr has no functionality to manipulate anything in AD.


    Jason | https://home.configmgrftw.com | @jasonsandys

    Thursday, November 21, 2019 2:40 PM
  • I think your reading a little too far into my terminology and to say "made up terms" is a stretch. A users machine is a users computer that sits on their desk. In the context of the question I thought it would be clear i mean to add the name of the machine to the users AD profile, if not then i apologise. Their AD profile, would yes mean the users AD object which houses information on the user and relevant attributes to that object.

    So.. I would like a custom attribute/field added onto the user object, which would contain the name of the computer that the user has been given and is assigned on SCCM. So when I open "users and computers", right click and search for the user... I can see the users machine within that users profile view. As we use SCCM, I had hoped I could push that data to the user object, however that's not viable which is fine. 

    I am a network engineer, so I don't script extensively. My question was therefor, do you know enough to recommend Powershell or another alternative scripting language that would be more suitable. I have found very little documentation on this online, however my last company had this so I know it's possible.

    Sorry if I didn't explain this very well.

    Thursday, November 21, 2019 4:02 PM
  • PowerShell is great for most tasks in Windows (and other OSes now as well) and in generally the first choice for most admins.

    The Set-ADObject cmdlet will achieve what you want: https://docs.microsoft.com/en-us/powershell/module/activedirectory/set-adobject?view=winserver2012-ps


    Jason | https://home.configmgrftw.com | @jasonsandys

    Thursday, November 21, 2019 6:43 PM