Buscar buzones inactivos – Exchange 2016/2013

 Ene, 02 - 2017   84 comentarios   EMSExchange 2013Exchange 2016Powershell

Que tal amigos,

 

En esta sencilla publicación les mostrare una forma en la que pueden filtrar buzones inactivos, es decir buzones que no son usados del todo y que solo nos crean Clutter en la organización de Exchange, a traves de un one-liner de Powershell. Esto aplica para Exchange 2010, 2013 y 2016 (Coff coff también conocido como el poderoso Exchangiiiiiiiii).

 

Si bien es cierto cuando ejecutamos un comando en Exchange Management Shell (EMS) y un buzón jamas ha sido accedido el mismo Exchange nos lo indica. Pero en este caso hablamos de buzones que eran previamente usados y no lo son mas.

 

Existen varios criterios para determinar que se considera un buzón inactivo, ya que dependiendo las politicas de cada empresa los criterios pueden variar. Para motivos de esta publicación nos enfocaremos a los siguientes atributos

1). El tamaño del buzón

2) Si esta oculto de la GAL

3) Cuando fue el ultimo inicio de sesión

4) Que no se trate de un buzón compartido

 

Ahora, no todos los argumentos aplicaran en todas las organizaciones, algunas tal vez no tengan la costumbre de ocultar un buzón de la Global Address List (GAL) o tal vez no bajen la cuota a 1KB para volver el buzón inoperable (Que no pueda enviar ni recibir correos). Los criterios deberán ser usado acorde a cada organización

 

 

El One-Liner en cuestion que debemos usar es:

 

Get-Mailbox -ResultSize Unlimited| select identity, ProhibitSendReceiveQuota,hiddenfrom*, RecipientTypeDetails, @{Name=»LastLogonTime»; Expression={(Get-MailboxStatistics $_.identity).LastLogonTime}} | where {$_.ProhibitSendReceiveQuota -eq «1KB» -and $_.RecipientTypeDetails -eq «LinkedMailbox» -and $_.LastLogonTime -lt (get-date).AddDays(-60)} | Sort-Object -Property LastLogonTime -Descending | ft

 

Donde:

Get-Mailbox -ResultSize Unlimited = Nos traera todos los buzones de la organización

 

| select identity, ProhibitSendReceiveQuota, hiddenfrom*, RecipientTypeDetails,@{Name=»LastLogonTime»;Expression={(Get-MailboxStatistics $_.identity).LastLogonTime}} = Nos mostara de resultado la identidad del buzon, la cuota, si esta oculto de la libreta de direcciones, el tipo de buzón y el ultimo inicio de sesión. Esto anidado mediante una expresion ya que el resultado del ultimo inicio de sesión es output del comando get-mailboxstatistics mientras que el resto de los resultados son output del comando get-mailbox

 

| where {$_.ProhibitSendReceiveQuota -eq «1KB» -and $_.RecipientTypeDetails -eq «LinkedMailbox» -and $_.LastLogonTime -lt (get-date).AddDays(-60)} = Filtrara que solo se nos muestren buzones donde la quota es de 1KB, donde el buzón sea del tipo linkedmailbox (si cuentan con una topologia del tipo resource forest) en Caso de no contar con este tipo de topologia, deberan filtrarlos a UserMailbox y finalmente que el ultimo inicio de sesión sea mayor a 60 días

 

| Sort-Object -Property LastLogonTime -Descending = Ordenara los resultados por el ultimo inicio de sesión

 

Una vez que tenemos el Output, lo podemos mandar a un .csv o .txt y posteriormente editar a gusto. O bien exportarlo directamente a .CSV. El comando quedaria asi:

 

Get-Mailbox -ResultSize Unlimited| select identity, ProhibitSendReceiveQuota,hiddenfrom*, RecipientTypeDetails, @{Name=»LastLogonTime»; Expression={(Get-MailboxStatistics $_.identity).LastLogonTime}} | where {$_.ProhibitSendReceiveQuota -eq «1KB» -and $_.RecipientTypeDetails -eq «LinkedMailbox» -and $_.LastLogonTime -lt (get-date).AddDays(-60)} | Export-csv C:\ruta\archivo.csv

 

