Grant-AppvZeroPortalPackage
Grants AD groups or users access to a package (entitlement).
Syntax
Grant-AppvZeroPortalPackage -Name <string> [-Version <string>] -PackageID <Guid> [-VersionID <Guid>] -PackageGuid <Guid> -VersionGuid <Guid> -Groups <string[]> -Sid <string> [-Force]
Description
Equivalent to Grant-AppvServerPackage. Resolves group names to SIDs via the ZeroPortal LDAP integration.
Parameters
-Groups<string[]>Array of AD group or user names (e.g. "DOMAIN\GroupName"). Names are resolved to SIDs via the server-side LDAP helper.
-Sid<string>Pre-resolved SID string (e.g. "S-1-5-21-..."). Alternative to -Groups.
-Force<switch>Suppresses the confirmation prompt.
Examples
Grant-AppvZeroPortalPackage -Name "Office*" -Groups "CORP\AppV-Users","CORP\AppV-Admins"
Get-AppvZeroPortalPackage "Office*" | Grant-AppvZeroPortalPackage -Groups "CORP\AppV-Users"
Grant-AppvZeroPortalPackage -PackageID '08f673b8-...' -Sid 'S-1-5-21-...'