---
title: "How to list users on a Windows host?"
description: "Listing all users on a Windows host can be done using a custom PowerShell script with the Toolkit plugin. The provided sampler lists users and session status, enabling rules to alert based on user activity or permissions."
url: "https://docs.itrsgroup.com/docs/faq/geneos/360004165753-geneos-how-to-list-users-on-a-windows-host/index.html"
---
**To list all users on a Windows host you can create a custom PowerShell script and use the Toolkit plugin.**

The attached sampler at the bottom will list all the users defined on the host along with its session status.  Below is an example of the dataview:  ![PowerShell WinUsers](https://docscdn.itrsgroup.com/faq/images/geneos/360004165753-inline-1-PowerShell_WinUsers.PNG)

From this you can create a rule to alert if the rowName is allowed or not allowed on the host, or a user should be active or not during certain times.

## Related downloads

- [PowerShell_WinUsers.xml.txt](/faq/downloads/geneos/360004165753-30367194114845-PowerShell_WinUsers.xml.txt)


