Powershell script to fetch Citrix Xenapp server sessions information

There are different kind of sessions created on Citrix servers. we can get various information regarding sessions either from access management console or Powershell. In this article I am sharing a script I created to get session information for couple of servers. The command I user for session information is Get-XAsession. It would give information the sessions with various details. Below script fetches Sessiontype(ICA, RDP or console), server name and user's ID. add-pssnapin Citrix.* $report = Get-XASession -ServerName Server1 | Select sessionname, servername,accountname $report += Get-XASession -ServerName Server2 | Select sessionname, servername,accountname $a = "<style>"…Read more …

Powershell Tool for Server utilization information remotely

One of the important tasks while managing servers is Server resource utilization. We have different monitoring tools which monitor the resources and generate alerts in form email or incident in whatever tool we are using. Lot of time it happens that the alerts are fake or we can see the problem was temporary which got resolved by itself. By using this script you can check resource utilization from your desktop. You need to run you script as an administrator which access to servers. You would be prompted for Server name when you would…Read more …

Close a handle to a locked file or folder

Yesterday I came along an issue in which I was not able to reset user’s profile. I was getting below error. The action can't be completed because the folder or a file in it is open in another program. The reason I was getting below error was because there were some files opened from user’s profile which were used by some other processes. To overcome this I found this utility by Microsoft called Handle. Handle is a utility that displays information about open handles for any process in the system. You can use…Read more …