Re: Exchange 2003 Powershell help

2011-06-08 Thread Steven Peck
Depending on how you link it a modification to one I made for our help desk
may also give you some ideas.
http://www.blkmtn.org/PowerShell-Check-Mailbox

Steven Peck
http://www.blkmtn.org

On Wed, Jun 8, 2011 at 3:32 PM, Todd Lemmiksoo  wrote:

> Thanks, I will work on it tonight.
>
>
> On Wed, Jun 8, 2011 at 4:54 PM, Michael B. Smith wrote:
>
>>  I don’t think you can get everything you want from a single source.
>>
>>
>>
>> First, I’ll refer you to a script I wrote:
>>
>>
>>
>>
>> http://theessentialexchange.com/blogs/michael/archive/2007/11/13/a-script-for-getting-mailbox-sizes-using-wmi-in-powershell.aspx
>>
>>
>>
>> Then a scriptcenter article that displays everything you can get from
>> Exchange_Mailbox:
>>
>>
>>
>>
>> http://gallery.technet.microsoft.com/scriptcenter/fcf4fe8b-2260-4382-aee5-d737f6cb6627
>>
>>
>>
>> Between the two you should be able to get everything you want.
>>
>>
>>
>> Regards,
>>
>>
>>
>> Michael B. Smith
>>
>> Consultant and Exchange MVP
>>
>> http://TheEssentialExchange.com
>>
>>
>>
>> *From:* Todd Lemmiksoo [mailto:tlemmik...@gmail.com]
>> *Sent:* Wednesday, June 08, 2011 5:23 PM
>> *To:* MS-Exchange Admin Issues
>> *Subject:* Exchange 2003 Powershell help
>>
>>
>>
>> I need to produce a report listing all mailboxes with display name,
>> storage group, Mailstore, size, last logged on time, sam account and last
>> logged on by.
>> I can not get the sam account or last logged on by account to be selected
>> for the report. Any help is greatly appreciated.
>>
>> Get-Wmiobject -Namespace root\MicrosoftExchangeV2 -Class Exchange_Mailbox
>> -ComputerName $computer | Sort-Object -Descending MailboxDisplayName |
>> Select-Object
>> MailboxDisplayName,StorageGroupName,StoreName,Size,LastLogonAcount,LastLogonTime
>> | Export-Csv -Path "d:\scripts\browning08.csv"
>> }
>>
>> --
>> T. Todd Lemmiksoo
>>
>> ---
>> To manage subscriptions click here:
>> http://lyris.sunbelt-software.com/read/my_forums/
>> or send an email to listmana...@lyris.sunbeltsoftware.com
>> with the body: unsubscribe exchangelist
>>
>> ---
>> To manage subscriptions click here:
>> http://lyris.sunbelt-software.com/read/my_forums/
>> or send an email to listmana...@lyris.sunbeltsoftware.com
>> with the body: unsubscribe exchangelist
>>
>
>
>
> --
> T. Todd Lemmiksoo
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to listmana...@lyris.sunbeltsoftware.com
> with the body: unsubscribe exchangelist
>

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist

Re: Exchange 2003 Powershell help

2011-06-08 Thread Todd Lemmiksoo
Thanks, I will work on it tonight.

On Wed, Jun 8, 2011 at 4:54 PM, Michael B. Smith wrote:

