Skip to main content

Get-CWControlUsers

Description​

This script is intended to run on the Control Server. It will return a list of users and their respective properties.

Requirements​

This script must be run on the Control Server. It returns all users and their respective properties for the ConnectWise Control server.

Usage​

  1. A user object is configured.
  2. The location of the desired XML file that holds this information is determined.
  3. A new users object is created using the data from the XML.
  4. The results are outputted.
.\Get-CWControlUsers.ps1

This command returns all users and their respective properties for the ConnectWise Control server.

Object PropertyType
NameString
DisplayNameString
EmailString
CommentString
CreationDateDateTime
LastActivityDateDateTime
LastLockoutDateDateTime
LastPasswordChangedDateDateTime
PasswordAttemptWindowStartTimeDateTime
InvalidPasswordWindowAttemptCountInt
InvalidPasswordAbsoluteAttemptCountInt
PasswordQuestionString
RolesString[]
PasswordHashHistoryString[]
IsApprovedBool
IsLockedOutBool

Output​

  • System Object
  • .\Get-CWControlUsers-Log.txt
  • .\Get-CWControlUsers.txt

Changelog​

2025-04-10​

  • Initial version of the document