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
Etiqueta: shell
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
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).
Borrar DLL de la GAC sin GACUTIL
En ocasiones podemos encontrarnos con situaciones en las que no se nos actualizan las DLL de la GAC y no podemos borrarlas. Nuestro primer intento sería utilizar el comando GACUTIL: http://idttechblog.wordpress.com/2014/09/25/borrar-dll-de-la-gac/ El problema es que si estamos en un entorno de producción no deberíamos tener instalado Visual studio (ante todo, buenas prácticas) por lo que no …
Activar/Desactivar HyperV
Podemos activar y desactivar HyperV (si por ejemplo queremos ejecutar VMs de VirtualBox y no nos deja porque tenemos HyperV) con estos comandos desde la Command Prompt: Desactivar bcdedit /set hypervisorlaunchtype off Activar bcdedit /set hypervisorlaunchtype auto Deberemos reiniciar la máquina para aplicar el cambio correctamente.
Crear punto de acceso Wifi en Windows 8/8.1 (Personal Hotspot)
Para crear un punto de acceso Wifi en nuestro PC y poder conectarnos desde el móvil, tablet, etc. debemos abrir la ventana de comandos (Command Prompt) como administrador y seguimos estos 3 pasos: 1. Comprobar si nuestro PC lo permite netsh wlan show drivers Debemos mirar la propiedad "Hosted network supported" y que sea "Yes". …
Sigue leyendo Crear punto de acceso Wifi en Windows 8/8.1 (Personal Hotspot)
Cambiar el Logo de SharePoint de todos los Sites
Podemos cambiar el típico logo azul de SharePoint (situado arriba a la izquierda) de todos nuestros sites con el siguiente comando a través de Power Shell: (get-spsite http://mySite.com.AllWeb)s | foreach { $_.SiteLogoUrl = "/_layouts/15/images/NewLogo.jpg"; $_.Update()}
Mount VHD from Command Prompt
Mount VHD: DISKPART SELECT VDISK FILE="D:MyVHDDisk.vhd" ATTACH VDISK Dismount VHD: DETACH VDISK
SharePoint 2013: Stop Crawls using PowerShell
Run this Script in PowerShell to stop all your Crawls: Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object {$_.StopCrawl()} You could also start full Crawls on every Content Source changing the StopCrawl command like this: Get-SPEnterpriseSearchCrawlContentSource -SearchApplication "Search Service Application" | ForEach-Object {$_.StartFullCrawl()}