Comments (2)
Please double check that the OID used for assignments exists in the tenant.
from intune-powershell-sdk.
It was resolved in this form:
$groupId = (Get-Groups | Where-Object {$PsItem.displayname -eq 'GroupName'}).id
$displayName = "iOS App Protection Policy3"
$description = 'TestInune iOS'
[timespan]$periodOfflineBeforeAccessCheck = '0'
[timespan]$periodOnlineBeforeAccessCheck = '5'
$allowedInboundDataTransferSources = 'managedApps'
$allowedOutboundDataTransferDestinations = 'managedApps'
$organizationalCredentialsRequired = $false
$allowedOutboundClipboardSharingLevel = 'allApps'
$dataBackupBlocked = $true
$deviceComplianceRequired = $false
[bool]$managedBrowserToOpenLinksRequired = $true
$saveAsBlocked = $true
[timespan]$periodOfflineBeforeWipeIsEnforced = '90'
$pinRequired = $false
$maximumPinRetries = 6
$simplePinBlocked = $true
$minimumPinLength = 6
$pinCharacterSet = 'alphanumericAndSymbol'
[timespan]$periodBeforePinReset = '0'
$allowedDataStorageLocations = @('localStorage', 'oneDriveForBusiness', 'sharePoint')
$contactSyncBlocked = $true
$printBlocked = $false
$fingerprintBlocked = $false
$disableAppPinIfDevicePinIsSet = $false
$managedBrowser = 'notConfigured'
$isAssigned = $true
$appDataEncryptionType = 'whenDeviceLocked'
$deployedAppCount = 1
$faceIdBlocked = $false
$customBrowserProtocol = $null
$assignments = @(
New-TargetedManagedAppPolicyAssignmentObject `
-target (New-DeviceAndAppManagementAssignmentTargetObject -groupAssignmentTarget -groupId $groupId)
)
New-DeviceAppManagement_IosManagedAppProtections -assignments $assignments -displayName $displayName -description $description -periodOfflineBeforeAccessCheck $periodOfflineBeforeAccessCheck -periodOnlineBeforeAccessCheck $periodOnlineBeforeAccessCheck `
-allowedInboundDataTransferSources $allowedInboundDataTransferSources -allowedOutboundDataTransferDestinations $allowedOutboundDataTransferDestinations `
-organizationalCredentialsRequired $organizationalCredentialsRequired `
-allowedOutboundClipboardSharingLevel $allowedOutboundClipboardSharingLevel `
-dataBackupBlocked $dataBackupBlocked `
-saveAsBlocked $saveAsBlocked `
-periodOfflineBeforeWipeIsEnforced $periodOfflineBeforeWipeIsEnforced `
-pinRequired $pinRequired `
-maximumPinRetries $maximumPinRetries `
-simplePinBlocked $simplePinBlocked `
-minimumPinLength $minimumPinLength `
-pinCharacterSet $pinCharacterSet `
-periodBeforePinReset $periodBeforePinReset `
-allowedDataStorageLocations $allowedDataStorageLocations `
-contactSyncBlocked $contactSyncBlocked `
-printBlocked $printBlocked `
-fingerprintBlocked $fingerprintBlocked `
-disableAppPinIfDevicePinIsSet $disableAppPinIfDevicePinIsSet `
-minimumRequiredOsVersion $minimumRequiredOsVersion `
-minimumWarningOsVersion $minimumWarningOsVersion `
-minimumRequiredAppVersion $minimumRequiredAppVersion `
-minimumWarningAppVersion $minimumWarningAppVersion `
-appDataEncryptionType $appDataEncryptionType `
-faceIdBlocked $faceIdBlocked
Output
Policy was created with assignments assigned.
from intune-powershell-sdk.
Related Issues (20)
- Get-IntuneManagedDevice returns all devices in a single result
- Get-IntuneDeviceConfigurationPolicy Encrypted omasettings
- Get-IntuneMobileApp and Get-DeviceAppManagement_MobileApps not retrieving macOS LoB Apps
- This repo is missing important files HOT 2
- Where is Disconnect-MSGraph? HOT 1
- Get-AADGroupmember doesn't work on groups that have a source of Windows Server AD HOT 1
- Exclude Microsoft Intune PowerShell from Compliance Policy
- Security & Compliance Center connection error
- Exchange Online Prerequisite Check Failure HOT 1
- Unable to Connect-msgraph using client secret or cert
- Error on Invoke-IntuneManagedDeviceSyncDevice
- Error on New-MgDeviceManagementDeviceEnrollmentConfiguration HOT 1
- H
- Connect Graph issues
- Get-IntuneMobileApp Productversion parameter shows the wrong data
- Update-mgdevicemanagementmanageddevice -devicecategory HOT 2
- 504 Gateway Timeout when using Get-IntuneManagedDevice | Get-MSGraphAllPages HOT 1
- Assignments missing from get-intunemobileapp output
- Sorry, but weβre having trouble signing you in. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intune-powershell-sdk.