Este comando detiene todos los Crawls que no estén en estado "Idle": Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object { if ($_.CrawlStatus -ne "Idle"){ $_.StopCrawl() } } Con este comando podemos ver el estado de los Content Source: Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | select Name, CrawlStatus
Etiqueta: sharepoint
Error: Field type ‘XXX’ is not installed properly. Go to the list settings page to delete this field
Normalmente suele producirse cuando desplegamos una columna de sitio errónea y la modificamos. Para resolverlo debemos buscar ese campo en la base de datos de contenido y borrarlo. Lo encontramos con: SELECT * FROM [CONTENT_DB].[dbo].[ContentTypes] WHERE Definition Like '%COLUMN_GUID%' Y lo borramos con: DELETE FROM [CONTENT_DB].[dbo].[ContentTypes] WHERE Definition Like '%COLUMN_GUID%' En ambos casos debemos escribir el …
Crear SPSubscription Settings Service Application (5 Pasos)
1. Abrir SharePoint Management Shell. 2. Crear el Pool: $AppPool = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account DOMAINuser 3. Crear la App: $App = New-SPSubscriptionSettingsServiceApplication -ApplicationPool $appPool -Name SettingsServiceApp -DatabaseName SettingsServiceDB 4. Crear el Proxy: $proxy = New-SPSubscriptionSettingsServiceApplicationProxy -ServiceApplication $App 5. Iniciar la instancia: Get-SPServiceInstance | where{$_.TypeName -eq "Microsoft SharePoint Foundation Subscription Settings Service"} | Start-SPServiceInstance
Workflows en SharePoint 2013
1. Instalar y configurar Workflow Manager: http://ranaictiu-technicalblog.blogspot.com.es/2013/02/sharepoint-2013-workflow-manager.html 2. Crear App Management Service Application + Proxy: http://www.c-sharpcorner.com/UploadFile/anavijai/error-app-management-shared-service-proxy-is-not-installed/ 3. Crear State Service Application + Proxy: http://www.codeproject.com/Articles/710271/State-Service-configuration-in-SharePoint-for
Forzar Activacion Feature SharePoint 2013
1. Abrir SharePoint Management Shell 2. Ejecutar: Get-SPFeature -Limit ALL | Where-Object {$_.DisplayName -like "*FEATURE_NAME*"} 3. Copiamos el ID de la Feature que queremos activar. 4. Ejecutar: Enable-SPFeature -Identity "ID_FEATURE_COPIED" -URL http://SITE_TO_DEPLOY -Force
Obtener GUID de un SharePoint Server Service
1. Abrimos SharePoint Management Shell. 2. Ejecutamos el script: Get-SPServiceApplication | where-object {$_.TypeName -eq "SERVICE NAME"}
Eliminar una App de SharePoint via Power Shell
1. Abrimos la SharePoint Management Shell. 2. Ejecutamos el comando que nos obtiene la app, ya sea por nombre o por identificador: $app = Get-WmiObject -Class Win32_Product -Filter "Name='MY APP NAME'" $app = Get-WmiObject -Class Win32_Product -Filter "IdentifyingNumber='MY APP ID'" 3. Ejecutamos el comando que la desinstala: $app.Uninstall()
Cambiar MasterPage via PowerShell
Para cambiar la MasterPage de SharePoint por PowerShell tan solo debemos abrir la consola de SharePoint (SharePoint Management Shell) como administradores y ejecutar: $web = Get-SPWeb http://MY_SITE.com $web.CustomMasterUrl = "/_catalogs/masterpage/MY_MASTER.master" $web.MasterUrl = "/_catalogs/masterpage/MY_MASTER.master" $web.Update() También podemos crearnos un fichero ".ps1" para tener el script guardado y ejecutarlo (Siempre como administrador).
Cambiar de Usuario en SharePoint 2013
Podemos cambiar el usuario actual de nuestro Site de SharePoint en 2013 accediendo a la siguiente url: {MY_SITE}/_layouts/closeConnection.aspx?loginasanotheruser=true Por ejemplo: http://miportal.desharepoint.com/_layouts/closeConnection.aspx?loginasanotheruser=true
Ejecutar funcion JS al final de todo de la carga de pagina de SharePoint
Podemos ejecutar funciones JS al final de la carga de la página por medio de JQuery. No obstante, en SharePoint esto no siempre funciona: $(document).ready(function(){ //My code }); Esto ocurre porque aveces el document ya está cargado pero SharePoint todavía sigue cargando elementos. Para evitarlo, podemos insertar nuestra funcion en la lista de funciones que …
Sigue leyendo Ejecutar funcion JS al final de todo de la carga de pagina de SharePoint