public/New-AppVentiXPublishingTask.ps1

<#
    .SYNOPSIS
        Creates a new AppVentiX publishing task.
 
    .DESCRIPTION
        The New-AppVentiXPublishingTask function creates a new publishing task for AppVentiX. It allows you to specify various parameters such as the type of package, machine group, priority, name, version, group, path, and more. The function also checks if the package exists and if AppVentiX is licensed before creating the publishing task.
 
    .PARAMETER Type
        Specifies the type of package. Valid values are 'MSIX', 'APPV', and 'Sharedcontainer'.
 
    .PARAMETER MachineGroupFriendlyname
        Specifies the friendly name of the machine group.
 
    .PARAMETER Priority
        Specifies the priority of the publishing task. Default value is 100.
 
    .PARAMETER Group
        Specifies the group of the publishing task.
        Example: 'contoso.com\group1'
 
    .PARAMETER Path
        Specifies the path to the package file.
 
    .PARAMETER AlwaysPublish
        Indicates whether the package should always be published.
 
    .PARAMETER WhenNotExist
        Specifies the action to take when the package does not exist.
        Valid values are 'Add' and 'Skip'.
 
    .PARAMETER ForceApplicationShutdownWhenUnpublishing
        Indicates whether to force application shutdown when unpublishing.
 
    .PARAMETER PublishSeamless
        Indicates whether to publish the package seamlessly.
 
    .PARAMETER ConfigShare
        Specifies the path to the AppVentiX configuration share.
        You can ommit this parameter if Set-AppVentiXConfigShare has been called.
 
    .EXAMPLE
        New-AppVentiXPublishingTask -Type 'MSIX' -MachineGroupFriendlyname 'Group1' -Priority 50 -Name 'Task1' -Version '1.0' -Group 'Group1' -Path 'C:\Packages\Package1.msix' -AlwaysPublish -WhenNotExist 'Add' -PackageFullName 'Package1' -ForceApplicationShutdownWhenUnpublishing -PublishSeamless -Task 'Add'
 
        Creates a new publishing task with the specified parameters.
 
    .NOTES
        Function : New-AppVentiXPublishingTask
        Author : John Billekens Consultancy
        Copyright: Copyright (c) AppVentiX
        Version : 1.5
        Requires : Valid AppVentiX license
#>

