Jump to content
Welcome to our new Citrix community!
  • 0

There is an error message when the PowerShell command obtains the last login time of the user

zhipeng qi


Hello, everyone

We encountered a problem when using the PowerShell command to obtain the last login time of the user. The login time of the user will point to a week ago incorrectly. This seems to be a random error:


get-brokermachine -associatedusername XXX |select lastconnectiontime


The official case said that customers before the bug gave up because it was too difficult to collect error information. Is there a more accurate PowerShell command to get the user's login time?
Our ultimate goal is to get the user's login time. If we don't log in for a week, we'll turn off his MCS desktop.

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...