---
title: "Discussion on \"Darktrace API - Powershell example\" | Hashnode"
description: "Discussion on \"Darktrace API - Powershell example\". Here's an example code snippet to make an API call to Darktrace using Powershell. Find the instances of 'changeme' and change to the correct value.\n$Time = (Get-Date).ToUniversalTime().ToString(\"yyyy-MM-dd HH:mm:ss\")\n$PrivateToken = \"changeme\"\n$Publi..."
url: "https://hashnode.com/posts/darktrace-api-powershell-example/64e434404088e28a1e17b5ff"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Darktrace API - Powershell example](https://simondiehm.com/darktrace-api-powershell-example?utm_source=hashnode&utm_medium=feed)

Here's an example code snippet to make an API call to Darktrace using Powershell. Find the instances of 'changeme' and change to the correct value. $Time = (Get-Date).ToUniversalTime().ToString("yyyy-MM-dd HH:mm:ss") $PrivateToken = "changeme" $Publi...

Aug 22, 2023 · 1 min read · simondiehm.com  
Updated May 9, 2024  
Read the article

-   [#powershell](https://hashnode.com/tag/powershell)
-   [#apis](https://hashnode.com/tag/apis)
-   [#darktrace](https://hashnode.com/tag/darktrace)

## Written by

[Simon Diehm](https://hashnode.com/@simondiehm)

@simondiehm

  
[View profile](https://hashnode.com/@simondiehm)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