function New-AppVentiXPublishingTask {
    [CmdletBinding(DefaultParameterSetName = 'General', SupportsShouldProcess, ConfirmImpact = 'Low')]
    Param(
        [Parameter(ParameterSetName = 'General', Mandatory)]
        [ValidateSet('MSIX', 'APPV', 'Sharedcontainer')]
        [String]$Type,

        [Parameter(ParameterSetName = 'General')]
        [String]$MachineGroupFriendlyname = 'All Machine Groups',

        [Parameter(ParameterSetName = 'General')]
        [int]$Priority = 100,

        [Parameter(ParameterSetName = 'General', Mandatory)]
        [ValidatePattern('^.*\.*$')]
        [String]$Group,

        [Parameter(ParameterSetName = 'General', Mandatory)]
        [System.IO.FileInfo]$Path,

        [Parameter(ParameterSetName = 'General')]
        [Switch]$AlwaysPublish,

        [Parameter(ParameterSetName = 'General')]
        [ValidateSet('Add', 'Skip')]
        [String]$WhenNotExist = "Add",

        [Parameter(ParameterSetName = 'General')]
        [Switch]$ForceApplicationShutdownWhenUnpublishing,

        [Parameter(ParameterSetName = 'General')]
        [Switch]$PublishSeamless,

        [Parameter(ParameterSetName = 'General')]
        [String]$WVDapplicationgroup,

        [Parameter(ParameterSetName = 'General')]
        [Switch]$PublishInAzure,

        [Parameter(ParameterSetName = 'General')]
        [String]$DynamicUserConfigurationPath,

        [Parameter(ParameterSetName = 'General')]
        [Switch]$ReturnPublishCommand,

        [Parameter(DontShow, ParameterSetName = 'General')]
        [ValidateNotNullOrEmpty()]
        [String]$ConfigShare = $Script:AppVentix.ConfigShare

    )
    if (Test-AppVentiXIsLicensed -ConfigShare $ConfigShare) {
        if (-Not ($Path.Exists)) {
            Throw [System.Management.Automation.ItemNotFoundException] "Package not found: `"$Path`""
        }
        $publishingTasksFullname = Join-Path -Path $ConfigShare -ChildPath $Script:AppVentiX.PublishingTasksFilename
        Write-Verbose "Reading data from $($publishingTasksFullname)"
        $publishingTasksXml = New-Object -TypeName System.Xml.XmlDocument
        try {
            $publishingTasksXml.Load($publishingTasksFullname)
        } catch {
            Write-Verbose "Could not load the Publishing Tasks file, $($_.Exception.Message)"
            if (Test-Path -Path $publishingTasksFullname) {
                Write-Warning "The Publishing Tasks file exists but is not accessible!"
                Throw "The Publishing Tasks file exists but is not accessible!"
            } else {
                Write-Warning "The Publishing Tasks file does not yet exists, creating a new file!"
            }
        }
        $publishingTasksXml = Format-AppVentiXPublishingTasksXml -XmlDocument $publishingTasksXml
        Write-Verbose "Checking the machine group `"$MachineGroupFriendlyname`""
        if (([String]::IsNullOrEmpty($MachineGroupFriendlyname)) -or ($MachineGroupFriendlyname -like 'All Machine Groups')) {
            $MachineGroupFriendlyname = 'All Machine Groups'
            $MachineGroup = 'All'
        } else {
            try {
                $machineGroup = Get-AppVentiXMachineGroup -Name $MachineGroupFriendlyname -ConfigShare $ConfigShare
                if ($null -eq $machineGroup.FriendlyName -or $machineGroup.FriendlyName -notlike $MachineGroupFriendlyname) {
                    Throw "Machine group `"$MachineGroupFriendlyname`" not found!"
                }
            } catch {
                Write-Error $_
                Throw "Machine group `"$MachineGroupFriendlyname`" not found!"
            }
            $MachineGroupFriendlyname = $machineGroup.FriendlyName
            $MachineGroup = $machineGroup.GroupName
        }
        $Action = 'Publish'
        Write-Verbose "Generating a new GUID for the task"
        $Id = [GUID]::NewGuid()

        if ($Group -notlike '*\*')  {
            Write-Warning "The parameter -Group should contain the domain name and the groupname, e.g. `"DOMAIN.LOCAL\GROUP`""
            Write-Warning "Falling back on default (user dns) value: `"$($env:USERDOMAIN)\$Group`""
            $Group = "$($env:USERDOMAIN)\$Group"
        }
        $packageDetails = Get-ManifestDetail -Filename $Path
        if ($packageDetails.Type -like 'APPV') {
            Write-Verbose "Package type is APPV"
            $name = $packageDetails.DisplayName
            if ([String]::IsNullOrEmpty($DynamicUserConfigurationPath)) {
                $DynamicUserConfigurationPath = 'None'
            }
            if ($ForceApplicationShutdownWhenUnpublishing -eq $true) {
                Write-Warning "The parameter -ForceApplicationShutdownWhenUnpublishing is not used for APPV files, ignoring the parameter"
            }
        } else {
            Write-Verbose "Package type is MSIX"
            $Name = $packageDetails.Name
            if (-Not [String]::IsNullOrEmpty($DynamicUserConfigurationPath)) {
                Write-Warning "The parameter -DynamicUserConfigurationPath is not used for MSIX files, ignoring the parameter"
                $DynamicUserConfigurationPath = $null
            }
        }
        $Version = $packageDetails.Version
        $PackageFullName = $packageDetails.PackageFullName
        Write-Verbose "Creating a new task element in the XML file"
        $ptUserPackagesElement = $publishingTasksXml.SelectSingleNode("//UserPublishingTasks/Packages")
        $ptTaskElement = $ptUserPackagesElement.AppendChild($publishingTasksXml.CreateElement("Task"))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("Type"))).AppendChild($publishingTasksXml.CreateTextNode($Type))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("MachineGroup"))).AppendChild($publishingTasksXml.CreateTextNode($MachineGroup))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("MachineGroupFriendlyname"))).AppendChild($publishingTasksXml.CreateTextNode($MachineGroupFriendlyname))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("Priority"))).AppendChild($publishingTasksXml.CreateTextNode($Priority))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("Id"))).AppendChild($publishingTasksXml.CreateTextNode($Id))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("Action"))).AppendChild($publishingTasksXml.CreateTextNode($Action))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("Name"))).AppendChild($publishingTasksXml.CreateTextNode($Name))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("Version"))).AppendChild($publishingTasksXml.CreateTextNode($Version))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("Group"))).AppendChild($publishingTasksXml.CreateTextNode($Group))
        try {
            Write-Verbose "Retrieving the SID for group `"$Group`""
            $groupSID = Get-GroupSID -GroupName $Group -ErrorAction Stop
            $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("ADGroupSID"))).AppendChild($publishingTasksXml.CreateTextNode($groupSID))
        } catch {
            Write-Verbose "Could not retrieve the SID for group `"$Group`", $($_.Exception.Message)"
        }
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("Path"))).AppendChild($publishingTasksXml.CreateTextNode($Path))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("AlwaysPublish"))).AppendChild($publishingTasksXml.CreateTextNode($AlwaysPublish.ToString()))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("Whennotexist"))).AppendChild($publishingTasksXml.CreateTextNode($WhenNotExist))
        $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("PublishSeamless"))).AppendChild($publishingTasksXml.CreateTextNode($PublishSeamless.ToString()))
        if ($packageDetails.Type -like 'APPV') {
            Write-Verbose "Adding APPV specific elements"
            $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("PackageId"))).AppendChild($publishingTasksXml.CreateTextNode($packageDetails.PackageId.ToString()))
            $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("VersionId"))).AppendChild($publishingTasksXml.CreateTextNode($packageDetails.VersionId.ToString()))
            $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("DynamicUserConfigurationPath"))).AppendChild($publishingTasksXml.CreateTextNode($DynamicUserConfigurationPath))
            $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("GlobalPublishForUser"))).AppendChild($publishingTasksXml.CreateTextNode('False'))
        } elseif ($packageDetails.Type -like 'MSIX'){
            Write-Verbose "Adding MSIX specific elements"
            $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("PackageFullName"))).AppendChild($publishingTasksXml.CreateTextNode($PackageFullName))
            $null = $($ptTaskElement.AppendChild($publishingTasksXml.CreateElement("ForceApplicationShutdownWhenUnpublishing"))).AppendChild($publishingTasksXml.CreateTextNode($ForceApplicationShutdownWhenUnpublishing.ToString()))
        }
        if ($PublishSeamless.ToBool() -eq $true) {
            Write-Verbose "Adding Seamless elements"
            $ptSeamlessElement = $ptTaskElement.AppendChild($publishingTasksXml.CreateElement("Seamless"))
            $seamlessAppCounter = 0
            $publishedApps = @()
            ForEach ($app in $packageDetails.Applications) {
                Write-Verbose "Adding SeamlessApplication element for `"$($app.FriendlyName)`" / `"$($app.Description)`""
                $ptSeamlessApplicationElement = $ptSeamlessElement.AppendChild($publishingTasksXml.CreateElement("SeamlessApplication"))
                $null = $($ptSeamlessApplicationElement.AppendChild($publishingTasksXml.CreateElement("SeamlessApplicationNumber"))).AppendChild($publishingTasksXml.CreateTextNode($seamlessAppCounter.ToString()))
                $null = $($ptSeamlessApplicationElement.AppendChild($publishingTasksXml.CreateElement("SeamlessApplicationExecutable"))).AppendChild($publishingTasksXml.CreateTextNode($app.AppVentiXExecutable))
                $null = $($ptSeamlessApplicationElement.AppendChild($publishingTasksXml.CreateElement("SeamlessApplicationArgument"))).AppendChild($publishingTasksXml.CreateTextNode(""))
                if ($packageDetails.Type -like 'APPV') {
                    $seamlessApplicationFriendlyName = ''
                    $seamlessApplicationIconPath = ''
                } elseif ($packageDetails.Type -like 'MSIX') {
                    $seamlessApplicationFriendlyName = $app.FriendlyName
                    $seamlessApplicationIconPath = $app.IconWindowsPath
                }
                $null = $($ptSeamlessApplicationElement.AppendChild($publishingTasksXml.CreateElement("SeamlessApplicationFriendlyName"))).AppendChild($publishingTasksXml.CreateTextNode($seamlessApplicationFriendlyName))
                $null = $($ptSeamlessApplicationElement.AppendChild($publishingTasksXml.CreateElement("SeamlessApplicationIconPath"))).AppendChild($publishingTasksXml.CreateTextNode($seamlessApplicationIconPath))
                $null = $($ptSeamlessApplicationElement.AppendChild($publishingTasksXml.CreateElement("SeamlessApplicationRunVirtual"))).AppendChild($publishingTasksXml.CreateTextNode("False"))
                $publishedApp = @{}
                $publishedApp.Path = 'C:\Program Files\AppVentiX\AppVentiX Agent\AppVentiX Wrapper.exe'
                $publishedApp.identifier = "$($WVDapplicationgroup)/$($app.FriendlyName)"
                $publishedApp.DisplayName = "$($seamlessApplicationFriendlyName)"
                $publishedApp.Description = "$($app.Description)"
                $publishedApp.RequireCommandLine = $true
                $publishedApp.CommandLine = "$($Id)#$($seamlessAppCounter.ToString())"
                $publishedApp.IconPath = "$($app.IconWindowsPath)"
                $publishedApp.IconIndex = 0
                if ($ReturnPublishCommand) {
                    Write-Output $([PSCustomObject]@{
                            Name      = $app.FriendlyName
                            Program   = "C:\Program Files\AppVentiX\AppVentiX Agent\AppVentiX Wrapper.exe"
                            Parameter = '{0}#{1}' -f $Id, $seamlessAppCounter
                            IconPath  = $app.SeamlessApplicationIconPath
                        })
                }
                $publishedApps += $publishedApp.Clone()
                $seamlessAppCounter++
            }
            if (-Not [String]::IsNullOrEmpty($WVDapplicationgroup)) {
                $null = $($ptSeamlessElement.AppendChild($publishingTasksXml.CreateElement("SeamlessWVDapplicationgroup"))).AppendChild($publishingTasksXml.CreateTextNode($WVDapplicationgroup))
                if ($PublishInAzure) {
                    Write-Warning "PublishInAzure is not yet supported for AVD, create Application group `"$WVDapplicationgroup`" manually in Azure Portal"
                }
            }
        } else {
            Write-Verbose "No Seamless elements added"
        }
        if ($PSCmdlet.ShouldProcess("$($Script:AppVentiX.PublishingTasksFilename)")) {
            try {
                $publishingTasksXml.Save($publishingTasksFullname)
            } catch {
                Write-Warning "Could not save the file `"$($publishingTasksFullname)`"! No changes made."
            }
        }
    } else {
        Write-Warning 'AppVentiX is not licensed!'
    }
}

# SIG # Begin signature block
# MIIndQYJKoZIhvcNAQcCoIInZjCCJ2ICAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCCY9L6qp2AbkSQx
# U+Vt+K4pte96uDK/aEHv7BGXIBl9NqCCICkwggXJMIIEsaADAgECAhAbtY8lKt8j
# AEkoya49fu0nMA0GCSqGSIb3DQEBDAUAMH4xCzAJBgNVBAYTAlBMMSIwIAYDVQQK
# ExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2Vy
# dGlmaWNhdG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