Jump to content




kaiserclaw

Last logon user / Primary user - managed by Active Directory



Recommended Posts

Hello.

Is there any way to populating "Managed By" in Active Directory with information from SCCM? for example, Last Logon User or Primary User?
I can retrieve the information using SCCM but I do not know how to write information to Active Directory.

Thanks in advance
 

Share this post


Link to post
Share on other sites


I’m sure that you can use PowerShell to do this. With a bit of googling and cutting & pasting this should work.

Share this post


Link to post
Share on other sites

I manually populate that field via a script I run against my HR report monthly.  The field for "managed by" requires input (whether it be via powershell, or other) to be in a specific format.  I believe that the CN or username must be used.  It is an odd field that does not populate with static data.  For example, you will get script errors if you try to add a name to that field and the account your are trying to insert does not exist in AD.  The "managed by" field must contain users who exist if you want to script.  

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×