Tuesday 24 June 2014

How to expand a particular property in the powershell

When i ran a command Get-CsAdminRole -Identity "SamAccountName of the security group"
If the security group exists and the role is already created in the Lync Infrastructure, i will be able to see below output

Identity: SAMAccountName of the security group
SID: 
IsStandardRole: False
Cmdlets: {Name=Disable-CSUser, Name=Enable-CSUser, Name=Get-CSAdUser, Name=Get-CSUser...}
ConfigScopes: {Site:2}
UserScopes: {OU:ou=Name of the OU,dc=Domain,dc=com...}
Template: CSUserAdministrator

In order to see the complete output instead of three dots, we need to run the below command to expand a particular property

 Get-CsAdminRole -Identity "SamAccountName of the security group" | Select-Object -ExpandProperty userscopes


No comments:

Post a Comment