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