AppHandling/Get-NavContainerAppInfo.ps1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
<#
.Synopsis Get Nav App Info from Nav container .Description Creates a session to the Nav container and runs the Nav CmdLet Get-NavAppInfo in the container .Parameter containerName Name of the container in which you want to enumerate apps (default navserver) .Example Get-NavContainerAppInfo -containerName test2 #> function Get-NavContainerAppInfo { Param( [string]$containerName = "navserver" ) $session = Get-NavContainerSession -containerName $containerName Invoke-Command -Session $session -ScriptBlock { Get-NavAppInfo -ServerInstance NAV } } Export-ModuleMember -Function Get-NavContainerAppInfo |