2019: How-To: Dump a list of users from the system

2019: How-To: Dump a list of users from the system

Titan and Cornerstone have a command line utility, srxCFG, which can be used to dump a list of users from the system. When used from within PowerShell, this list can be converted into a .CSV format for use by other programs and operations.

Use the following powershell script to export the list of users.

  1. #
  2. # This sample will illustrate how to dump a list of users to a CSV file
  3. #

  4. $csPath = "C:\Program Files\South River Technologies\Titan FTP Server"
  5. $csCFG = "srxcfg.exe"
  6. $csUserList = Join-Path -Path $csPath -ChildPath "users.txt"
  7. $csARGS = "/AdminUser=Administrator /AdminPass=ADMIN_PASSWORD /Server=SERVERNAME"


  8. #
  9. # Start a process to call srxCFG and dump the list of users to a raw text file
  10. #
  11. Start-Process -wait -FilePath $csCFG -WorkingDirectory $csPath -ArgumentList $csARGS,"/cmd=listusers","/raw","/outfile=",$csUserList

  12. #
  13. # Once the raw text file is created, import that into a user list and the export the information back out to a .CSV file
  14. #
  15. Import-Csv -Delimiter ':' -Path $csUserList -Header "UserID","Username" | Export-Csv -Path "$csUserList`.csv" -NoTypeInformation

  16. #
  17. #
  18. Write-Output "Complete! check [$csUserList`.csv] for details"

    • Related Articles

    • 2019: Cornerstone MFT Server Release Notes

      Important Information Cornerstone MFT Server must be installed under an account that has full administrative rights to the computer on which the software is being installed.  To uninstall Cornerstone MFT Server, use the Add/Remove Programs feature of ...
    • 2019: Titan FTP Server Release Notes

      Important Information Titan FTP Server must be installed under an account that has full administrative rights to the computer on which the software is being installed.  To uninstall Titan FTP Server, use the Add/Remove Programs feature of the Windows ...
    • 2019: How-To: Testing the bandwidth throughput for Titan FTP or Cornerstone MFT Server

      There may occur situations where file transfers are slower than expected and you will need to diagnose the source of the bottleneck. This article will walk through the process of testing transfer speeds at various endpoints to help determine the ...
    • 2019: Titan & Cornerstone Online Help Guides

      We have fully functional online help guides for each product (and our WebUI) which cover every aspect of the products in detail, including advanced techniques such as events configuration and SRXconfig. There are also printer-friendly PDF versions ...
    • NX: Cornerstone MFT Server system requirements

      The following lists the minimum system requirements for running Cornerstone MFT Server - NextGen Edition Supported Operating Systems Windows Server 2012 (and R2) and later, all 64-bit editions (32-bit is not supported) Windows 10 Pro and later, ...