From a7b10e0178ccd67aac113011f9186e690f7a2ea0 Mon Sep 17 00:00:00 2001 From: Caffeine Fueled Date: Wed, 1 Oct 2025 18:57:17 +0000 Subject: [PATCH] Add Powershell --- Powershell.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Powershell.md diff --git a/Powershell.md b/Powershell.md new file mode 100644 index 0000000..0f0d844 --- /dev/null +++ b/Powershell.md @@ -0,0 +1,14 @@ +## Simple Intune Test Script +```powershell +$hostname = $env:COMPUTERNAME +$status = "OK" +$body = "$hostname,$status" + +$headers = @{ + "Authorization" = "Bearer 9d207bf0-10f5-4d8f-a479-22ff5aeff8d1" +} + +$domain = "http://example.com:8000/api/test1/" + +Invoke-RestMethod -Uri $domain -Method Post -Body $body -Headers $headers +``` \ No newline at end of file