Powershell script to list application with no configured server
This script helps in housekeeping of Citrix Farm
Add-PSSnapin *citrix*
$applications = Get-XAApplication
$servers = Get-XAServer
foreach($app in $applications)
{
$ser = $null
$ser = Get-XAServer -BrowserName $app
If ($app.ApplicationType -eq "ServerInstalled")
{
if ($ser -eq $null )
{
echo $app.displayname | Out-File c:\output.txt -Append
}
}
}
output will contains list of apps with no configured server.
This script helps in housekeeping of Citrix Farm
Add-PSSnapin *citrix*
$applications = Get-XAApplication
$servers = Get-XAServer
foreach($app in $applications)
{
$ser = $null
$ser = Get-XAServer -BrowserName $app
If ($app.ApplicationType -eq "ServerInstalled")
{
if ($ser -eq $null )
{
echo $app.displayname | Out-File c:\output.txt -Append
}
}
}
output will contains list of apps with no configured server.
No comments:
Post a Comment