I know this must be a simple answer, but I'm just starting out and don't have any formal training.
The following line will give me a list of users connected to a Citrix published app:
Get-XASession -BrowserName "Published App" | Where-Object { $_.State -eq "Active" } | Select AccountName The results is DomainName\UserName, but I need to split that into just the UserName. Once I get passed this problem, I plan to query active direct for user name and phone number, but I need to figure out how to split the AccountName. Thanks in advance, for any help.