bsharath
asked on
Powershell script that gets few fields of a group. need a change to fetch for a User.
Hi,.
Powershell script that gets few fields of a group. need a change to fetch for a User.
Can anyone help with a way to fetch from a user
REgards
Sharath
Powershell script that gets few fields of a group. need a change to fetch for a User.
Can anyone help with a way to fetch from a user
REgards
Sharath
Get-PsSnapIn -Reg | Add-PsSnapIn -EA 0
Get-Content "d:\GetData.txt" | %{
$Group = Get-QADGroup $_ -IncludedProperties LegacyExchangeDN
If ($Group -eq $Null -Or ([Array]$Group).Count -ne 1)
{
$_ >> "CouldNotFindGroup.txt"
}
Else
{
$Group
}
} | Select-Object Name, LegacyExchangeDN, Email, MailNickName | Export-CSV "SomeFile.csv"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks
No problem, thanks for the quick accept! D
D