36 lines
876 B
Markdown
36 lines
876 B
Markdown
# Headless Runtime
|
|
|
|
This folder contains the reusable CLI module for the repo.
|
|
|
|
## Module
|
|
|
|
* [IntuneManagement.Headless.psd1](/Users/avedelphina/Local/IntuneManagement/Headless/IntuneManagement.Headless.psd1)
|
|
* [IntuneManagement.Headless.psm1](/Users/avedelphina/Local/IntuneManagement/Headless/IntuneManagement.Headless.psm1)
|
|
|
|
## Exported commands
|
|
|
|
* `Get-DefaultIntunePolicyObjectTypes`
|
|
* `Export-IntunePolicies`
|
|
* `Import-IntunePolicies`
|
|
* `Invoke-IntunePolicyAction`
|
|
|
|
## Example
|
|
|
|
```powershell
|
|
Import-Module ./Headless/IntuneManagement.Headless.psd1
|
|
|
|
Export-IntunePolicies `
|
|
-TenantId "<source-tenant-id>" `
|
|
-AppId "<app-id>" `
|
|
-Secret "<client-secret>" `
|
|
-ExportPath "/tmp/intune-export"
|
|
```
|
|
|
|
```powershell
|
|
Export-IntunePolicies `
|
|
-TenantId "<source-tenant-id>" `
|
|
-AuthMode Browser `
|
|
-RedirectUri "http://localhost" `
|
|
-ExportPath "/tmp/intune-export"
|
|
```
|