jueves, 28 de febrero de 2013

Manage BDC models (SharePoint Server 2010)

http://technet.microsoft.com/en-us/library/ee524073(v=office.14).aspx

Exportar instancias:

Ingresar al Central Administration
> Manage Service Applications
> Bussiness Data Conectivity Service
> En el Ribbon cambiar a modo BDC Models
> Seleccionar por BDC Name
> Export BDC Model



jueves, 14 de febrero de 2013

HTTP Error 500.0 - Error interno del servidor

Cuando Microsoft Forefront Security for SharePoint está instalado en un servidor de SharePoint, los sitios pueden tener problemas de acceso al filtro ISAPI (Internet Server API) que instala Forefront Security.
En Internet Information Services (IIS) 7, los usuarios pueden recibir mensaje de error como por ejemplo:
 
HTTP Error 500.0 - Error interno del servidor
Llamar a LoadLibraryEx en el filtro ISAPI que no se pudo "d:\Archivos programa\Microsoft Forefront protección para SharePoint\FSSPUsernameFilter.dll"
 
The HTTP Filter DLL d:\appls\Program Files\Microsoft Forefront Protection for SharePoint\FSSPUsernameFilter.dll failed to load. The data is the error.
 
En IIS 6, los usuarios que exploran sitios de SharePoint no pueden recibir mensaje de error siguientes:
 
Servicio no disponible
 
 
Solución en IIS 7 
  1. En Administrador de IIS, desplácese a un sitio Web que no sean de SharePoint que está experimentando este problema.
  2. Seleccione el sitio Web y, a continuación, haga doble clic en filtros ISAPI
  3. En el panel Filtro, seleccione filtro de nombre de usuario de FSSP.
  4. En el panel Acciones, haga clic en Quitar.
  5. En el cuadro de diálogo de confirmación, haga clic en .
Solución en IIS 6
 
Para determinar si el problema que se describe en este artículo es el mismo problema que está experimentando, examine en el Visor de sucesos de aplicación. Si si el filtro ISAPI está causando este problema, se registrará el siguiente error:
 
Tipo: error
ID. de suceso: 2214
No se pudo cargar the HTTP Filter DLL c:\\Archivos programa\Microsoft Forefront Protection para SharePoint\FSSPUsernameFilter.dll. Los datos están el error.
 
Servidores en IIS 6, el filtro ISAPI no se expone en el nivel de sitio individuales. Para resolver el problema, agregue la cuenta que el sitio de SharePoint no está ejecutando como a los grupos de seguridad ISS_WPG y WSS_WPG. En estos servidores, buscar la cuenta que el sitio de SharePoint no se está ejecutando. Para ello, puede mirar las credenciales en el grupo de aplicaciones que se ejecuta el sitio. Después de que tiene la cuenta que el sitio de SharePoint no se está ejecutando, siga estos pasos para resolver el problema:
    1. Agregar la cuenta de que el sitio de SharePoint no está ejecutando como a los grupos de seguridad ISS_WPG y WSS_WPG. De esta forma, se asegura de que el sitio Web tiene permisos de cargar el filtro ISAPI en el Forefront para SharePoint directory.
    2. Para que los cambios surtan efecto, debe ejecutar un IISReset. Para ello, o un símbolo de plumilla y, a continuación, escriba IISReset. Apaga y reinicia todos los servicios de IIS.

Recuperando un documento de una base de datos de contenido desconectada SharePoint 2010

http://msdn.microsoft.com/es-es/library/jj822948.aspx

Error Access Denied al modificar el web.config programaticamente o al intentar hacer acciones Administrativas

Problema:
En Sharepoint 2010 al tratar de modificar programáticamente el web.config desde una feature o script de acciones Administrativas, usando el SPWebConfigModification sale un error muy descriptivo "Access Denied". Que majo! Que descriptivo!
Probamos con privilegios elevados.... y "Access Denied"
 
Solución:
Estas accediendo usando LOCALHOST o por la IP? Lo lógico es entrar usando el nombre del servidor o la ruta de acceso alternativa que este registrada.
No obstante si quieres que funcione ..... en Sharepoint 2010 se ha incorporado un interruptor de seguridad a nivel de Servicio para bloquear modificaciones remotas, tendremos que desactivarla....

