Xylok Documentation
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Windows (Powershell) Devices

Instruction Overview

Data collection is done via Powershell for modern Windows systems. These instructions assume the user has some familiarity using the command line, but additional help is available in the Windows additional instructions. If your organization has any questions regarding data collection that this document does not cover, contact Xylok support.

Because Windows has more controls in place for executing these scripts than batch, it may be necessary to temporarily set the Powershell execution policy to “Unrestricted.”

Applicable Systems

These instructions apply Windows versions using the Powershell-based environment. This currently includes:

  • Windows 10+
  • Windows Server 2016+

For instructions for other Windows systems, please see Windows (Non-Powershell) Devices.

Execution Procedure

These are the basic steps that need to be accomplished:

  1. Copy all files from the collection script directory for the machine to a location writable by the machine being checked.

    a. The Desktop or a file share may be a good option b. Making a new directory makes removing any Xylok files easier

  2. Open Powershell as an admin user (local Administrator may work better, if a domain admin fails)

  3. In the terminal, navigate to the directory the script is in

  4. Collect data by running powershell -ExecutionPolicy bypass .\xylok-collect.ps1

  5. Copy the results file called xylok-results-<machine info>.xylok off the system and to the Xylok Scanner host

  6. At the end of the script, you will be prompted to remove any temporary files creating during data collection. Choose “Y” to remove those files or “L” to leave them all.

  7. Upload the results. See Uploading and Importing Data.