>  I don’t think you can get everything you want from a single source.
>
>
>
> First, I’ll refer you to a script I wrote:
>
>
>
>
> http://theessentialexchange.com/blogs/michael/archive/2007/11/13/a-script-for-getting-mailbox-sizes-using-wmi-in-powershell.aspx
>
>
>
> Then a scriptcenter article that displays everything you can get from
> Exchange_Mailbox:
>
>
>
>
> http://gallery.technet.microsoft.com/scriptcenter/fcf4fe8b-2260-4382-aee5-d737f6cb6627
>
>
>
> Between the two you should be able to get everything you want.
>
>
>
> Regards,
>
>
>
> Michael B. Smith
>
> Consultant and Exchange MVP
>
> http://TheEssentialExchange.com
>
>
>
> *From:* Todd Lemmiksoo [mailto:tlemmik...@gmail.com]
> *Sent:* Wednesday, June 08, 2011 5:23 PM
> *To:* MS-Exchange Admin Issues
> *Subject:* Exchange 2003 Powershell help
>
>
>
> I need to produce a report listing all mailboxes with display name, storage
> group, Mailstore, size, last logged on time, sam account and last logged on
> by.
> I can not get the sam account or last logged on by account to be selected
> for the report. Any help is greatly appreciated.
>
> Get-Wmiobject -Namespace root\MicrosoftExchangeV2 -Class Exchange_Mailbox
> -ComputerName $computer | Sort-Object -Descending MailboxDisplayName |
> Select-Object
> MailboxDisplayName,StorageGroupName,StoreName,Size,LastLogonAcount,LastLogonTime
> | Export-Csv -Path "d:\scripts\browning08.csv"
> }
>
> --
> T. Todd Lemmiksoo
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to listmana...@lyris.sunbeltsoftware.com
> with the body: unsubscribe exchangelist
>
> ---
> To manage subscriptions click here:
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to listmana...@lyris.sunbeltsoftware.com
> with the body: unsubscribe exchangelist
>



-- 
T. Todd Lemmiksoo

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist

RE: Exchange 2003 Powershell help

2011-06-08 Thread Michael B. Smith
I don't think you can get everything you want from a single source.

First, I'll refer you to a script I wrote:

http://theessentialexchange.com/blogs/michael/archive/2007/11/13/a-script-for-getting-mailbox-sizes-using-wmi-in-powershell.aspx

Then a scriptcenter article that displays everything you can get from 
Exchange_Mailbox:

http://gallery.technet.microsoft.com/scriptcenter/fcf4fe8b-2260-4382-aee5-d737f6cb6627

Between the two you should be able to get everything you want.

Regards,

Michael B. Smith
Consultant and Exchange MVP
http://TheEssentialExchange.com

From: Todd Lemmiksoo [mailto:tlemmik...@gmail.com]
Sent: Wednesday, June 08, 2011 5:23 PM
To: MS-Exchange Admin Issues
Subject: Exchange 2003 Powershell help

I need to produce a report listing all mailboxes with display name, storage 
group, Mailstore, size, last logged on time, sam account and last logged on by.
I can not get the sam account or last logged on by account to be selected for 
the report. Any help is greatly appreciated.

Get-Wmiobject -Namespace root\MicrosoftExchangeV2 -Class Exchange_Mailbox 
-ComputerName $computer | Sort-Object -Descending MailboxDisplayName | 
Select-Object 
MailboxDisplayName,StorageGroupName,StoreName,Size,LastLogonAcount,LastLogonTime
 | Export-Csv -Path "d:\scripts\browning08.csv"
}

--
T. Todd Lemmiksoo

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to 
listmana...@lyris.sunbeltsoftware.com<mailto:listmana...@lyris.sunbeltsoftware.com>
with the body: unsubscribe exchangelist

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist

Exchange 2003 Powershell help

2011-06-08 Thread Todd Lemmiksoo
I need to produce a report listing all mailboxes with display name, storage
group, Mailstore, size, last logged on time, sam account and last logged on
by.
I can not get the sam account or last logged on by account to be selected
for the report. Any help is greatly appreciated.

Get-Wmiobject -Namespace root\MicrosoftExchangeV2 -Class Exchange_Mailbox
-ComputerName $computer | Sort-Object -Descending MailboxDisplayName |
Select-Object
MailboxDisplayName,StorageGroupName,StoreName,Size,LastLogonAcount,LastLogonTime
| Export-Csv -Path "d:\scripts\browning08.csv"
}

-- 
T. Todd Lemmiksoo

---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist