# \#powershell

**URL:** https://discourse.sensu.io/tag/powershell/95.md

[Latest](https://discourse.sensu.io/latest.md) · [Categories](https://discourse.sensu.io/categories.md) · [Tags](https://discourse.sensu.io/tags.md)

---

## [Event status does not match script exit code](https://discourse.sensu.io/t/event-status-does-not-match-script-exit-code/3131)

<div class="topic-metadata">

**Author:** [@romainquere](https://discourse.sensu.io/u/romainquere)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 6:41am UTC](https://discourse.sensu.io/t/event-status-does-not-match-script-exit-code/3131 "2023-06-21T06:41:30Z")

</div>

I used check-windows-disk.ps1 powershell script from asset samroy92/sensu-plugins-windows. When I execute manually the script on my Windows Server environment, it detects a 99% full disk and as expected the exit code is…