Nota: Resultados borrados intencionalmente de la imagen

 

Pueden agregar mas valores para mayor información como por ejemplo: servername,displayname, linkedmasteraccount, alias etc. Segun se requiera

 

¡Felicidades!. Acaban de aprender una forma en la que pueden detectar buzones que no están siendo usados utilizando un one-liner y de esa forma poder determinar el mejor plan de acción sobre que hacer con ellos. Dense una palmada en la espalda y coman una galleta como premio, se lo han ganado

 

Por Geovany Acevedo

 

Coman Frutas y Verduras


Artículos relacionados

 Comentarios 84 comentarios

  • Thesis writing service dice:

    The Exchange mailbox and Client Access (CAS) servers that you are … Windows 7: Click Start, type regedit.exe in the search box, We are using an Exchange Server 2016 setup which is working fine. … directly from Exchange mailboxes to these CRM mailboxes we have decided to configure POP boxes on our Exchange server. … I’ve done a lot of searching on Google but I can’t find a similar problem. …. I have activated these services. thesis writing service

  • Donaldway dice:

    Enthralling article! Grateful to you for sharing them! I trust you will keep having identical shows on share with everybody! I believe various individuals will be astounded to look at this article!
    Web: Best dissertation writing service

  • Mary Crown dice:

    The blog post is worth reading and I would like to appreciate your efforts for making us familiar with this topic about writing on https://essaysprofessors.com/.

  • Bethany Price dice:

    Greetings! Very helpful advice within this post! It’s the little changes that produce the most important changes. Thanks for sharing! PSN Codes

  • juliette patison dice:

    Hello! I have recently found useful information about writing papers at the place that is called https://elitewritings.com/plagiarism-checker.html There are lots of tips and clues that make the writing process more pleasant.

  • Mia Crown dice:

    Awesome article! I took an advantage of it. I prepared an article https://exclusive-paper.net/blog/59-exclusive-impromptu-speech-topics.php. Come to check it out. You will like it.

  • Sautt dice:

    How far can a divorce price?We are going to allow you to figure out it there.Go the link to ask divorce estimates during the internet portal of Hi Divorce site.
    https://free-divorce-advice.com/washington-state/what-is-difference-between-divorce-and-annulment/

  • Sautt dice:

    In divorce event, one particular party should function as that the Petitioner plus yet one party is going to be called that the Respondent.
    https://free-divorce-advice.com/texas/how-do-you-value-a-business-on-revenue/

  • alprostadil comes from dice:

    aloprostadil https://alprostadildrugs.com/ alprostadil muse doesn’t work

  • tadalafil dice:

    tadalafil gel https://elitadalafill.com/ generic tadalafil

  • Myrondrype dice:

    free online dating sites
    free single personal ads

  • ThomasDiz dice:

    no script levitra generic levitra in usa levitra tablets price in india
    fd237Hds72

  • Rodrick dice:

    I am curious to find out what blog system you’re utilizing?
    I’m having some small security problems with my latest site and I
    would like to find something more secure. Do you have
    any solutions?

    Check out my blog – order cialis online india

  • ThomasDiz dice:

    heading for college application essay q32qmz how to write a descriptive essay about a person a232ai american essay writing service n98kva

  • ThomasDiz dice:

    vegas slots bovada casino casino slot

  • ThomasDiz dice:

    mohegan sun free online slots https://onlinecasinogamesksm.com/ slot machines

  • ThomasDiz dice:

    write an opinion essay c17wkm https://bestessaywritingservices100.com/ autobiography college essay t132oe

  • ThomasDiz dice:

    prednisone in uk https://prednisone20mgtablets.com/ prednisone 5mg over the counter

  • ThomasDiz dice:

    reputable canadian pharmacy https://canadianpharmacyclub100.com/ online pharmacy in turkey

  • ThomasDiz dice:

    write my history essay for me w483wm https://dissertationonline100.com/ essay websites d628at

  • ThomasDiz dice:

    online casino games https://casinorealmoneydob.com/ slotomania slot machines

  • ThomasDiz dice:

    play free slots https://bestonlinecasinogambling777.com/ free casino games vegas world

  • ThomasDiz dice:

    visit brenokef’s homepage! https://paperwritingessayservice100.com/ essay writer service review w63iuu

  • ThomasDiz dice:

    essay writer website m51tor https://paperwritingessayservice100.com/ writing a conclusion for an essay l77jbz

  • ThomasDiz dice:

    zoloft 50mg cost https://zoloftzabs.com/ 5mg zoloft generic pill

  • ThomasDiz dice:

    high five casino slots https://onlinecasinoslotsplay777.com/ vegas world slots

  • ThomasDiz dice:

    ampicillin us https://buyampicillin250.com/ ampicillin capsule 500m

  • ThomasDiz dice:

    myvegas slots https://casinorealmoneydob.com/ most popuВ­lar free casiВ­no slots

  • ThomasDiz dice:

    canadian world pharmacy https://canadianpharmacyclub100.com/ what’s the best online pharmacy

  • ThomasDiz dice:

    brand levitra online https://levitraclub100.com/ generic levitra in india

  • ThomasDiz dice:

    free slots games online https://vegascasinoslots777.com/ cleopatra slots

  • ThomasDiz dice:

    free online slots games https://onlinecasinoslotsplay777.com/ vegas casino games

  • ThomasDiz dice:

    price of zoloft in india https://zoloftzabs.com/ buy zoloft 100mg

  • ThomasDiz dice:

    free slots no registration no download https://casinorealmoneydob.com/ casino vegas world

  • ThomasDiz dice:

    the pharmacy https://canadianpharmacyclub100.com/ order pharmacy online egypt

  • ThomasDiz dice:

    vegas slots https://onlinecasinoslotsplay777.com/ vegas free slots online

  • ThomasDiz dice:

    lady luck online casino https://vegascasinoslots777.com/ gambling sites

  • ThomasDiz dice:

    free casino blackjack https://bestonlinecasinogambling777.com/ free video slots

  • ThomasDiz dice:

    play slots for real money united states https://onlinecasinoslotsplay777.com/ slot machines for home entertainment

  • ThomasDiz dice:

    levitra prescription canada https://levitraclub100.com/ levitra 20mg buy

  • ThomasDiz dice:

    community service essays c75cck https://paperwritingessayservice100.com/ how to write a community service essay p15mfk

  • ThomasDiz dice:

    world class casino slots https://onlinecasinogames777.com/ rock n cash casino slots

  • ThomasDiz dice:

    play slots for real money https://vegascasinoslots777.com/ google free casino slot games

  • ThomasDiz dice:

    online pharmacy pain medic https://canadianpharmacyclub100.com/ canada drugstore pharmacy rx

  • ThomasDiz dice:

    reddit canadian pharmacy https://canadianpharmacyclub100.com/ online pharmacy discount code

  • ThomasDiz dice:

    how to get cialis prescription online https://cialisclub100.com/ cialis buy no prescription

  • ThomasDiz dice:

    free slots online no download https://onlinecasinoslotsplay777.com/ slots for free

  • ThomasDiz dice:

    vegas casino games https://onlinecasinogamesksm.com/ free slots hollywood

  • ThomasDiz dice:

    cialis price compare https://cialisclub100.com/ cialis comparison

  • ThomasDiz dice:

    fsu college application essay tllkm https://dissertationonline100.com/ how to write good essays n71pkf

  • ThomasDiz dice:

    play free vegas casino games https://casinorealmoneydob.com/ casino real money

  • ThomasDiz dice:

    zoloft brand coupon https://zoloftzabs.com/ where can i get zoloft

  • ThomasDiz dice:

    custom writing essays services k18tjp https://essaywritingserviceclub100.com/ can t write essays a37bzb

  • ThomasDiz dice:

    where to buy ampicillin 500 without preпЅ“пЅѓпЅ’пЅ‰пЅђпЅ”ion https://buyampicillin250.com/ ampicillin capsules price

  • ThomasDiz dice:

    casino games https://casinoonlineslots777.com/ online slots free

  • ThomasDiz dice:

    prednisone 40 mg https://prednisone20mgtablets.com/ prednisolone prednisone

  • ThomasDiz dice:

    custom essays online n921ns https://paperwritingessayservice100.com/ write my admission essay z600uq

  • ThomasDiz dice:

    do essay writing services work s11avh https://essaywriterclub100.com/ websites that write essays for you l23uey

  • ThomasDiz dice:

    play slots online for money https://casinoonlineslots777.com/ slots farm

  • ThomasDiz dice:

    modafinil 200mg uk https://buymodafinilonline10.com/ modafinil 10 mg

  • ThomasDiz dice:

    how to get modafinil https://buymodafinilonline10.com/ modafinil capsules

  • ThomasDiz dice:

    vegas casino games https://casinorealmoneydob.com/ free casino games slot machines

  • ThomasDiz dice:

    order levitra generic https://levitraclub100.com/ levitra generic india

  • ThomasDiz dice:

    purchase cialis online https://cialisclub100.com/ cialis professional 20 mg

  • ThomasDiz dice:

    ampicillin 250 mg price https://buyampicillin250.com/ ampicillin brand name in usa

  • ThomasDiz dice:

    800 mg modafinil https://buymodafinilonline10.com/ where to buy modafinil uk

  • ThomasDiz dice:

    best buy pharmacy cheap levitra https://levitraclub100.com/ generic for levitra

  • ThomasDiz dice:

    application essay writing service y86ztt https://paperwritingessayservice100.com/ essay writing service toronto u82asq

  • ThomasDiz dice:

    best online essay writing services l37sax https://bestessaywritingservices100.com/ best mba essay writing service s34wxc

  • ThomasDiz dice:

    ampicillin https://buyampicillin250.com/ buy ampicillin 500mg

  • ThomasDiz dice:

    hyper casinos https://vegascasinoslots777.com/ zone online casino slots

  • ThomasDiz dice:

    borgata online casino https://bestonlinecasinogambling777.com/ vegas slots online

  • ThomasDiz dice:

    play free slots https://vegascasinoslots777.com/ winstar world casino

  • ThomasDiz dice:

    prednisone online with no prescription https://prednisone20mgtablets.com/ prednisone uk online

  • ThomasDiz dice:

    best pharmacy cheap levitra https://levitraclub100.com/ levitra online

  • ThomasDiz dice:

    myvegas slots https://onlinecasinogamesksm.com/ casino real money

  • ThomasDiz dice:

    college essay leadership q50poc https://essaywriterclub100.com/ essay paper writing p741ks

  • ThomasDiz dice:

    ampicillin 500 https://buyampicillin250.com/ ampicillin 200 mg

  • ThomasDiz dice:

    what can you learn from writing a research essay n78uqf https://bestessaywritingservices100.com/ essays about writing m278ab

  • ThomasDiz dice:

    free slot games for fun https://onlinecasinogamesksm.com/ 888 casino download

  • ThomasDiz dice:

    low dose viagra https://viagraclub100.com/ best prices for generic viagra

  • ThomasDiz dice:

    zoloft 25 mg https://zoloftzabs.com/ costo medio di zoloft

  • ThomasDiz dice:

    cialis india order https://cialisclub100.com/ cialis generic soft tabs

  • ThomasDiz dice:

    modafinil india how to get modafinil prescription canada 600 mg modafinil daily

  • Deja un comentario

    Tu dirección de correo no será publicada. Los campos con * son obligatorios.