-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters