<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5168662025343532743</id><updated>2024-09-16T20:23:35.560-07:00</updated><category term="Google Bing Yahoo buscadores"/><title type='text'>Compartir Tecnología</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://compartirtecno.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://compartirtecno.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5168662025343532743.post-6120511643491677285</id><published>2012-09-25T03:39:00.000-07:00</published><updated>2012-09-25T03:39:03.714-07:00</updated><title type='text'>Lync 2010: No se pudo realizar una operación de Active Directory </title><content type='html'>He estado esta mañana levantando un servidor de Lync 2010 y al dar de alta los usuarios me aparecía un error muy feo que venia a decirme:&lt;br /&gt;
No se pudo realizar una operación de Active Directory en &quot;****.***&quot;. No se puede repetir la operación &quot;Los derechos de acceso son onsuficientes para realizar la operación&quot; 00002098: SecErr: DSID-03150BC1, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0&quot;&lt;br /&gt;
&lt;br /&gt;
Al parecer suele pasar con los usuarios del grupo de administradores, la solución muy simple.&lt;br /&gt;
Vamos a la consola del directorio activo y habilitamos las características avanzadas en el menú &quot;VER&quot;&lt;br /&gt;
En el usuario que nos falle entramos en la pestaña seguridad y en Opciones Avanzadas habilitamos el botón de permitir herencia.&lt;br /&gt;
&lt;br /&gt;
Probadlo y me contáis .&lt;br /&gt;
Un Saludo.</content><link rel='replies' type='application/atom+xml' href='http://compartirtecno.blogspot.com/feeds/6120511643491677285/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://compartirtecno.blogspot.com/2012/09/lync-2010-no-se-pudo-realizar-una.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/6120511643491677285'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/6120511643491677285'/><link rel='alternate' type='text/html' href='http://compartirtecno.blogspot.com/2012/09/lync-2010-no-se-pudo-realizar-una.html' title='Lync 2010: No se pudo realizar una operación de Active Directory '/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5168662025343532743.post-3140071449612258268</id><published>2012-09-11T23:59:00.001-07:00</published><updated>2012-09-11T23:59:48.055-07:00</updated><title type='text'>Cisco VPN:&quot;failed to enable virtual adapter&quot; en Windows 8</title><content type='html'>Buenos días.&lt;br /&gt;
Como buen probador de Windows 8 ( Con el que estoy bastante satisfecho) , hoy me he encontrado con un problema al intentar instalar el cliente VPN de Cisco . Al intentar levantar una conexión me aparecía un error muy feo.&lt;br /&gt;
&lt;br /&gt;
&quot;failed to enable virtual adapter&quot;&lt;br /&gt;
&lt;br /&gt;
Me he puesto a investigar un poco ,por si era un problema de compatibilidad con el sistema operativo y he encontrado una solución muy simple.&lt;br /&gt;
&lt;br /&gt;
Paso 1:&lt;br /&gt;
Abrir REGEDIT&lt;br /&gt;
&lt;br /&gt;
-Pulsamos Win+R o buscamos el botón de ejecutar.&lt;br /&gt;
-Escribimos REGEDIT&lt;br /&gt;
&lt;br /&gt;
Paso 2:&lt;br /&gt;
&lt;br /&gt;
Buscamos la entrada &lt;br /&gt;
&lt;br /&gt;
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CVirtA y en la entrada &lt;br /&gt;
&quot;Display Name&quot; tenemos que cambiar su valor.&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;Para 32 bits,&amp;nbsp;&quot;Cisco Systems VPN Adapter”&lt;/li&gt;
&lt;li&gt;Para&amp;nbsp;64 bits,&quot;Cisco Systems VPN Adapter for 64-bit Windows&quot;&lt;/li&gt;
&lt;br /&gt;
Y listo, no hace falta ni reiniciar el cliente ni el equipo.&lt;br /&gt;
&lt;br /&gt;
Espero que os sirca</content><link rel='replies' type='application/atom+xml' href='http://compartirtecno.blogspot.com/feeds/3140071449612258268/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://compartirtecno.blogspot.com/2012/09/cisco-vpnfailed-to-enable-virtual.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/3140071449612258268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/3140071449612258268'/><link rel='alternate' type='text/html' href='http://compartirtecno.blogspot.com/2012/09/cisco-vpnfailed-to-enable-virtual.html' title='Cisco VPN:&quot;failed to enable virtual adapter&quot; en Windows 8'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5168662025343532743.post-7438150412804159654</id><published>2011-05-24T00:20:00.000-07:00</published><updated>2011-05-24T00:20:41.955-07:00</updated><title type='text'>No se puede cargar el archivo C:\Fichero.ps1 porque en el sistema está deshabilitada la ejecución de scripts.</title><content type='html'>Buenos Días de nuevo.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Intentando programar unas tareas de Powershell en unos servidores nuevos me&lt;br /&gt;
ha aparecido el siguiente mensaje de error. &lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
No se puede cargar el archivo C:\Fichero.ps1 porque en el sistema está&lt;br /&gt;
deshabilitada la ejecución de scripts. Vea “get-help about_signing” para&lt;br /&gt;
obtener más información.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Y la verdad es que no me acordaba del significado, parece trivial, pero la&lt;br /&gt;
memoria a veces falla.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Por defecto la ejecución de scripts viene deshabilitada en Windows 2008, por&lt;br /&gt;
motivos de seguridad, así que os voy a dar la receta para solucionarlo.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Abrimos Powershell como &quot;administrador&quot; (Muy importante porque&lt;br /&gt;
vamos a tocar claves de registro).&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Ejecutamos Get-ExecutionPolicy&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Si nos devuelve Restricted, este es nuestro problema.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Ejecutamos:&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Set-ExecutionPolicy Unrestricted&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Y ya lo tendríamos habilitado.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Volvemos a ejecutar Get-ExecutionPolicy y nos debería devolver Unrestricted.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Ya tenemos habilitada la ejecución de Scripts.&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
Un Saludo&lt;o:p&gt;&lt;/o:p&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;strong&gt;&lt;/strong&gt;&lt;em&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;em&gt;&lt;/em&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compartirtecno.blogspot.com/feeds/7438150412804159654/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/no-se-puede-cargar-el-archivo.html#comment-form' title='1 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/7438150412804159654'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/7438150412804159654'/><link rel='alternate' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/no-se-puede-cargar-el-archivo.html' title='No se puede cargar el archivo C:\Fichero.ps1 porque en el sistema está deshabilitada la ejecución de scripts.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5168662025343532743.post-7590404905733862097</id><published>2011-05-23T06:36:00.000-07:00</published><updated>2011-05-23T06:36:23.507-07:00</updated><title type='text'>Listar ficheros y tamaños de SQL SERVER</title><content type='html'>Buenas Tardes a todos , &lt;br /&gt;
Os voy a compartir un procedimiento almacenado que lista todos los ficheros de todas las bases de datos que tenemos y nos dirá su tamaño y su nivel de ocupación.&lt;br /&gt;
&lt;br /&gt;
Es relativamente simple utilizando el comando sp_msforeachdb , pero me ha parecido interesante compartirlo con todos vosotros.&lt;br /&gt;
&lt;br /&gt;
Lo dejará en una tabla en tempdb llamada ocupacion&amp;nbsp;que podremos consultar.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;SET ANSI_NULLS&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;GO&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;br /&gt;
SET QUOTED_IDENTIFIER&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;GO&lt;br /&gt;
&lt;br /&gt;
CREATE &lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;PROCEDURE&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[dbo]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[ocupacions]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;as&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;IF &lt;span style=&quot;color: grey;&quot;&gt;EXISTS&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;SELECT&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;*&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;tempdb&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: lime; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: lime; font-size: x-small;&quot;&gt;sys&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: lime; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: lime; font-size: x-small;&quot;&gt;objects&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;WHERE&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;name&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;=&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&#39;ocupacion&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;AND&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;type&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;in&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;N&#39;U&#39;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;))&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;drop table&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;tempdb&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;dbo&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;ocupacion&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;CREATE TABLE&lt;span style=&quot;color: black; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;tempdb&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;dbo&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;ocupacion&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[name]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[varchar]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;256&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;NULL,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[Filename]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[varchar]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;(&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;256&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;NULL,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[size]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[int]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;NULL,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[usedspace]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[int]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;NULL,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[id]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[int]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;NULL,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;ON&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[PRIMARY]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;EXECUTE &lt;span style=&quot;color: maroon;&quot;&gt;sp_msforeachdb&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&#39;USE&amp;nbsp; [?] &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;insert into tempdb.dbo.ocupacion SELECT&lt;br /&gt;
&lt;br /&gt;
DB_NAME() AS [Name],&lt;br /&gt;
&lt;br /&gt;
s.physical_name AS [FileName],&lt;br /&gt;
&lt;br /&gt;
s.size * CONVERT(float,8) AS [Size],&lt;br /&gt;
&lt;br /&gt;
CAST(FILEPROPERTY(s.name, &#39;&#39;SpaceUsed&#39;&#39;) AS float)* CONVERT(float,8) AS [usedspace],&lt;br /&gt;
&lt;br /&gt;
s.file_id AS [ID]&lt;br /&gt;
&lt;br /&gt;
FROM&lt;br /&gt;
&lt;br /&gt;
sys.master_files AS s&lt;br /&gt;
&lt;br /&gt;
WHERE&lt;br /&gt;
&lt;br /&gt;
(s.type = 1 and s.database_id = db_id())&lt;br /&gt;
&lt;br /&gt;
ORDER BY&lt;br /&gt;
&lt;br /&gt;
[ID] ASC&#39;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;EXECUTE &lt;span style=&quot;color: maroon;&quot;&gt;sp_msforeachdb&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&#39;USE&amp;nbsp; [?] &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;create table #tmpspc (Fileid int, FileGroup int, TotalExtents int, UsedExtents int, Name sysname, FileName nchar(520))&lt;br /&gt;
&lt;br /&gt;
insert #tmpspc EXEC (&#39;&#39;dbcc showfilestats&#39;&#39;)&lt;br /&gt;
&lt;br /&gt;
insert into tempdb.dbo.ocupacion SELECT&amp;nbsp; &lt;br /&gt;
s.name AS [Name],&lt;br /&gt;
&lt;br /&gt;
s.physical_name AS [FileName],&lt;br /&gt;
&lt;br /&gt;
s.size * CONVERT(float,8) AS [Size],&lt;br /&gt;
&lt;br /&gt;
CAST(tspc.UsedExtents*convert(float,64) AS float) AS [UsedSpace],&lt;br /&gt;
&lt;br /&gt;
s.file_id AS [ID]&lt;br /&gt;
&lt;br /&gt;
FROM&lt;br /&gt;
&lt;br /&gt;
sys.filegroups AS g&lt;br /&gt;
&lt;br /&gt;
INNER JOIN sys.master_files AS s ON (s.type = 0 and s.database_id = db_id() and (s.drop_lsn IS NULL)) AND (s.data_space_id=g.data_space_id)&lt;br /&gt;
&lt;br /&gt;
LEFT OUTER JOIN #tmpspc tspc ON tspc.Fileid = s.file_id&lt;br /&gt;
&lt;br /&gt;
ORDER BY&lt;br /&gt;
&lt;br /&gt;
[ID] ASC&lt;br /&gt;
&lt;br /&gt;
DROP TABLE #tmpspc&#39;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;GO&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;EXEC &lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[dbo]&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;[ocupacion]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;br /&gt;
SELECT &lt;span style=&quot;color: grey;&quot;&gt;*&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: blue; font-size: x-small;&quot;&gt;FROM&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;tempdb&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;dbo&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: grey; font-size: x-small;&quot;&gt;.Ocupacion&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: teal; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;span style=&quot;color: red; font-size: x-small;&quot;&gt;&lt;/span&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://compartirtecno.blogspot.com/feeds/7590404905733862097/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/listar-ficheros-y-tamanos-de-sql-server.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/7590404905733862097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/7590404905733862097'/><link rel='alternate' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/listar-ficheros-y-tamanos-de-sql-server.html' title='Listar ficheros y tamaños de SQL SERVER'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5168662025343532743.post-4302900772948233425</id><published>2011-05-17T02:21:00.000-07:00</published><updated>2011-05-18T01:57:45.276-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Google Bing Yahoo buscadores"/><title type='text'>Aparecer en busquedas de Google,Bing y Yahoo.</title><content type='html'>Muy Buenos Días.&lt;br /&gt;
&lt;br /&gt;
Buscando como hacer para que este nuevo blog aparezca en los buscadores me he interesado un poquito en el tema y la verdad es que es curioso.&lt;br /&gt;
&lt;br /&gt;
Si no apareces en Google o Bing o Yahoo&amp;nbsp;no eres nadie y a veces es mejor animarles a que te encuentren de manera que os paso unas direcciones donde dar de alta vuestra web y empezar a aparecer en las busquedas.&lt;br /&gt;
Google:&lt;br /&gt;
&lt;a href=&quot;http://www.google.com/addurl/?continue=/addurl&quot; rel=&quot;nofollow&quot; target=&quot;_blank&quot;&gt;http://www.google.com/addurl/?continue=/addurl&lt;/a&gt; &lt;br /&gt;
Bing:&lt;br /&gt;
&lt;a href=&quot;http://www.bing.com/webmaster/SubmitSitePage.aspx&quot;&gt;http://www.bing.com/webmaster/SubmitSitePage.aspx&lt;/a&gt;&lt;br /&gt;
Yahoo:&lt;br /&gt;
&lt;a href=&quot;https://siteexplorer.search.yahoo.com/submit&quot;&gt;https://siteexplorer.search.yahoo.com/submit&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Yahoo y Bing piden que te conectes con una cuenta de usuario para dar de alta vuestra URL.&lt;br /&gt;
&lt;br /&gt;
Espero que os resulte útil.&lt;br /&gt;
Un Saludo.</content><link rel='replies' type='application/atom+xml' href='http://compartirtecno.blogspot.com/feeds/4302900772948233425/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/aparecer-en-busquedas-de-googlebing-y.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/4302900772948233425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/4302900772948233425'/><link rel='alternate' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/aparecer-en-busquedas-de-googlebing-y.html' title='Aparecer en busquedas de Google,Bing y Yahoo.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5168662025343532743.post-5579128984318911837</id><published>2011-05-17T00:09:00.000-07:00</published><updated>2011-05-17T00:09:59.399-07:00</updated><title type='text'>Correo entrante en Sharepoint sin SMTP - Parte 2.</title><content type='html'>Saludos a todos .&lt;br /&gt;
Viendo la solución me han surgido dudas con respecto al tema de reflejar la fecha en los correos entrantes.&lt;br /&gt;
Sharepoint cuando recoje los correos de la carpeta de correo entrante utiliza el Subject para dar el nombre a la entrada en la biblioteca, ignorando el nombre del fichero y marcando como fecha y hora la que tiene en el momento de la recogida, no la original del envio.&lt;br /&gt;
&lt;br /&gt;
Si queremos reflejar de alguna manera este dato, podemos añadirlo al comienzo del nombre con esta modificación del Script Original.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;Set-ExecutionPolicy RemoteSigned -force&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;import-module messageops-exchange&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$path = &quot;c:\CARPETA TEMPORAL&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$path2= &quot;C:\CARPETA DONDE SHAREPOINT RECOGE CORREO&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;$apppath=&quot;C:\CARPETA DONDE INSTALAS TODO&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;cd $apppath&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;$Inbox=&quot;\\bandeja de entrada&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;import-module ./messageops-exchange.psd1&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$user = &quot;TUDIRECCION@TUEMPRESA.COM&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$ewsProfile = New-MessageOps.EWSProfile -usedefaultcredentials 1 -id $user&lt;span style=&quot;color: red;&quot;&gt;/*captura usuario actual*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$ItemCollection = Get-MessageOps.Messages -p $ewsprofile -fp $inbox&amp;nbsp; -messagecount 1 -fulldetails $true&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 10pt;&quot;&gt;/*recoge&amp;nbsp; un correo*/&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-size: 10pt;&quot;&gt;if ($itemcollection.sender.address -ne $null)&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;if ($itemcollection.subject -eq $null) &lt;span style=&quot;color: red;&quot;&gt;/*si no tiene asunto se le añade como título “Sin Asunto”*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;{$name = &quot;Sin Asunto&quot;}&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;else&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;{$name = $itemcollection.subject -replace(&#39;:&#39;,&#39; &#39;) }&lt;span style=&quot;color: red;&quot;&gt;/* Eliminamos caracteres especiales que puedan provocar error en el asunto error*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$name = $name -replace(&quot;`&quot;&quot;,&quot; &quot;)&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$name = $name.replace(&quot;\&quot;,&quot; &quot;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$name = $name.replace(&#39;+&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$name = $name.replace(&#39;*&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$name = $name.replace(&#39;?&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$name = $name.replace(&#39;=&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$name = $name.replace(&#39;-&#39;,&#39; &#39;)&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$name = $name.replace(&#39;[&#39;,&#39; &#39;)&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$name = $name.replace(&#39;]&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$name = $name.replace(&#39;&#39;&#39;&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$sender = &quot;x-sender: &quot; + $itemcollection.sender.address &lt;span style=&quot;color: red;&quot;&gt;/* añadimos cabeceras para SharePoint*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$receiver = &quot;x-receiver: &quot; + $itemcollection.receivedby.address&lt;span style=&quot;color: red;&quot;&gt;/* añadimos cabezeras para SharePoint*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;$file =$path + $name + &quot;.eml&quot; &lt;span style=&quot;color: red;&quot;&gt;/*Construimos el nombre del fichero con el asunto*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;Export-MessageOps.MessageToEml -EWSProfile $ewsprofile -ewsid $itemcollection.id&amp;nbsp; -filename $file&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;add-content ($path +&quot;temp.eml&quot;) $sender&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;add-content ($path + &quot;temp.eml&quot;) $receiver&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;$texto =&amp;nbsp; get-content $file&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;add-content ($path + &quot;temp.eml&quot;)&amp;nbsp; $texto&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;del $file &lt;span style=&quot;color: red;&quot;&gt;/* borramos el fichero si existe&amp;nbsp; en la carpeta de destino*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;div style=&quot;color: black;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;$temp = Get-Content ($path +&quot;temp.eml&quot;)&amp;nbsp; | Foreach-Object { $_ -replace (&quot;Subject:&quot;, (&quot;Subject: &quot; + $date + &quot; &quot;)) }&amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt; /* buscamos la cadena de texto Subject y le añadimos la fecha original*/&lt;/span&gt;&lt;br /&gt;
add-content $file $temp&lt;span style=&quot;color: red;&quot;&gt; /*salvamos el fichero en el destino final*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;del ($path + &quot;temp.eml&quot;)&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;/*Borramos el fichero temporal*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt;&quot;&gt;Remove-MessageOps.Message -ewsid $itemcollection.id -ewsprofile $ewsprofile &lt;span style=&quot;color: red;&quot;&gt;/*borramos el correo del buzón.*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;} &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Como siempre se dice en estos casos, esto es un ejemplo, no lo uséis en  producción, probarlo y reprobarlo antes de hacer uso de él.&lt;br /&gt;
&lt;br /&gt;
Saludos a todos. &lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compartirtecno.blogspot.com/feeds/5579128984318911837/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/correo-entrante-en-sharepoint-sin-smtp.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/5579128984318911837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/5579128984318911837'/><link rel='alternate' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/correo-entrante-en-sharepoint-sin-smtp.html' title='Correo entrante en Sharepoint sin SMTP - Parte 2.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5168662025343532743.post-2668132955088195935</id><published>2011-05-10T04:56:00.000-07:00</published><updated>2011-05-10T07:27:47.323-07:00</updated><title type='text'>Primer Plato: Correo entrante en sharepoint sin SMTP.</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;En los últimos días me ha tocado lidiar con un problema, no tan extraño, pero a la vez poco documentado.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Os comento, tengo una granja de SharePoint 2007, sobre Windows 2008 y no tengo posibilidad de redirigir un conector Smtp desde Exchange, en mi caso 2010.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Tras mucho buscar he encontrado recursos para montar una solución domestica para este proceso, la solución:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;u&gt;POWERSHELL&lt;/u&gt;&lt;/b&gt;.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Desde luego no es la opción que hubiese elegido para realizar esta conexión, pero ha resultado tremendamente efectiva. Descargo los ficheros con formato .eml con sus adjuntos y me permite añadir las cabeceras x-sender y x-receiver.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Comencemos.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Para empezar he instalado las herramientas de administración de Exchange, desde el DVD de instalación, en el servidor donde quería recibir los correos.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;A continuación encontré un kit de herramientas para Exchange, gratuito por supuesto en MessageOps.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://www.messageops.com/software/messageops-microsoft-online-powershell-extensions%20&quot;&gt;http://www.messageops.com/software/messageops-microsoft-online-powershell-extensions &lt;/a&gt;.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Una gente muy maja a la que le agradezco encarecidamente este Kit.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Lo descomprimimos en una carpeta que será donde guardemos nuestro script.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Por otro lado descargue la Api de los Web services de Exchange.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&amp;amp;FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1&quot;&gt;http://www.microsoft.com/downloads/en/details.aspx?displaylang=en&amp;amp;FamilyID=c3342fb3-fbcc-4127-becf-872c746840e1&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Ya tenemos todos los ingredientes.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;-Instalamos el Api de Exchange.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;-Descomprimimos el kit de messageops a una carpeta y abrimos la shell de Exchange como administrador y ejecutamos el script&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;i&gt;&lt;b&gt;.\install-module.ps1 &lt;/b&gt;&lt;/i&gt;del kit.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Ahora comprobamos como en la carpeta&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;C:\Users\usuario\Documents\WindowsPowerShell\Modules\MessageOps-Exchange&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Tenemos&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt; tres ficheros:&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;MessageOps-Exchange.psd1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;MessageOps-Exchange-Powershell-Module.dll&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Microsoft.Exchange.WebServices.dll&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Si no los tenéis podéis copiarlos manualmente.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Ahora viene la parte crítica de la solución. &lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;EL SCRIPT.&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;Set-ExecutionPolicy RemoteSigned -force&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;import-module messageops-exchange&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$path = &quot;c:\CARPETA TEMPORAL&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$path2= &quot;C:\CARPETA DONDE SHAREPOINT RECOGE CORREO&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;$apppath=&quot;C:\CARPETA DONDE INSTALAS TODO&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;cd $apppath&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;$Inbox=&quot;\\bandeja de entrada&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;import-module ./messageops-exchange.psd1&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$user = &quot;TUDIRECCION@TUEMPRESA.COM&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$ewsProfile = New-MessageOps.EWSProfile -usedefaultcredentials 1 -id $user&lt;span style=&quot;color: red;&quot;&gt;/*captura usuario actual*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$ItemCollection = Get-MessageOps.Messages -p $ewsprofile -fp $inbox&amp;nbsp; -messagecount 1 -fulldetails $true&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: red; font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;/*recoge&amp;nbsp; un correo*/&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;if ($itemcollection.sender.address -ne $null)&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;color: black; mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;{&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;if ($itemcollection.subject -eq $null) &lt;span style=&quot;color: red;&quot;&gt;/*si no tiene asunto se le añade como título “Sin Asunto”*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;{$name = &quot;Sin Asunto&quot;}&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;else&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;{$name = $itemcollection.subject -replace(&#39;:&#39;,&#39; &#39;) }&lt;span style=&quot;color: red;&quot;&gt;/* Eliminamos caracteres especiales que puedan provocar error en el asunto error*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$name = $name -replace(&quot;`&quot;&quot;,&quot; &quot;)&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$name = $name.replace(&quot;\&quot;,&quot; &quot;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$name = $name.replace(&#39;+&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$name = $name.replace(&#39;*&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$name = $name.replace(&#39;?&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$name = $name.replace(&#39;=&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$name = $name.replace(&#39;-&#39;,&#39; &#39;)&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$name = $name.replace(&#39;[&#39;,&#39; &#39;)&amp;nbsp; &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$name = $name.replace(&#39;]&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$name = $name.replace(&#39;&#39;&#39;&#39;,&#39; &#39;) &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$sender = &quot;x-sender: &quot; + $itemcollection.sender.address &lt;span style=&quot;color: red;&quot;&gt;/* añadimos cabeceras para SharePoint*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$receiver = &quot;x-receiver: &quot; + $itemcollection.receivedby.address&lt;span style=&quot;color: red;&quot;&gt;/* añadimos cabezeras para SharePoint*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;$file =$path + $name + &quot;.eml&quot; &lt;span style=&quot;color: red;&quot;&gt;/*Construimos el nombre del fichero con el asunto*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;Export-MessageOps.MessageToEml -EWSProfile $ewsprofile -ewsid $itemcollection.id&amp;nbsp; -filename $file&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;add-content ($path +&quot;temp.eml&quot;) $sender&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;add-content ($path + &quot;temp.eml&quot;) $receiver&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;$texto =&amp;nbsp; get-content $file&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;add-content ($path + &quot;temp.eml&quot;)&amp;nbsp; $texto&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;del $file &lt;span style=&quot;color: red;&quot;&gt;/* borramos el fichero si existe */&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span style=&quot;font-size: 10pt;&quot;&gt;ren ($path +&quot;temp.eml&quot;) $file &lt;span style=&quot;color: red;&quot;&gt;/*renombramos el fichero */&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;MOVE $file $path2 &amp;nbsp;&lt;span style=&quot;color: red;&quot;&gt;/*se mueve a la carpeta de SharePoint*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b style=&quot;mso-bidi-font-weight: normal;&quot;&gt;&lt;i style=&quot;mso-bidi-font-style: normal;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;font-size: 10pt; mso-ansi-language: EN-US;&quot;&gt;Remove-MessageOps.Message -ewsid $itemcollection.id -ewsprofile $ewsprofile &lt;span style=&quot;color: red;&quot;&gt;/*borramos el correo del buzón.*/&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span style=&quot;color: black; font-size: 10pt;&quot;&gt;} &lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Para ejecutarlo tendréis que eliminar todos los comentarios.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Salvamos el fichero con extensión ps1.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Lo guardaremos en la carpeta donde descomprimimos messageops.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Por últimos, como programar la ejecución. Pues muy simple desde el programador de tareas ponemos en acciones la siguiente línea.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;b&gt;&lt;i&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;mso-ansi-language: EN-US;&quot;&gt;c:\windows\system32\windowspowershell\v1.0\powershell &quot;C:\ruta\correo.ps1&quot;&lt;/span&gt;&lt;/i&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Y elegimos la programación que deseemos,&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Nota: El script se descarga únicamente un correo cada vez, por lo que recomiendo ejecutarlo cada poco tiempo.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Como siempre se dice en estos casos, esto es un ejemplo, no lo uséis en producción, probarlo y reprobarlo antes de hacer uso de él. &lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Dejo para otra ocasión el desarrollo que hice hace tiempo para conectar con servidores de Exchange 2003.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Un Saludo.&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;Agradecimientos:&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://www.microsoft.com/&quot;&gt;http://www.microsoft.com&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://www.messageops.com/&quot;&gt;http://www.messageops.com&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;a href=&quot;http://gsexdev.blogspot.com/&quot;&gt;http://gsexdev.blogspot.com&lt;/a&gt;&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot;&gt;&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://compartirtecno.blogspot.com/feeds/2668132955088195935/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/primer-plato-correo-entrante-en.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/2668132955088195935'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/2668132955088195935'/><link rel='alternate' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/primer-plato-correo-entrante-en.html' title='Primer Plato: Correo entrante en sharepoint sin SMTP.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5168662025343532743.post-3522202191015025329</id><published>2011-05-10T03:19:00.001-07:00</published><updated>2011-05-10T03:19:49.346-07:00</updated><title type='text'>Primeros Pasos</title><content type='html'>Hoy abro mi primer blog para compartir aquellas cosas que el día a día y los cabezazos contra la pantalla me han enseñado.&lt;br /&gt;
La periodicidad ni semanal , ni mensual, cuando me acuerde, tenga tiempo y ganas.&lt;br /&gt;
Un Saludo.</content><link rel='replies' type='application/atom+xml' href='http://compartirtecno.blogspot.com/feeds/3522202191015025329/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/primeros-pasos.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/3522202191015025329'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5168662025343532743/posts/default/3522202191015025329'/><link rel='alternate' type='text/html' href='http://compartirtecno.blogspot.com/2011/05/primeros-pasos.html' title='Primeros Pasos'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>