![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | (Get-Mailbox user1).primarysmtpaddress - Simple I'm sure I'm trying to get the primarysmtpaddress, into a variable [PS]> (Get-Mailbox user1) | fl *primary* PrimarySmtpAddress : user1@xxxxxx I would think that would work but it doesn't [PS] >$pemail=(Get-Mailbox user1).primarysmtpaddress [PS] >$pemail Length Local Domain IsValidAddress ------ ----- ------ -------------- 25 user1 domain.com True [PS]> (Get-Mailbox user1) | fl *primary* PrimarySmtpAddress : user1@xxxxxx I would like to have user1@xxxxxx in $pemail Thanks |
My System Specs![]() |
| | #2 (permalink) |
| | Re: (Get-Mailbox user1).primarysmtpaddress - Simple I'm sure On Jan 7, 3:53*pm, Personne <cpdiv...@xxxxxx> wrote: Quote: > I'm trying to get the primarysmtpaddress, into a variable > > [PS]> (Get-Mailbox user1) | fl *primary* > PrimarySmtpAddress : us...@xxxxxx > > I would think that would work but it doesn't > [PS] >$pemail=(Get-Mailbox user1).primarysmtpaddress > > [PS] >$pemail > Length Local > Domain > IsValidAddress > ------ ----- > ------ > -------------- > * * 25 user1 > domain.com * * * * * * * * * * * * * * * * * * * * * * * * * * * True > > [PS]> (Get-Mailbox user1) | fl *primary* > PrimarySmtpAddress : us...@xxxxxx > > I would like to have us...@xxxxxx in $pemail > > Thanks (get-mailbox user1).PrimarySmtpAddress.ToString() ? |
My System Specs![]() |
| | #3 (permalink) |
| | Re: (Get-Mailbox user1).primarysmtpaddress - Simple I'm sure Thank, works like a charm I knew it was easy |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Mailbox | Vista mail | |||
| Exchange 07 Shell - Export-Mailbox and Disable-Mailbox cmdLETS | PowerShell | |||
| get -mailboxpermission user1 | PowerShell | |||
| User1 can print from Vista Laptop but not User2 | Vista General | |||
| User1 can print from Vista laptop but not User2 | Vista print fax & scan | |||