Murty M
asked on
Required Editable PowerShell Script to get Citrix XenApp 7.x Inventory
Required PowerShell Script to get Citrix XenApp 7.x Inventory as like below Script (below script for XenApp 6.5 Inventory)
In this below script, we can add or remove columns in the output CSV file.
Similar to editable PS script required for Citrix XenApp 7.x Inventory.
PowerShell XenApp 6.5 Inventory:
http://euc.consulting/blog/powershell-xenapp-application-report/#comment-30019
# Load XenApp cmdlets
#Added Accounttype
add-pssnapin Citrix.* -erroraction silentlycontinue
# Create variables
$outpath = [environment]::getfolderpa th("mydocu ments") + "\XenApp_Published_App_Rep ort.csv"
$xaapplist = get-xaapplication
$appreport=foreach ($application in $xaapplist) {
get-xaapplicationreport -BrowserName $application.BrowserName
Get-XAAccount -BrowserName $application
}
# pipe appreport variable and select required objects for output
$appreport |
select-object BrowserName,
applicationtype,
enabled,
AccountName,
AccountType,
@{n='accounts'; e={$_.accounts}},
@{n='servernames'; e={$_.servernames}},
@{n='workergroupnames'; e={$_.workergroupnames}},
folderpath,
commandlineexecutable,
clientfolder,
startmenufolder,
encryptionlevel,
encryptionrequired,
windowtype,
colordepth |
#Export results to a CSV
export-csv $outpath
In this below script, we can add or remove columns in the output CSV file.
Similar to editable PS script required for Citrix XenApp 7.x Inventory.
PowerShell XenApp 6.5 Inventory:
http://euc.consulting/blog/powershell-xenapp-application-report/#comment-30019
# Load XenApp cmdlets
#Added Accounttype
add-pssnapin Citrix.* -erroraction silentlycontinue
# Create variables
$outpath = [environment]::getfolderpa
$xaapplist = get-xaapplication
$appreport=foreach ($application in $xaapplist) {
get-xaapplicationreport -BrowserName $application.BrowserName
Get-XAAccount -BrowserName $application
}
# pipe appreport variable and select required objects for output
$appreport |
select-object BrowserName,
applicationtype,
enabled,
AccountName,
AccountType,
@{n='accounts'; e={$_.accounts}},
@{n='servernames'; e={$_.servernames}},
@{n='workergroupnames'; e={$_.workergroupnames}},
folderpath,
commandlineexecutable,
clientfolder,
startmenufolder,
encryptionlevel,
encryptionrequired,
windowtype,
colordepth |
#Export results to a CSV
export-csv $outpath
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Dear Admin, Please followup on this question.
ASKER
Thank you
ASKER
I need a simple script. I have given an example for 6.5. Similarly, can I get a simple Citrix XenApp 7.x Inventory ?