Permalink
Browse files

Remove app pool from group management as part of the uninstall script

  • Loading branch information...
Derek Correia
Derek Correia committed Jun 14, 2018
1 parent 1d2f44a commit f12dc10c47515cff6f987e967d2c526205d15205
Showing with 21 additions and 1 deletion.
  1. +21 −1 uninstall-xp0.ps1
@@ -87,4 +87,24 @@ Remove-SitecoreSolrCore "${SolutionPrefix}_fxm_web_index" -Root $SolrRoot
Start-Service $SolrService
# Delete sitecore certificate
Remove-SitecoreCertificate $SitecoreSiteName
Remove-SitecoreCertificate $SitecoreSiteName
# Remove App Pool membership
try
{
Remove-LocalGroupMember "Performance Log Users" "IIS AppPool\$SitecoreSiteName"
Write-Host "Removed IIS AppPool\$SitecoreSiteName from Performance Log Users" -ForegroundColor Green
}
catch
{
Write-Host "Could not find IIS AppPool\$SitecoreSiteName in Performance Log Users" -ForegroundColor Yellow
}
try
{
Remove-LocalGroupMember "Performance Monitor Users" "IIS AppPool\$SitecoreSiteName"
Write-Host "Removed IIS AppPool\$SitecoreSiteName from Performance Monitor Users" -ForegroundColor Green
}
catch
{
Write-Host "Could not find IIS AppPool\$SitecoreSiteName to Performance Monitor Users" -ForegroundColor Yellow
}

0 comments on commit f12dc10

Please sign in to comment.