Add Powershell

Caffeine Fueled 2025-10-01 18:57:17 +00:00
parent f25ab1bcc3
commit a7b10e0178

14
Powershell.md Normal file

@ -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
```