Add Powershell
parent
f25ab1bcc3
commit
a7b10e0178
1 changed files with 14 additions and 0 deletions
14
Powershell.md
Normal file
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
|
||||||
|
```
|
Loading…
Add table
Add a link
Reference in a new issue