$URL = read-host "Enter the Site URL to check the status "
$FeatureName = read-host "Enter the feature name to check the status"
if((Get-SPFeature -Identity $FeatureName -ErrorAction SilentlyContinue -Site $URL) -ne $null)
{
Write-Host -Fore Green "Activated"
}
else
{
Write-Host -Fore Red "Not Activated"
}
$FeatureName = read-host "Enter the feature name to check the status"
if((Get-SPFeature -Identity $FeatureName -ErrorAction SilentlyContinue -Site $URL) -ne $null)
{
Write-Host -Fore Green "Activated"
}
else
{
Write-Host -Fore Red "Not Activated"
}
No comments:
Post a Comment