Windows (Powershell) Devices
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.”
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.
These are the basic steps that need to be accomplished:
-
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
-
Open Powershell as an admin user (local Administrator may work better, if a domain admin fails)
-
In the terminal, navigate to the directory the script is in
-
Collect data by running powershell -ExecutionPolicy bypass
.\xylok-collect.ps1
-
Copy the results file called
xylok-results-<machine info>.xylok
off the system and to the Xylok Scanner host -
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.
-
Upload the results. See Uploading and Importing Data.