Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Group membership user information

$
0
0

HI

I am working on a script to get the user information, specifically I need "Domain\username" back because my app needs domain\username

Get-ADGroupMember -identity “Group_Name” | select name | Export-csv -path C:names.csv -NoTypeInformation

But I want to get the "ntuserdomainid" which is :Domain:username" because my app needs domain\username and I can use excel to change the : to a \

The problem is when I ask for ntuserdomainid the script returns "Microsoft.ActiveDirectory.Management.ADPropertyValueCollection"

How do I query the "VBScript" type fields?


Viewing all articles
Browse latest Browse all 6937

Latest Images

Trending Articles



Latest Images