# Con este script de PowerSell desactivamos la caracteristica de seguridad RemoteAdministratorAccessDenied

#Añadimos el snapin de SharePoint PowerShell 
 if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) {
    Add-PSSnapin "Microsoft.SharePoint.PowerShell"
}
$servicio = [Microsoft.SharePoint.Administration.SPWebService]::ContentService
$servicio.RemoteAdministratorAccessDenied = $false
$servicio.Update()

jueves, 7 de febrero de 2013

Bloqueo de operaciones al exceder el limite de ítems en DL's, Listas


Cuando excedemos el numero de ítems recomendados en una Library o Lista, podemos experimentar el bloqueo de operaciones que se encuentran en la lista.


Blocked operations when list exceeds the list view threshold


Operation

Description

Add/remove/update a list column

All columns, including lookup and calculated columns, in addition to many kinds of updates, such as a type change or a uniqueness change. Some updates, such as a name change, are not blocked because they do not affect every item in the list.

Add/remove/Update a list content type

Affects every item in the list so it is blocked for any list that has more items than the list view threshold.

Create/remove an index

Affects every item in the list so it is blocked for any list that has more items than the list view threshold.

Manage files which have no checked-in version

A non-indexed recursive query that fails for any list that has more items than the list view threshold.

Non-indexed recursive queries

Includes filters and some sorts. This operation fails when the list size is greater than the list view threshold. Because there is no index, it does a full scan against the entire list. Also, it returns all items, and it ignores folders.

Cross list query

Includes queries by the Content Query Web Part and follows the list view threshold setting for auditors and administrators, which by default is 20,000 items. If the operation involves more than 20,000 items, the query fails.

Lookup columns that enforce relationship behavior

You cannot create lookup columns that enforce relationship behavior when the list that is referenced contains more items than the list view threshold.

Deleting a list

Affects every item in the list so it is blocked for any list that has more items than the list view threshold.

Deleting a site

If the sum of all items in a site is greater than the list view threshold, deleting the site is prevented because it affects too many items.

Save list as template with data

Affects every item in the list so it is blocked for any list that has more items than the list view threshold.

Showing totals in list views

Performs a query against every item in the list so it is blocked for any list that has more items than the list view threshold.

Enable/disable attachments in a list

Affects every item in the list so it is blocked for any list that has more items than the list view threshold.


Blocked operations when container exceeds the list view threshold


Operation

Description

Delete/copy/rename a folder

Fails when the folder contains more items than the list view threshold because it affects too many rows.

Queries that filter on non-indexed columns

Fails when the container (folder or list) contains more items than the list view threshold. The operation performs a full scan against the entire folder because there is no index.

Set fine-grained security permissions

Fails when the list or folder on which you are trying to set fine-grained permissions contains more items than the list view threshold because it affects too many rows. You can still set fine-grained permissions on child items, such as documents, in a large list, although you cannot set the permissions on the list itself or on folders that contain more items than the list view threshold.

Open with Explorer

Does not show any items if a container has more items than the list view threshold (excluding items in subfolders). If a folder has 8,000 items, but it has a subfolder that contains 4,000 items and only 4,000 items in the root, then Open with Explorer will work. If the root of a list contains more items than the list view threshold, then Open with Explorer will not show anything. To use Open with Explorer, the list must have items organized into folders in amounts less than the list view threshold in the root of any container.
 
 Para solucionar éste problema podemos aplicar lo siguiente: Quitar la limitacion de 5000 ítems

Permisos de lista, de sitio y personales

Permisos de lista

PERMISOCONTROL TOTALDISEÑOCOLABORARLEERACCESO LIMITADO
Administrar listasXX
Omitir desprotecciónXX
Agregar elementosXXX
Editar elementosXXX
Eliminar elementosXXX
Ver elementosXXXX
Aprobar elementosXX
Abrir elementosXXXX
Ver versionesXXXX
Eliminar versionesXXX
Crear alertasXXXX
Ver páginas de aplicacionesXXXXX

Permisos de sitio

