# Diagnostic Tool

If you reach out to Twosense for support, you may be asked to run the Twosense Diagnostic Tool. It is a PowerShell script that runs a suite of self-tests, collects basic information about the system (such as OS version, domain-joined status, etc.), and copies logs from installed Twosense software to a single zip file that can be sent back to Twosense for further investigation.

To run the tool, follow these steps on the machine that is experiencing the issue:

1. If possible, sign in as the user experiencing the issue.
2. Open a new PowerShell window <mark style="color:yellow;">**as administrator**</mark>.
3. Navigate to a directory where you want the diagnostic information to be saved (such as the desktop, for example).
4. Paste the following one-liner into the window and run it:

```powershell
Set-ExecutionPolicy RemoteSigned -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://twosense-public.s3.amazonaws.com/TwosenseDiagnosticTool.ps1'))
```

{% hint style="info" %}
If you wish to inspect the contents or verify the integrity of the script before execution, you can download it directly from the URL above. The script is digitally signed by Twosense; you may verify this under **File Properties -> Digital Signatures**.\
\
![](/files/Do9ME1SIyeE8gYntQBUZ)
{% endhint %}

Once the diagnostic tool is finished, it will offer to send the information to the Twosense team. After entering your details, the diagnostic information will automatically be sent to us for further inspection. If you're having trouble with the automatic upload process, you can attach the generated zip file to an email instead.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.twosense.ai/troubleshooting/diagnostic-tool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
