Overblog Tous les blogs Top blogs Technologie & Science Tous les blogs Technologie & Science
Editer l'article Suivre ce blog Administration + Créer mon blog
MENU

[XenApp] [Powershell] Add a Published App to XenApp using Powershell

Publié le par damcuvelier

[XenApp] [Powershell] Add a Published App to XenApp using Powershell
Connect to the computer where XenApp is installed and run this script:

->> AddaPublishedApp.ps1 -AppName Notepad -XAFldPath "XAApps" -XAcmdln "c:\windows\system32\notepad.exe" -XAWD "C:\Windows\system32" -DomainAccount <domain\accountname> -Srv <your xenapp server name>


AddaPublishedApp.ps1:

Param($AppName,$XAFldPath,$XAcmdln,$XAWD,$DomainAccount,$Srv)        

#Add Snapin Citrix
Add-PSsnapin citrix*


# 1    Create the published application:
New-XAApplication -BrowserName $AppName -ApplicationType ServerInstalled -DisplayName $AppName -FolderPath $XAFldPath -Enabled $true -CommandLineExecutable $XAcmdln -WorkingDirectory $XAWD -AnonymousConnectionsAllowed $false -AddToClientStartMenu $true


# 2    Add users/groups to the application:
Add-XAApplicationAccount -BrowserName $AppName -Accounts $DomainAccount


# 3    Assign servers to the published app:
Add-XAApplicationServer -BrowserName $AppName -ServerNames $Srv

your application is added in xenapp:

 

Commenter cet article