r/scripting • u/JimmyRecard51 • Jun 26 '18
Copying information between Active Directory tabs with Powershell
Hey guys. What I'm looking for may or may not be simple, but I can't seem to find exactly what I'm looking for with Google searches.
Basically I'm looking to copy every group from the 'Member of' tab and paste it into the Notes section of the Telephone tab. We do this when disabling our users in case we need to find the info again. Currently it's a manual process and it would save us a lot of time with a script.
Let me know if any more information is needed, as I'm a total rookie here and may have missed some details. Any help would be big time appreciated!
View all comments
Show parent comment
1
u/JimmyRecard51 Jun 26 '18
If I could simply pull it and copy and paste it all at once, even manually, that would still save a lot of time! I tried that command but used my actual username there. It said 'Cannot validate argument on parameter 'Identity'. The argument is null.' Did I miss something else?
On a similar note, I did at one point find a command that pulled the MemberOf data but it unfortunately would show the entire path, so it wasn't something I could simply copy and paste over because I had to go and delete a bunch of extra information from every line. Do you think it's possible to pull the info without it showing the entire path?
Thank you for your help