Creating Policies

The PowerShell Extensions for Ivanti DSM provide the cmdlet New-EmdbPolicy for Policy creation.

Examples:


Hint: The execution of these examples requires a connected PowerShell drive.


In the example, a Software Policy for the Software Package named "Adobe Reader 9.0" from the directory "Global Software Library\Application Library\Adobe\Adobe Reader" to the Computer Group "Adobe Reader 9.0 systems" in the Domain "solys.local" is created:


$MySwPackage = Get-EmdbSoftwarePackage "emdb:\rootDSE\Global Software Library\Application Library\Adobe\Adobe Reader\Adobe Reader 9.0"

$MyGroup = Get-EmdbGroup "emdb:\rootDSE\Managed Users & Computers\solys.local\Adobe Reader 9.0 systems"

New-EmdbPolicy -AssignedObject $MySwPackage -TargetObject $MyGroup


Hint: The cmdlet New-EmdbPolicy provides a variety of switches that can affect the creation of Policies and their behaviour. You will find details and examples of the usage of the switches in the Cmdlet-Reference.