Podemos generar un fichero BAT sencillo que nos haga un Backup de los directorios que queramos de forma recursiva. Tan solo tenemos que crear un archivo con la extension ".bat" y editarlo añadiendo lo siguiente: @ECHO off For /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set today=%%c%%a%%b) For /f "tokens=1-2 delims=/:" %%a in …
Etiqueta: source
Forzar el Stop de los Crawls por Power Shell
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
How to embed an image in HTML (Usually for Emails)
If you're developing some HTML code that it can be accessed by thousands of people at the same time, if you use images like this: <img alt="" src="http://myimage" /> You could trigger a huge load to your server, because every request of every image goes to your server. Instead of that you could embed the …
Sigue leyendo How to embed an image in HTML (Usually for Emails)
Empty DropDown After Submit your Form and Information Lost
My case: It's a standard register form created in a SharePoint WebPart (but this error could happen even if you're not using SharePoint). When I submit the form, sometimes I loose the information of DropDowns (but not the information of textboxes) and it seems to happen randomly. I checked the packages sent with Wireshark and …
Sigue leyendo Empty DropDown After Submit your Form and Information Lost
SharePoint 2013: Configure Search Application Topology
You can configure your Search Application Topology through your servers and manage all its parts separately, or (like in my case) you only need to configure it all in one server. Using PowerShell I've only need to run this following commands:1. Get the Search Service Instance of my server into a variable (The second command …
Sigue leyendo SharePoint 2013: Configure Search Application Topology
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()}
Remove HREF attribute from any link with JQuery
You can remove any href that contains specific text inside the link. If you want to remove the link to any page that contains "DispForm" you can do it like this: $('a[href*="DispForm"]').removeAttr("href"); '*=' means 'Contains', but you can use anything you need: *= Contains = Equal != Not equal ^= Starts With $= Ends With