From cd03ae818bea88c7449c7b65f11a08d6a474d714 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Wed, 16 Apr 2025 15:57:59 -0400 Subject: [PATCH] powershell senddefaultpii landing page --- platform-includes/getting-started-config/powershell.mdx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/platform-includes/getting-started-config/powershell.mdx b/platform-includes/getting-started-config/powershell.mdx index 5af09201f96789..d445254e7b4553 100644 --- a/platform-includes/getting-started-config/powershell.mdx +++ b/platform-includes/getting-started-config/powershell.mdx @@ -5,6 +5,11 @@ Once this is done, Sentry's PowerShell SDK can be used to capture errors. # You may need to import the module if you've just installed it. Import-Module Sentry -# Start the Sentry SDK with the default options. -Start-Sentry '___PUBLIC_DSN___' +Start-Sentry { + # You can set it in the SENTRY_DSN environment variable, or you can set it in code here. + $_.Dsn = '___PUBLIC_DSN___' + + # If you'd like to include data that potentially includes PII, such as Machine Name + $_.SendDefaultPii = true +} ```