Tuesday, January 13, 2015

How to check Connection lease belong to which user Xenapp 7.5



Open the Connection Leasing XML files located at C:\ProgramData\Citrix\Broker\Cache\Leases\Enumeration 




Copy LeaseUserSid from XML file.




Open PowerShell

Use the below mention script to get the user name

Script:-
$objSID = New-Object System.Security.Principal.SecurityIdentifier  ("ENTER-SID-HERE")
$objUser = $objSID.Translate( [System.Security.Principal.NTAccount])
$objUser.Value


Update the script with SID and run via PowerShell console to get the user name

Script with user SID:-
$objSID = New-Object System.Security.Principal.SecurityIdentifier ("S-1-5-21-1428170238-2555158893-291873780-1126")
$objUser = $objSID.Translate( [System.Security.Principal.NTAccount])
$objUser.Value
  

 

No comments:

Post a Comment