Then i get proper name like Domani\ABC, Domain\XYZ in powershell output (screenshot attached as correct output) but i export it in .CSV file it comes out to be written as 'Citrix.Broker.Admin.SDK.User' instead of Domain\ABC.
How do i get the proper output in .csv with username as Domain\ABC ?
Question
Sanchit Gupta1709161590
If I run
Get-BrokerApplicationGroup * | Select Description, Enabled, Name, @{N='Accounts';e={[System.String]::Join(", ",$_.AssociatedUserNames)}}
I get application name and Account who has access on it in a column 'Account' and value as Domain\ABC, Domain\XYZ in csv file
but I run the
Get-BrokerEntitlementPolicyRule * | select PublishedName, IncludedUsers, @{N='Accounts';e={[System.String]::Join(", ",$_.IncludedUsers)}}
I get 'Citrix.Broker.Admin.SDK.User' written in output as well as in .csv file - screenshot attached as Incorrect output
but If i do not use expression and run below
Get-BrokerEntitlementPolicyRule * | select PublishedName, IncludedUsers, IncludedUsers
Then i get proper name like Domani\ABC, Domain\XYZ in powershell output (screenshot attached as correct output) but i export it in .CSV file it comes out to be written as 'Citrix.Broker.Admin.SDK.User' instead of Domain\ABC.
How do i get the proper output in .csv with username as Domain\ABC ?
Link to comment
2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now