Powershell script to list publish application have no configured users
This script will help in housekeeping of Citrix farm
Add-PSSnapin *citrix*
$applications = Get-XAApplication
foreach($app in $applications)
{
$user = $null
$user = Get-XAAccount -BrowserName $app | Select-Object accountdisplayname
if ($user -eq $null )
{
echo $app.displayname $app.enabled | Out-File c:\output.csv -Append
}
}
you will get an output in csv file , output will contain application name and status whether application is enabled or disabled
This script will help in housekeeping of Citrix farm
Add-PSSnapin *citrix*
$applications = Get-XAApplication
foreach($app in $applications)
{
$user = $null
$user = Get-XAAccount -BrowserName $app | Select-Object accountdisplayname
if ($user -eq $null )
{
echo $app.displayname $app.enabled | Out-File c:\output.csv -Append
}
}
you will get an output in csv file , output will contain application name and status whether application is enabled or disabled
No comments:
Post a Comment