PERMISOCONTROL TOTALDISEÑOCOLABORARLEERACCESO LIMITADO
Administrar permisosX
Ver datos de usoX
Crear subsitiosX
Administración del sitio WebX
Agregar y personalizar páginasXX
Aplicar temas y bordesXX
Aplicar hojas de estilosXX
Crear gruposX
Examinar directoriosXXX
Utilizar la creación de sitios sin intervención del administrador (SSC)XXXX
Ver páginasXXXX
Enumerar permisosX
Examinar información de usuarioXXXXX
Administrar alertasX
Utilizar las interfaces remotasXXXXX
Usar características de integración de clientesXXXXX
AbrirXXXXX
Editar información personal de usuarioXXX

Permisos personales

PERMISOCONTROL TOTALDISEÑOCOLABORARLEERACCESO LIMITADO
Administrar vistas personalesXXX
Agregar o quitar elementos Web privadosXXX
Actualizar elementos Web personalesXXX

Niveles de permisos predeterminados en Windows SharePoint

NIVEL DE PERMISOSDESCRIPCIÓN
Control totalEste nivel de permisos contiene todos los permisos. Está asignado al grupo de SharePoint Propietarios de nombre de sitio, de forma predeterminada. No se puede personalizar ni eliminar.
DiseñoPermite crear listas y bibliotecas de documentos, modificar páginas y aplicar temas, bordes y hojas de estilos en el sitio Web. De forma predeterminada no está asignado a ningún grupo de SharePoint.
ColaborarPermite modificar y eliminar los elementos de las listas y bibliotecas de documentos existentes. De forma predeterminada está asignado al grupo Miembros de nombre de sitio de SharePoint.
LeerAcceso de sólo lectura al sitio Web. Los usuarios y grupos de SharePoint con este nivel de permisos pueden ver los elementos y páginas, y abrir los elementos y documentos. De forma predeterminada está asignado al grupo Visitantes de nombre de sitio de SharePoint.
Acceso limitado
Está diseñado para combinarse con la personalización avanzada de permisos con el fin de dar a los usuarios acceso a una lista, biblioteca de documentos, elemento o documento específico sin darles acceso a todo el sitio. Sin embargo, para tener acceso a una lista o biblioteca, por ejemplo, un usuario debe tener permiso para abrir el sitio Web primario y leer los datos compartidos como las barras de exploración y temas del sitio Web. Este nivel no se puede personalizar ni eliminar.
 NOTA   No es posible asignar este nivel de permisos a los usuarios o grupos de SharePoint. En su lugar, Windows SharePoint Services 3.0 lo asigna automáticamente a los usuarios y grupos de SharePoint cuando les concede acceso a un objeto de un sitio que requiere tener acceso a un objeto de nivel superior para el que no tienen permisos. Por ejemplo, si concede a los usuarios acceso a un elemento de una lista pero no tienen acceso a la propia lista, Windows SharePoint Services 3.0 les concede automáticamente Acceso limitado a la lista y, también al sitio, si es necesario.

Quitar la limitación de 5000 ítems en las DL’s usando el comando de PowerShell:

 
Ésta configuración, resuelve problemas de permisos (Limited Access) y performance que puedan tener los usuarios al intentar editar ítems en librerías que tengan ítems mayores a 5000
 
$list = $web.Lists[“Nombre de la Document Library”]
$list.enablethrottling = $false
$list.update()
 
 

miércoles, 6 de febrero de 2013

Listar información con PowerShell

Listar content databases y su tamaño (en MB), ordenadas por tamaño
Get-SPDatabase | Sort-Object disksizerequired -desc | Format-Table Name, @{Label ="Size in MB"; Expression = {$_.disksizerequired/1024/1024}}

Listar site collections y sus tamaños
Get-SPSite | select url, @{label="Size in MB";Expression={$_.usage.storage/1MB}} | Sort-Object -Descending -Property "Size in MB" | Format-Table –AutoSize

Listar site collections por content database
Get-SPContentDatabase | %{Write-Output "- $($_.Name)”; foreach($site in $_.sites){write-Output $site.url}}

Listar solutions deployadas en una webapplication específica
Get-SPSolution | ForEach-Object {if ($_.LastOperationDetails.IndexOf("http://webapp") -gt 0) {$_.DisPlayName}}

Listar features activadas a nivel site collection
Get-SPFeature -Site http://sitecollectionurl | Sort DisplayName | FT DisplayName,Id

Listar features activadas a nivel web
Get-SPSite http://sitecollectionurl | Get-SPWeb -Limit ALL | %{ Get-SPFeature -Web $_ } | Sort DisplayName -Unique | FT DisplayName,Id