Skip to content

Commit

Permalink
New Get MUI scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
adiazcan committed May 26, 2014
1 parent 97d0d4e commit fdb1a10
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
45 changes: 45 additions & 0 deletions SharePoint/Audit/GetWebAppsMUI.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
############################################################################################################################################
# Script que obtiene la configuración de MUI de todas las Web Applications
# Parametros necesarios:
############################################################################################################################################

If ((Get-PSSnapIn -Name Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue) -eq $null )
{ Add-PSSnapIn -Name Microsoft.SharePoint.PowerShell }

$host.Runspace.ThreadOptions = "ReuseThread"
$ScriptDir = Split-Path -parent $MyInvocation.MyCommand.Path

function GetMUIInAFarm
{
try
{
#Obtenemos todos los sitios
$spWebs = (Get-SPSite -limit all | Get-SPWeb -Limit all -ErrorAction SilentlyContinue)

#Para cada sitio de SharePoint
foreach($spWeb in $spWebs)
{
Write-Host "Sitio de SharePoint "$spWeb.url -ForegroundColor Green
Write-Host " - IsMultiLingual "$spWeb.IsMultiLingual

$supportedCultures = $spWeb.SupportedUICultures;
foreach ($culture in $supportedCultures)
{
Write-Host " - Culture "$culture.Name
}

$spWeb.Dispose()
}
}
catch [System.Exception]
{
write-host -f red $_.Exception.ToString()
}
}

Start-SPAssignment –Global
#Calling the function
GetMUIInAFarm
Stop-SPAssignment –Global

Remove-PSSnapin Microsoft.SharePoint.PowerShell
1 change: 1 addition & 0 deletions SharePoint/SharePoint.pssproj
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<Content Include="Audit\Get-AllItemsAndPermissions.ps1" />
<Content Include="Audit\Get-FeatureWebpartInventory.ps1" />
<Content Include="Audit\Get-ItemsAndPermissions.ps1" />
<Content Include="Audit\GetWebAppsMUI.ps1" />
<Content Include="Audit\Inventory-SPFarm.ps1" />
<Content Include="Audit\User Access Report.ps1" />
<Content Include="Deployment\Activate-Feature.ps1" />
Expand Down

0 comments on commit fdb1a10

Please sign in to comment.