We help IT Professionals succeed at work.

calculated properties windows 7 connected to windows 2012 domain

techdrive
techdrive asked
on
49 Views
Last Modified: 2016-10-21
I am typing In the following command get-aduser username -properties memberof | select-object  {$_.memberof}  I was hoping to get the following output. For some reason I am not. I am using a windows 7 machine and have done the import-module active directory.


group1
group2
group3
group4

I was wondering why is this not occurring here.
Comment
Watch Question

IT Infrastructure Architect
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
sweet thanks it worked. So can I use this method for almost any multi valued comma delimited property. If I am using the correct terminology.
Subash SundharanIT Infrastructure Architect
CERTIFIED EXPERT

Commented:
If you are trying to export result, I would suggest you to use the custom property option so you can export all required properties of user.. Example..
Get-ADuser username -properties memberof | Select Name,SamaccountName,@{N="memberof";E={$_.memberof | Get-Adgroup | select -exp Name}}

Open in new window

Author

Commented:
like always thank you very much for your help. You have always been extremely helpful.

Author

Commented:
very helpful
Subash SundharanIT Infrastructure Architect
CERTIFIED EXPERT

Commented:
You are welcome!
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.