Sorting properties from get-mailbox on a single mailbox, how?
get-aduser username -Properties * gives a nicely sorted list of the properties for a user's AD account.
get-mailbox username | fl * gives a nicely
unsorted list of the properties for a user's Exchange mailbox.
Anything more elegant for sorting the get-mailbox output?
Get-Mailbox username | fl * | Out-File -FilePath c:\username-mailbox.txt
Get-Content C:\username-mailbox.txt | sort
What is the technical terminology for the type of output produced by get-mailbox username?
Thank you for your time, Joe
-Joe
Hear ya Bill. But I'm only returning a single PSObject (Microsoft.Exchange.Data.Directory.Management.MailEnabledOrgPerson), and I'm attempting to sort the properties on the single object. Sorry I'm not explaining this well.
Example Output from: get-mailbox
Name Alias ServerName
ProhibitSendQuota
kcarael kcarael svrwmail unlimited
cuqt3 cuqt3 svrwmail unlimited
lsren lsren exchange03 unlimited
roreerb roreerb exchange03 unlimited
pacffsdfs pacffsdfs exchange03
unlimited
beon beon exchange03 unlimited
Not a problem to sort: get-mailbox | sort alias
Output from: get-mailbox someuser
Name Alias ServerName
ProhibitSendQuota
someuser someuser mbxn04 12.6 GB (13,529,147,392 bytes)
Example Output from: get-mailbox someuser | fl * (or get-mailbox someuser | Select-Object *)
RoleAssignmentPolicy : Default Role Assignment Policy
SharingPolicy : Default Sharing Policy
RemoteAccountPolicy :
MailboxPlan :
ArchiveDatabase : EX-DAG01-DB08
ArchiveGuid : 587bdddd-f651-4e11-87d0-88ae31dc24db
ArchiveQuota : 50 GB (53,687,091,200 bytes)
ArchiveWarningQuota : 45 GB (48,318,382,080 bytes)
ArchiveDomain :
ArchiveStatus : None
RemoteRecipientType : None
DisabledArchiveDatabase :
DisabledArchiveGuid : 00000000-0000-0000-0000-000000000000
QueryBaseDNRestrictionEnabled : False
MailboxMoveTargetMDB :
MailboxMoveSourceMDB :
MailboxMoveFlags : None
MailboxMoveRemoteHostName :
MailboxMoveBatchName :
MailboxMoveStatus : None
IsPersonToPersonTextMessagingEnabled : False
IsMachineToPersonTextMessagingEnabled : True
UserSMimeCertificate : {}
I'm not sure what to sort on... I've tried just: get-mailbox someuser | Select-Object * | sort
The output looks the same as output from: get-aduser someuser
This doesn't work either: get-aduser someuser | sort -descending
Thank you, Joe
-Joe
Similar Messages
-
i created an outline font and manipulated to create a new logotype. now i want to created a solid font from the outline as a single stroke -- how?
g,
As I (mis)understand it, you may have a look at the ways suggested in these threads, increasing the Stroke Weight as desired after creating the centre path:
Re: How to make perfect thin inner outline of text?
Typography effect -
I have the 5S and there is a check mark next to no sound when phone is in lock mode that prevents me from getting my calls and messages. How can I turn that off? Clicking it does nothing. Please help! Thanks!
Thanks for taking the time to try to help me. . I checked and the Do not disturb is off. The check is still there stopping calls from coming in when phone is locked. Any other ideas? Thanks again!
-
[C4005]: Get properties from packet failed killing my sessions
I have a broker in a state where 6 messages are delivered which "kill" the first 6 sessions listening on a particular queue (round-robin delivery sorta situation)
These exceptions are logged only to stderr and no indication is given to my program about them other than the affected sessions never receive another message again, others do.
When the broker or consumer service is restarted, it happens again.
If I start the broker with a -reset messages then the problem goes away. I saved the entire broker var folder to try to find a work around to this.
This is OpenMQ 4.5B29
I'll include the stack traces below, anyone seen something like this or have suggestions on how to deal with this without resorting to reset of the broker?
Could not parse properties java.io.UTFDataFormatException: malformed input around byte 11
Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
WARNING: [I500]: Caught JVM Exception: java.lang.NullPointerException
java.io.UTFDataFormatException: malformed input around byte 11
at java.io.DataInputStream.readUTF(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:178)
at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
at java.lang.Thread.run(Unknown Source)
Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ConsumerReader run
WARNING: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
com.sun.messaging.jms.JMSException: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:386)
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:337)
at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:604)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:193)
at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
... 5 more
Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
WARNING: [I500]: Caught JVM Exception: java.io.UTFDataFormatException: malformed input around byte 11
Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ConsumerReader run
WARNING: [C4005]: Get properties from packet failed. - cause: java.io.UTFDataFormatException: malformed input around byte 11
com.sun.messaging.jms.JMSException: [C4005]: Get properties from packet failed. - cause: java.io.UTFDataFormatException: malformed input around byte 11
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:386)
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:337)
at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:604)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.UTFDataFormatException: malformed input around byte 11
at java.io.DataInputStream.readUTF(Unknown Source)
at java.io.DataInputStream.readUTF(Unknown Source)
at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:178)
at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
... 5 more
Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
WARNING: [I500]: Caught JVM Exception: java.lang.NullPointerException
Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ExceptionHandler logCaughtException
WARNING: [I500]: Caught JVM Exception: java.io.StreamCorruptedException: invalid type code: 00
Mar 22, 2011 3:42:55 PM com.sun.messaging.jmq.jmsclient.ConsumerReader run
WARNING: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
com.sun.messaging.jms.JMSException: [C4005]: Get properties from packet failed. - cause: java.lang.NullPointerException
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:386)
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:337)
at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:604)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.getJMSMessage(ProtocolHandler.java:2061)
at com.sun.messaging.jmq.jmsclient.SessionReader.getJMSMessage(SessionReader.java:189)
at com.sun.messaging.jmq.jmsclient.SessionReader.deliver(SessionReader.java:107)
at com.sun.messaging.jmq.jmsclient.ConsumerReader.run(ConsumerReader.java:192)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at com.sun.messaging.jmq.io.PacketProperties.parseProperties(PacketProperties.java:193)
at com.sun.messaging.jmq.io.PacketPayload.getProperties(PacketPayload.java:155)
at com.sun.messaging.jmq.io.Packet.getProperties(Packet.java:644)
at com.sun.messaging.jmq.io.ReadOnlyPacket.getProperties(ReadOnlyPacket.java:348)
at com.sun.messaging.jmq.jmsclient.MessageImpl.getPropertiesFromPacket(MessageImpl.java:601)
... 5 moreFrom the stack trace, it looks like there is a problem with one of message's string properties. I can't obviously see what, but this might help you track down the cause of the problem.
When you've found out what it is about your message that's causing this exception, please log this as a bug.
Nigel -
how do i get my podcasts to go from the one i just finished to the next one withouth me having to click on it, and how do i sort them from oldest to newest?
Not sure if you tried this, but did you hold down both the sleep and home button for 10 seconds?
-
"The EXCH provider section is missing from the Autodiscover response." On single mailbox
We have a single mailbox with this issue, the RCA tool returns the message:
The EXCH provider section is missing from the Autodiscover response.
No other mailboxes have issues with Outlook anywhere but this one user is unable to use their mailbox from Outlook. I tried creating a fresh mailbox for this user and completely deleted the old one but this didn't seem to work. anyone have any ideas on how
I can resolve this?
This is Exchange 2010, SP1 with all update rollups applied.This workstation's network connectivity is okay. And a test with any other user account information from the same station is successful. I've tried this from both a domain and non-domain station with the same results. But this test was from a domain machine.
Also note that our internal and external URIs are identical as the CAS server is the same for both.
Here is the full RCA output.
Testing RPC/HTTP connectivity.
The RPC/HTTP test failed.
Test Steps
ExRCA is attempting to test Autodiscover for
[email protected].
Autodiscover was tested successfully.
Test Steps
Attempting each method of contacting the Autodiscover service.
The Autodiscover service was tested successfully.
Test Steps
Attempting to test potential Autodiscover URL
https://research.osu.edu/AutoDiscover/AutoDiscover.xml
Testing of this potential Autodiscover URL failed.
Test Steps
Attempting to resolve the host name research.osu.edu in DNS.
The host name resolved successfully.
Additional Details
IP addresses returned: 140.254.87.75
Testing TCP port 443 on host research.osu.edu to ensure it's listening and open.
The specified port is either blocked, not listening, or not producing the expected response.
Tell me more about this issue and how to resolve it
Additional Details
A network error occurred while communicating with the remote host.
Attempting to test potential Autodiscover URL
https://autodiscover.research.osu.edu/AutoDiscover/AutoDiscover.xml
Testing of this potential Autodiscover URL failed.
Test Steps
Attempting to resolve the host name autodiscover.research.osu.edu in DNS.
The host name couldn't be resolved.
Tell me more about this issue and how to resolve it
Additional Details
Host autodiscover.research.osu.edu couldn't be resolved in DNS InfoDomainNonexistent.
Attempting to contact the Autodiscover service using the HTTP redirect method.
The attempt to contact Autodiscover using the HTTP Redirect method failed.
Test Steps
Attempting to resolve the host name autodiscover.research.osu.edu in DNS.
The host name couldn't be resolved.
Tell me more about this issue and how to resolve it
Additional Details
Host autodiscover.research.osu.edu couldn't be resolved in DNS InfoDomainNonexistent.
Attempting to contact the Autodiscover service using the DNS SRV redirect method.
ExRCA successfully contacted the Autodiscover service using the DNS SRV redirect method.
Test Steps
Attempting to locate SRV record _autodiscover._tcp.research.osu.edu in DNS.
The Autodiscover SRV record was successfully retrieved from DNS.
Additional Details
The Service Location (SRV) record lookup returned host mail.research.osu.edu.
Attempting to test potential Autodiscover URL
https://mail.research.osu.edu/Autodiscover/Autodiscover.xml
Testing of the Autodiscover URL was successful.
Test Steps
Attempting to resolve the host name mail.research.osu.edu in DNS.
The host name resolved successfully.
Additional Details
IP addresses returned: 131.187.90.221
Testing TCP port 443 on host mail.research.osu.edu to ensure it's listening and open.
The port was opened successfully.
Testing the SSL certificate to make sure it's valid.
The certificate passed all validation requirements.
Test Steps
ExRCA is attempting to obtain the SSL certificate from remote server mail.research.osu.edu on port 443.
ExRCA successfully obtained the remote SSL certificate.
Additional Details
Remote Certificate Subject: CN=mail.research.osu.edu, OU=Office of Research, O=The Ohio State University, STREET=154 W 12th Avenue, L=Columbus, S=OH, PostalCode=43210, C=US, Issuer: CN=InCommon Server CA, OU=InCommon, O=Internet2, C=US.
Validating the certificate name.
The certificate name was validated successfully.
Additional Details
Host name mail.research.osu.edu was found in the Certificate Subject Common name.
Certificate trust is being validated.
The certificate is trusted and all certificates are present in the chain.
Test Steps
ExRCA is attempting to build certificate chains for certificate CN=mail.research.osu.edu, OU=Office of Research, O=The Ohio State University, STREET=154 W 12th Avenue, L=Columbus, S=OH, PostalCode=43210, C=US.
One or more certificate chains were constructed successfully.
Additional Details
A total of 1 chains were built. The highest quality chain ends in root certificate CN=AddTrust External CA Root, OU=AddTrust External TTP Network, O=AddTrust AB, C=SE.
Analyzing the certificate chains for compatibility problems with versions of Windows.
Potential compatibility problems were identified with some versions of Windows.
Additional Details
ExRCA can only validate the certificate chain using the Root Certificate Update functionality from Windows Update. Your certificate may not be trusted on Windows if the "Update Root Certificates" feature isn't enabled.
Testing the certificate date to confirm the certificate is valid.
Date validation passed. The certificate hasn't expired.
Additional Details
The certificate is valid. NotBefore = 6/23/2011 12:00:00 AM, NotAfter = 6/22/2012 11:59:59 PM
Checking the IIS configuration for client certificate authentication.
Client certificate authentication wasn't detected.
Additional Details
Accept/Require Client Certificates isn't configured.
Attempting to send an Autodiscover POST request to potential Autodiscover URLs.
ExRCA successfully retrieved Autodiscover settings by sending an Autodiscover POST.
Test Steps
ExRCA is attempting to retrieve an XML Autodiscover response from URL
https://mail.research.osu.edu/Autodiscover/Autodiscover.xml for user
[email protected].
The Autodiscover XML response was successfully retrieved.
Additional Details
Autodiscover Account Settings
XML response:
<?xml version="1.0"?>
<Autodiscover xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<User>
<DisplayName>Alba, Andrea</DisplayName>
<LegacyDN>/o=Research Foundation/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Alba, Andrea</LegacyDN>
<DeploymentId>75b2e554-1712-4be1-94e6-ed12513f8395</DeploymentId>
</User>
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>WEB</Type>
<Port>0</Port>
<DirectoryPort>0</DirectoryPort>
<ReferralPort>0</ReferralPort>
<Internal>
<OWAUrl AuthenticationMethod="Basic, Fba">https://mail.research.osu.edu/owa/</OWAUrl>
</Internal>
<External>
<OWAUrl AuthenticationMethod="Fba">https://mail.research.osu.edu/owa/</OWAUrl>
</External>
</Protocol>
</Account>
</Response>
</Autodiscover>
Autodiscover settings for Outlook Anywhere are being validated.
ExRCA wasn't able to validate Outlook Anywhere Autodiscover settings.
Additional Details
The EXCH provider section is missing from the Autodiscover response.
And then a test with a different user:
Testing RPC/HTTP connectivity.
The RPC/HTTP test completed successfully.
Test Steps
ExRCA is attempting to test Autodiscover for
[email protected].
Autodiscover was tested successfully.
Test Steps
Attempting each method of contacting the Autodiscover service.
The Autodiscover service was tested successfully.
Test Steps
Attempting to test potential Autodiscover URL
https://research.osu.edu/AutoDiscover/AutoDiscover.xml
Testing of this potential Autodiscover URL failed.
Test Steps
Attempting to resolve the host name research.osu.edu in DNS.
The host name resolved successfully.
Additional Details
IP addresses returned: 140.254.87.75
Testing TCP port 443 on host research.osu.edu to ensure it's listening and open.
The specified port is either blocked, not listening, or not producing the expected response.
Tell me more about this issue and how to resolve it
Additional Details
A network error occurred while communicating with the remote host.
Attempting to test potential Autodiscover URL
https://autodiscover.research.osu.edu/AutoDiscover/AutoDiscover.xml
Testing of this potential Autodiscover URL failed.
Test Steps
Attempting to resolve the host name autodiscover.research.osu.edu in DNS.
The host name couldn't be resolved.
Tell me more about this issue and how to resolve it
Additional Details
Host autodiscover.research.osu.edu couldn't be resolved in DNS InfoDomainNonexistent.
Attempting to contact the Autodiscover service using the HTTP redirect method.
The attempt to contact Autodiscover using the HTTP Redirect method failed.
Test Steps
Attempting to resolve the host name autodiscover.research.osu.edu in DNS.
The host name couldn't be resolved.
Tell me more about this issue and how to resolve it
Additional Details
Host autodiscover.research.osu.edu couldn't be resolved in DNS InfoDomainNonexistent.
Attempting to contact the Autodiscover service using the DNS SRV redirect method.
ExRCA successfully contacted the Autodiscover service using the DNS SRV redirect method.
Test Steps
Attempting to locate SRV record _autodiscover._tcp.research.osu.edu in DNS.
The Autodiscover SRV record was successfully retrieved from DNS.
Additional Details
The Service Location (SRV) record lookup returned host mail.research.osu.edu.
Attempting to test potential Autodiscover URL
https://mail.research.osu.edu/Autodiscover/Autodiscover.xml
Testing of the Autodiscover URL was successful.
Test Steps
Attempting to resolve the host name mail.research.osu.edu in DNS.
The host name resolved successfully.
Additional Details
IP addresses returned: 131.187.90.221
Testing TCP port 443 on host mail.research.osu.edu to ensure it's listening and open.
The port was opened successfully.
Testing the SSL certificate to make sure it's valid.
The certificate passed all validation requirements.
Test Steps
ExRCA is attempting to obtain the SSL certificate from remote server mail.research.osu.edu on port 443.
ExRCA successfully obtained the remote SSL certificate.
Additional Details
Remote Certificate Subject: CN=mail.research.osu.edu, OU=Office of Research, O=The Ohio State University, STREET=154 W 12th Avenue, L=Columbus, S=OH, PostalCode=43210, C=US, Issuer: CN=InCommon Server CA, OU=InCommon, O=Internet2, C=US.
Validating the certificate name.
The certificate name was validated successfully.
Additional Details
Host name mail.research.osu.edu was found in the Certificate Subject Common name.
Certificate trust is being validated.
The certificate is trusted and all certificates are present in the chain.
Test Steps
ExRCA is attempting to build certificate chains for certificate CN=mail.research.osu.edu, OU=Office of Research, O=The Ohio State University, STREET=154 W 12th Avenue, L=Columbus, S=OH, PostalCode=43210, C=US.
One or more certificate chains were constructed successfully.
Additional Details
A total of 1 chains were built. The highest quality chain ends in root certificate CN=AddTrust External CA Root, OU=AddTrust External TTP Network, O=AddTrust AB, C=SE.
Analyzing the certificate chains for compatibility problems with versions of Windows.
Potential compatibility problems were identified with some versions of Windows.
Additional Details
ExRCA can only validate the certificate chain using the Root Certificate Update functionality from Windows Update. Your certificate may not be trusted on Windows if the "Update Root Certificates" feature isn't enabled.
Testing the certificate date to confirm the certificate is valid.
Date validation passed. The certificate hasn't expired.
Additional Details
The certificate is valid. NotBefore = 6/23/2011 12:00:00 AM, NotAfter = 6/22/2012 11:59:59 PM
Checking the IIS configuration for client certificate authentication.
Client certificate authentication wasn't detected.
Additional Details
Accept/Require Client Certificates isn't configured.
Attempting to send an Autodiscover POST request to potential Autodiscover URLs.
ExRCA successfully retrieved Autodiscover settings by sending an Autodiscover POST.
Test Steps
ExRCA is attempting to retrieve an XML Autodiscover response from URL
https://mail.research.osu.edu/Autodiscover/Autodiscover.xml for user
[email protected].
The Autodiscover XML response was successfully retrieved.
Additional Details
Autodiscover Account Settings
XML response:
<?xml version="1.0"?>
<Autodiscover xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.microsoft.com/exchange/autodiscover/responseschema/2006">
<Response xmlns="http://schemas.microsoft.com/exchange/autodiscover/outlook/responseschema/2006a">
<User>
<DisplayName>Bossley, Peter A</DisplayName>
<LegacyDN>/o=Research Foundation/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bossley, Peter A</LegacyDN>
<DeploymentId>75b2e554-1712-4be1-94e6-ed12513f8395</DeploymentId>
</User>
<Account>
<AccountType>email</AccountType>
<Action>settings</Action>
<Protocol>
<Type>EXCH</Type>
<Server>MAIL.rf.ohio-state.edu</Server>
<ServerDN>/o=Research Foundation/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=MAIL</ServerDN>
<ServerVersion>738180DA</ServerVersion>
<MdbDN>/o=Research Foundation/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Configuration/cn=Servers/cn=MAIL/cn=Microsoft Private MDB</MdbDN>
<ASUrl>https://mail.research.osu.edu/EWS/Exchange.asmx</ASUrl>
<OOFUrl>https://mail.research.osu.edu/EWS/Exchange.asmx</OOFUrl>
<OABUrl>https://mail.research.osu.edu/OAB/e5ee959b-e4f0-4bd3-b254-bc2f822455f6/</OABUrl>
<UMUrl>https://mail.research.osu.edu/EWS/UM2007Legacy.asmx</UMUrl>
<Port>0</Port>
<DirectoryPort>0</DirectoryPort>
<ReferralPort>0</ReferralPort>
<PublicFolderServer>MAIL.rf.ohio-state.edu</PublicFolderServer>
<AD>DC3.rf.ohio-state.edu</AD>
<EwsUrl>https://mail.research.osu.edu/EWS/Exchange.asmx</EwsUrl>
<EcpUrl>https://mail.research.osu.edu/ecp/</EcpUrl>
<EcpUrl-um>?p=customize/voicemail.aspx&exsvurl=1</EcpUrl-um>
<EcpUrl-aggr>?p=personalsettings/EmailSubscriptions.slab&exsvurl=1</EcpUrl-aggr>
<EcpUrl-mt>PersonalSettings/DeliveryReport.aspx?exsvurl=1&IsOWA=<IsOWA>&MsgID=<MsgID>&Mbx=<Mbx></EcpUrl-mt>
<EcpUrl-ret>?p=organize/retentionpolicytags.slab&exsvurl=1</EcpUrl-ret>
<EcpUrl-sms>?p=sms/textmessaging.slab&exsvurl=1</EcpUrl-sms>
</Protocol>
<Protocol>
<Type>EXPR</Type>
<Server>mail.research.osu.edu</Server>
<ASUrl>https://mail.research.osu.edu/EWS/Exchange.asmx</ASUrl>
<OOFUrl>https://mail.research.osu.edu/EWS/Exchange.asmx</OOFUrl>
<OABUrl>https://mail.research.osu.edu/OAB/e5ee959b-e4f0-4bd3-b254-bc2f822455f6/</OABUrl>
<UMUrl>https://mail.research.osu.edu/EWS/UM2007Legacy.asmx</UMUrl>
<Port>0</Port>
<DirectoryPort>0</DirectoryPort>
<ReferralPort>0</ReferralPort>
<SSL>On</SSL>
<AuthPackage>Ntlm</AuthPackage>
<EwsUrl>https://mail.research.osu.edu/EWS/Exchange.asmx</EwsUrl>
<EcpUrl>https://mail.research.osu.edu/ecp/</EcpUrl>
<EcpUrl-um>?p=customize/voicemail.aspx&exsvurl=1</EcpUrl-um>
<EcpUrl-aggr>?p=personalsettings/EmailSubscriptions.slab&exsvurl=1</EcpUrl-aggr>
<EcpUrl-mt>PersonalSettings/DeliveryReport.aspx?exsvurl=1&IsOWA=<IsOWA>&MsgID=<MsgID>&Mbx=<Mbx></EcpUrl-mt>
<EcpUrl-ret>?p=organize/retentionpolicytags.slab&exsvurl=1</EcpUrl-ret>
<EcpUrl-sms>?p=sms/textmessaging.slab&exsvurl=1</EcpUrl-sms>
</Protocol>
<Protocol>
<Type>WEB</Type>
<Port>0</Port>
<DirectoryPort>0</DirectoryPort>
<ReferralPort>0</ReferralPort>
<Internal>
<OWAUrl AuthenticationMethod="Basic, Fba">https://mail.research.osu.edu/owa/</OWAUrl>
<Protocol>
<Type>EXCH</Type>
<ASUrl>https://mail.research.osu.edu/EWS/Exchange.asmx</ASUrl>
</Protocol>
</Internal>
<External>
<OWAUrl AuthenticationMethod="Fba">https://mail.research.osu.edu/owa/</OWAUrl>
<Protocol>
<Type>EXPR</Type>
<ASUrl>https://mail.research.osu.edu/EWS/Exchange.asmx</ASUrl>
</Protocol>
</External>
</Protocol>
</Account>
</Response>
</Autodiscover>
Autodiscover settings for Outlook Anywhere are being validated.
ExRCA validated the Outlook Anywhere Autodiscover settings.
Attempting to resolve the host name mail.research.osu.edu in DNS.
The host name resolved successfully.
Additional Details
IP addresses returned: 131.187.90.221
Testing TCP port 443 on host mail.research.osu.edu to ensure it's listening and open.
The port was opened successfully.
Testing the SSL certificate to make sure it's valid.
The certificate passed all validation requirements.
Test Steps
ExRCA is attempting to obtain the SSL certificate from remote server mail.research.osu.edu on port 443.
ExRCA successfully obtained the remote SSL certificate.
Additional Details
Remote Certificate Subject: CN=mail.research.osu.edu, OU=Office of Research, O=The Ohio State University, STREET=154 W 12th Avenue, L=Columbus, S=OH, PostalCode=43210, C=US, Issuer: CN=InCommon Server CA, OU=InCommon, O=Internet2, C=US.
Validating the certificate name.
The certificate name was validated successfully.
Additional Details
Host name mail.research.osu.edu was found in the Certificate Subject Common name.
Certificate trust is being validated.
The certificate is trusted and all certificates are present in the chain.
Test Steps
ExRCA is attempting to build certificate chains for certificate CN=mail.research.osu.edu, OU=Office of Research, O=The Ohio State University, STREET=154 W 12th Avenue, L=Columbus, S=OH, PostalCode=43210, C=US.
One or more certificate chains were constructed successfully.
Additional Details
A total of 1 chains were built. The highest quality chain ends in root certificate CN=AddTrust External CA Root, OU=AddTrust External TTP Network, O=AddTrust AB, C=SE.
Analyzing the certificate chains for compatibility problems with versions of Windows.
Potential compatibility problems were identified with some versions of Windows.
Additional Details
ExRCA can only validate the certificate chain using the Root Certificate Update functionality from Windows Update. Your certificate may not be trusted on Windows if the "Update Root Certificates" feature isn't enabled.
Testing the certificate date to confirm the certificate is valid.
Date validation passed. The certificate hasn't expired.
Additional Details
The certificate is valid. NotBefore = 6/23/2011 12:00:00 AM, NotAfter = 6/22/2012 11:59:59 PM
Checking the IIS configuration for client certificate authentication.
Client certificate authentication wasn't detected.
Additional Details
Accept/Require Client Certificates isn't configured.
Testing HTTP Authentication Methods for URL
https://mail.research.osu.edu/rpc/rpcproxy.dll.
The HTTP authentication methods are correct.
Additional Details
ExRCA found all expected authentication methods and no disallowed methods. Methods found: Negotiate, NTLM
Testing SSL mutual authentication with the RPC proxy server.
Mutual authentication was verified successfully.
Additional Details
Certificate common name mail.research.osu.edu matches msstd:mail.research.osu.edu.
Attempting to ping RPC proxy mail.research.osu.edu.
RPC Proxy was pinged successfully.
Additional Details
Completed with HTTP status 200 - OK
Attempting to ping RPC endpoint 6001 (Exchange Information Store) on server MAIL.rf.ohio-state.edu.
The endpoint was pinged successfully.
Additional Details
RPC Status Ok (0) returned in 546 ms.
Testing the Name Service Provider Interface (NSPI) on the Exchange Mailbox server.
The NSPI interface was tested successfully.
Test Steps
Attempting to ping RPC endpoint 6004 (NSPI Proxy Interface) on server MAIL.rf.ohio-state.edu.
The endpoint was pinged successfully.
Additional Details
RPC Status Ok (0) returned in 483 ms.
Testing NSPI "Check Name" for user
[email protected] against server MAIL.rf.ohio-state.edu.
Check Name succeeded.
Additional Details
DisplayName: Bossley, Peter A, LegDN: /o=Research Foundation/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bossley, Peter A
Testing the Referral service on the Exchange Mailbox server.
The Referral service was tested successfully.
Test Steps
Attempting to ping RPC endpoint 6002 (Referral Interface) on server MAIL.rf.ohio-state.edu.
The endpoint was pinged successfully.
Additional Details
RPC Status Ok (0) returned in 492 ms.
Attempting to perform referral for user /o=Research Foundation/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=Bossley, Peter A on server MAIL.rf.ohio-state.edu.
ExRCA successfully got the referral.
Additional Details
The server returned by the Referral service: MAIL.rf.ohio-state.edu
Testing the Exchange Information Store on the Mailbox server.
ExRCA successfully tested the Information Store.
Test Steps
Attempting to ping RPC endpoint 6001 (Exchange Information Store) on server MAIL.rf.ohio-state.edu.
The endpoint was pinged successfully.
Additional Details
RPC Status Ok (0) returned in 15 ms.
Attempting to log on to the Exchange Information Store.
ExRCA successfully logged on to the Information Store.
Any other ideas?
thanks! -
Getting database properties from current container
Hi guys
I'm a trainee java developer and I'm struggling... I've done countless google's & I'm not getting anywhere...
I won't mind if the response to this post is RTFM, but at least could you point me in the right direction :)
My manager told me to replace all our ejb finders to rather use Hibernate (www.hibernate.org).
I got that working very cool, but the way I setup Hibernate's SessionFactory is through an xml file:
Example:
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE hibernate-configuration (View Source for full doctype...)>
- <hibernate-configuration>
- <!-- a SessionFactory instance listed as /jndi/name
-->
- <session-factory name="java:comp/env/hibernate/SessionFactory">
- <!-- properties
-->
<property name="connection.driver_class">org.hsqldb.jdbcDriver</property>
<property name="connection.url">jdbc:hsqldb:hsql://localhost:1703</property>
<property name="connection.username">sa</property>
<property name="connection.password" />
<property name="dialect">net.sf.hibernate.dialect.HSQLDialect</property>
- <!-- mapping files
-->
<mapping resource="za/co/strate/safe/reports/CountPartyUnmatchedOrdersVO.hbm.xml" />
</session-factory>
</hibernate-configuration>
Now my manager want's me to rather get these database connection properties from the current ejb container (not hard-coded in any file)...
We have client's running JBoss & IBM WebSphere...
Any pointers would be greatly appreciated!
Thanks!
AnthonyNow my manager want's me to rather get these database connection properties from the current ejb container (not hard-coded in any file)...
Tell you'r manager that he is a stupid asshole who has no clue about what he is talking.
Because what he wants is not possible -
How can I get properties from my ldap server?
urgent,I don't know
how to use the getproperties to get the properties
from ldap server,anyone help?Hi Kevin,
You could write a portlet that uses the <um:getProfile> and
<um:getProperty> tag (
http://edocs.bea.com/wlp/docs40/p13ndev/jsptags.htm#1058056 )
Or you can do an easier test that requires no coding: If you use the EBCC
to create metadata about your ldap property set, then you can use the JSP
portal admin tool to see your LDAP properties for a user. I think if you go
through the UUP example on dev2dev.bea.com it has instructions for doing
this with a UUP. Basically, create a property set (a.k.a. "user profile")
named "ldap" in the EBCC and create properties that match the ones you want
to retrieve ("telephoneNumber", etc...CASE SENSITIVE). Then access the JSP
portal admin tool. If you are not using the LDAPRealm as your alternate
security realm then create a user that you know exists in LDAP and then hit
the link for the user and search the "ldap" property set and you will see
their property values. If you are using the LDAPRealm for authentication,
then this is not a ManageableRealm so you cannot create users (they are
managed in your LDAP server). So, if you are using the LDAP realm, just
create the "ldap" property set in the EBCC and go to the user mgmt tools in
the JSP admin tools and you will see your user. Then search the "ldap"
property set for your user and you will see the property values.
Ture Hoefner
BEA Systems, Inc.
www.bea.com
"Kevin" <[email protected]> wrote in message
news:[email protected]...
>
Hello,
We're trying to retrieve an arbitrary profile and it's attributes from
a Novell NDS ldap server. I've configured the ldapprofile.jar as
described in the portal doc:
http://edocs.bea.com/wlp/docs40/p13ndev/users.htm#1131824
but the article doesn't go on to describe how to use the configuration
to actually access the properties.
I'm unsure as to how to use the com.bea.p13n.usermgmt.profile.ldap
package to retrieve the information I need.
Is there some step by step instructions to achieve this as well as
some sample code to run in a jsp to test this functionality?
Thanks for any help.
Kevin
Ture Hoefner <[email protected]> wrote:
Hi Eric,
The LdapPropertyManager handles that for you. All you have to do is
deploy it. (I'm talking about Portal 4.0). See the docs at "Accessing
Properties from an LDAP Server" (
http://edocs.bea.com/wlp/docs40/p13ndev/users.htm#1131824 )
You will need to deploy the LDAPPropertyManager EJB, located in
ldapprofile.jar. It is shipped with the product in
<wlportal4.0-install-dir>/lib/p13n/ejb/ldapprofile.jar.
Eric Nie wrote:
urgent,I don't know
how to use the getproperties to get the properties
from ldap server,anyone help?--
Ture Hoefner
BEA Systems, Inc.
2590 Pearl St.
Suite 110
Boulder, CO 80302
www.bea.com -
Restoring single mailbox from exchange edb backup
Hello everyone
could any one please let me know that how to restore a single mailbox in case it is corroupted or the mails are stored on a pst file in the local pc and i have a backup as the emails to that particular address are being forwarded to the backup mailbox in exchange 2007. which is a normal email box but used for backup purposes. how can i restore the mails from the edb file to the exchange server mailbox whose emails were being stored in a pst.
Thanks.Anonymousemaster wrote:
Hello everyone
could any one please let me know that how to restore a single mailbox in case it is corroupted or the mails are stored on a pst file in the local pc and i have a backup as the emails to that particular address are being forwarded to the backup mailbox in exchange 2007. which is a normal email box but used for backup purposes. how can i restore the mails from the edb file to the exchange server mailbox whose emails were being stored in a pst.
Thanks.
Hello,
I doubt if There are some tools tools that can extract individual mailboxes in .pst format from corrupted .edb databases.
One such tool can be downloaded from :- http://www.exchangeserverrecovery.com -
Multiple Billing Documents (from VF03) getting appended to a single spool
Hi All,
We have a requirement where in user wants all the billing documents which were given for printing should get appended to a single spool. The billing documents will be given for printing from VF03.
Now what's happening is, for each billing document, one spool is getting printed.
Note 742538 was implemented and now, when a document is given for printing for the second time then it is getting appended to the exisiting spool( the spool whcih was generated when the documented was given for printing for the first time.). But, now i want to append all the billing documents to a single spool.
Thanks in advance.
Regards,
Razia Shaheen.you probabaly have to adopt the part of OPEN_FORM.
At first if you have ITCPO-TDNEWID checked you will get a new spool everytime so make sure this one is space, or its analogon in SMARTFORMS interface.
Even tho Spooltitle and suffix are not keyfields in spooltable i have made the expierince that you will get different spools for different titles. So you better synchronize the title and the suffixes for those spools you wish to add in one spool. -
So Wat to do? Is there any way to get out as a single swf file from captivate.
Dear friends,
I am beginner in Adobe Captivate. We have a E-learning
project. We are using Dockers as our LMS. Previously we were using
Flash for all. Now we are trying Captivate for better and faster
results. I have few swf files and i inserted al files in Captivate
and i published. So instead of getting single output, am getting
all the swfs, skin swf and html file. Html file is accessing all
swfs and works. But it is not working in Dockers. Single swf will
only work in Dockers. So Wat to do? Is there any way to get out as
a single swf file from captivate. please Help mee.
Thanks
FlashloverIf 'Dockers' cannot handle a .zip file as the content and
instead
requires a single, uncompressed content file, then it is not
SCORM-compliant. The SCORM specification requires the LMS to
handle a
'pif' file (most common is .zip) which contains the lesson
and the
required manifest file. If Dockers doesn't support that then
you can't
do SCORM-compliant content.
Erik
loverflash wrote:
> Dear friends,
>
> We are using
> Dockers as our LMS.
> So instead of getting single output, am
> getting all the swfs, skin swf and html file. Html file
is accessing all swfs
> and works. But it is not working in Dockers. Single swf
will only work in
> Dockers.
>
> Thanks
> Flashlover
>
Erik Lord
http://www.capemedia.net
Adobe Community Expert - Authorware
http://www.adobe.com/communities/experts/
http://www.awaretips.net -
samples, tips, products, faqs, and links!
*Search the A'ware newsgroup archives*
http://groups.google.com/group/macromedia.authorware -
Move data from multiple Tables to a Single Table & Convert the list to ALV.
Hi,
My aim is to get the list of Materials with their descriptions, with MRP Controller, with Unrestriced Qty. & the Reorder Qty. So, I have to fetch the data from different tables. But finally I am not able to copy or move the fetched data from multiple tables into the single final table.
Also tell me how to convert this list into ALV.
Below is the program code.
*& Report Y_REORDER_REPORT
REPORT Y_REORDER_REPORT.
tables : marc,makt, mard.
DATA: Begin of i_final occurs 0,
matnr type marc-matnr,
maktx type makt-maktx,
DISPO type marc-DISPO,
MINBE type marc-MINBE,
LABST type mard-LABST,
end of i_final.
DATA: Begin of i_marc occurs 0,
matnr type marc-matnr,
DISPO type marc-DISPO,
MINBE type marc-MINBE,
end of i_marc.
DATA: Begin of i_makt occurs 0,
matnr type makt-matnr,
maktx type makt-maktx,
end of i_makt.
DATA: Begin of i_mard occurs 0,
matnr type mard-matnr,
LABST type mard-LABST,
LGORT TYPE MARD-LGORT,
end of i_mard.
SELECT matnr
dispo
minbe from marc
into corresponding fields of table i_marc
where dispo EQ 'STR'.
SORT I_MARC by MATNR.
WRITE: /10 'Material',
75 'MRP',
80 'Reorder Qty.'.
LOOP at i_marc.
Write: /10 i_marc-matnr,
75 i_marc-dispo,
80 i_marc-minbe.
ENDLOOP.
write: /.
SELECT matnr
MAKTX from makt
into corresponding fields of table i_makt
for all entries in i_marc
where matnr = i_marc-matnr.
LOOP at i_makt.
Write: /10 i_makt-matnr,
30 i_makt-maktx.
ENDLOOP.
SELECT matnr
LGORT
LABST from mard
into corresponding fields of table i_mard
for all entries in i_marc
where matnr = i_marc-matnr.
LOOP at i_mard.
Write: /10 i_mard-matnr,
30 I_MARD-LGORT,
40 i_mard-labst.
ENDLOOP.
move i_mard-matnr to i_final-matnr.
move i_marc-dispo to i_final-dispo.
move i_marc-minbe to i_final-minbe.
move i_makt-maktx to i_final-maktx.
move i_mard-labst to i_final-labst.
WRITE: /10 'Material',
30 'Material Desc.',
75 'MRP',
80 'Reorder Qty.',
105 'Current Stock'.
LOOP at i_final.
Write: /10 i_final-matnr,
30 i_final-maktx,
75 i_final-dispo,
80 i_final-minbe,
105 i_final-labst.
ENDLOOP.
*LOOP at i_mard.
*Write: /10 i_mard-matnr,
30 i_makt-maktx,
75 i_marc-dispo,
80 i_marc-minbe,
105 i_mard-labst.
*ENDLOOP.
Regards,
VishalChange like this,
SELECT matnr
lgort
labst FROM mard
INTO CORRESPONDING FIELDS OF TABLE i_mard
FOR ALL ENTRIES IN i_marc
WHERE matnr = i_marc-matnr.
LOOP AT i_mard.
WRITE: /10 i_mard-matnr,
30 i_mard-lgort,
40 i_mard-labst.
ENDLOOP.
LOOP AT i_marc.
READ TABLE i_mard WITH KEY matnr = i_marc-matnr.
READ TABLE i_makt WITH KEY matnr = i_marc-matnr.
MOVE i_mard-matnr TO i_final-matnr.
MOVE i_marc-dispo TO i_final-dispo.
MOVE i_marc-minbe TO i_final-minbe.
MOVE i_makt-maktx TO i_final-maktx.
MOVE i_mard-labst TO i_final-labst.
APPEND i_final.
ENDLOOP.
WRITE: /10 'Material',
30 'Material Desc.',
75 'MRP',
80 'Reorder Qty.',
105 'Current Stock'. -
Speeding up the Get-MailboxStatistics cmdlet for ~19K mailboxes.
Greetings,
While this is partially a PowerShell scripting question, I am posting it in the Exchange 2010 forum because the issues I believe center around the Get-MailboxStatistics itself, and the speed of my scripts in Exchange 2010 (possibly
due to the additional overhead in remote PowerShelling).
In my Exchange 2010 system we have ~19,000 mailboxes spread accross multiple DAG nodes, and ever since we upgraded from Exchange 2007 to Exchange 2010, gathering all of the mailboxes and then gathering their statistics takes almost
twice as long. For example a script that used to take ~45 minutes in Exchange 2007, takes about an hour and a ½.
The issue I am running into when clocking core aspects of a mailbox data gathering scripts is that the Get-MailboxStatistics seems to be taking an excessively long period of time, and I am hoping someone can help me figure out a
way to speed up the process.
For example this is a boiled down script I created, where I ripped out a ton of other things and just focused on the Get-Mailbox and Get-MailboxStatistics commands:
$BaseOU
=
"Customers"
# Capture the date and time in a variable using the "Fri 11/01/2010 6:00 AM" format.
$DateTime
=
Get-Date
-Format
"ddd MM/dd/yyyy h:mm tt"
# Select a single domain controller to use for all the queries (to avoid mid AD replication inconsistencies)
from the environment variable LOGONSERVER - this ensures the variable will always be dynamically updated.
$DomainController
= ($Env:LogonServer).Substring(2)
# Set the loop count to 0 so it can be used to track the percentage of completion.
$LoopCount
= 0
# Start tracking the time this script takes to run.
$StopWatch1
=
New-Object
System.Diagnostics.Stopwatch
$StopWatch1.Start()
# Get the mailbox info for all IHS customer mailboxes.the storage limit is Prohibit send or mailbox disabled
Write-Host
-ForegroundColor
Green
"Beginning mailbox gathering. In a short while a progress bar will appear."
$GatheredMailboxes
=
Get-Mailbox
-ResultSize:Unlimited
-OrganizationalUnit
"ADDomain.com/$BaseOU"
-DomainController
$DomainController |
Select Identity,DisplayName,ProhibitSendQuota
Write-Host
-ForegroundColor
Green
"Mailbox data gathering is complete."
$StopWatch1.Stop()
$StopWatch2
=
New-Object
System.Diagnostics.Stopwatch
$StopWatch2.Start()
Foreach ($Mailbox
in
$GatheredMailboxes) {
# Show a status bar for progress while the mailbox data is collected.
$PercentComplete
= [Math]::Round(($LoopCount++
$GatheredMailboxes.Count
* 100),1)
$CurrentMBDisplay
=
$Mailbox.DisplayName
Write-Progress
-Activity
"Mailbox Data Gathering in Progress"
-PercentComplete
$PercentComplete
`
-Status
"$PercentComplete% Complete"
-CurrentOperation
"Current Mailbox: $CurrentMBDisplay"
#Get the mailbox statistics for each mailbox gathered above.
$MailboxStats
=
Get-MailboxStatistics
$Mailbox.Identity |
Select StorageLimitStatus,TotalItemSize
# Proceed only if the the mailbox statistics show the storage limit is Prohibit Send or Mailbox Disabled.
# Write-Host "Stats for"$Mailbox.DisplayName"are Limit ="$MailboxStats.StorageLimitStatus"and Size ="$MailboxStats.TotalItemSize.Value.ToMB()"MB."
# Calculate the amount of time the script took to run and write the information to the screen.
$StopWatch2.Stop()
$ElapsedTime
=
$StopWatch1.Elapsed
Write-Host
"he mailbox gathering took"
$ElapsedTime.Hours
"hours,"
$ElapsedTime.Minutes
"minutes, and"
$ElapsedTime.Seconds
`
"seconds to run."
$ElapsedTime
=
$StopWatch2.Elapsed
Write-Host
"The foreach loop took"
$ElapsedTime.Hours
"hours,"
$ElapsedTime.Minutes
"minutes, and"
$ElapsedTime.Seconds
`
"seconds to run."
Using the two stop clocks, I was able to see that the Get-Mailbox of all mailboxes took ~9 minutes. That isn’t lightning fast, but it isn’t unreasonable.
The issue comes in where the Foreach loop with the Get-MailboxStatistics took ~53 minutes, and I am sure some of the mailbox data was cached on the servers from my various tests so it would probably take even longer with a cold
run.
I did some digging around and I really couldn’t find anything on how to speed up the Get-MailboxStatistics, and the only thing I found was this link:
http://social.technet.microsoft.com/Forums/en-US/winserverpowershell/thread/9ceefddd-7a59-44ec-8fc0-8de244acb58b
However I am not clear on how moving the Get-MailboxStatistics into the Get-Mailbox syntax (which is odd to me in general) would speed things up if I still have to have a foreach loop to process the data a little bit and add the
users to a datatable. That discussion also made think the foreach loop itself is slowing things down but unclear as to how/why if that is true.
Can someone help share some ideas on how to speed up this process? I think there are some other things I could try but I can’t think of them.
Thank you in advance.I think it's impossible to speed up the Get-MailboxStatistics when it is being called for each and every mailbox individually.
I read somewhere in other posts people were having better performance by calling the cmdlet against an entire database or server so I gave it a shot with this code:
$DAGS = "EXCHDAG1"
# Start tracking the time this script takes to run.
$StopWatch = New-Object System.Diagnostics.Stopwatch
$StopWatch.Start()
$MailboxStatistics = New-Object System.Data.DataTable “MailboxStatistics”
$MailboxStatistics.Columns.Add("TotalitemSize",[String]) | Out-Null
$MailboxStatistics.Columns.Add("ItemCount",[String]) | Out-Null
$MailboxStatistics.Columns.Add("LastLogonTime",[String]) | Out-Null
$MailboxStatistics.Columns.Add("LastLogoffTime",[String]) | Out-Null
$MailboxStatistics.Columns.Add("MailboxGUID",[String]) | Out-Null
$MailboxStatistics.PrimaryKey = $MailboxStatistics.Columns["MailboxGUID"]
ForEach ($DAGServer in (Get-DatabaseAvailabilityGroup $DAGS).Servers) {
ForEach ($MailboxStats in (Get-MailboxStatistics -Server $DAGServer.Name | Where {$_.DisconnectDate -eq $Null})) {
$NewMBXStatsDTRow = $MailboxStatistics.NewRow()
$NewMBXStatsDTRow.TotalitemSize = $MailboxStats.TotalItemSize
$NewMBXStatsDTRow.ItemCount = $MailboxStats.ItemCount
$NewMBXStatsDTRow.LastLogonTime = $MailboxStats.LastLogonTime
$NewMBXStatsDTRow.LastLogoffTime = $MailboxStats.LastLogoffTime
$NewMBXStatsDTRow.MailboxGUID = $MailboxStats.MailboxGuid.ToString()
$MailboxStatistics.Rows.Add($NewMBXStatsDTRow)
$StopWatch.Stop()
$ElapsedTime = $StopWatch.Elapsed
Write-Host "The script took" $ElapsedTime.Hours "hours," $ElapsedTime.Minutes "minutes, and" $ElapsedTime.Seconds `
"seconds to run."
Here are the results in speed:
The script took 0 hours, 3 minutes, and 13 seconds to run.
So yeah... ~3 minutes versus ~1 hour, I would say that's an improvement.
Now I will go back to my script and as I process each mailbox I will pull it's statistics information out of the DataTable using its GUID with:
If ($MailboxStats = $MailboxStatistics.Rows.Find($Mailbox.MailboxGUID)) {
# Insert mailbox statistics processing here using the $MailboxStats variable with "." extensions.
} Else {
# Mailbox statistics weren't found so go grab them individually as a backup mechanism for scenarios when a user's mailbox got moved out of the DAG to a non-DAG database for whatever reason.
It's a little silly that I have to extract the information out of each DAG server and put it in an in-memory table just to speed this process up, but clearly there is overhead with the Get-MailboxStatistics cmdlet and grabbing more mailboxes at once helps
negate this issue.
I'm going to mark my own response as an answer because I don't think anyone else is going to come up with something better than what I put together. -
Add multiple SMTP addressee to a single mailbox
Here is what I tried to do. we are using exchange 2007.
1. remove secondary SMTP email address for every user, for example
[email protected], [email protected],etc should be removed from mailboxes of user1 and user2. their primary SMTP is @domain1.com
2. add multiple SMTP addressees([email protected],[email protected],etc) to a single mailbox, for example,
[email protected]
so whoever send emails to @domain2.com will get an auto-reply message.
for #1, i found a tool ,ADModify can do the job
for #2, i am still looking for the powershell command or tool that i can import a list of SMTP addresses as secondary SMTP addresses to a single mailbox.Hello,
Come back and mark the replies as answers if they help and unmark them if they provide no help.
I'm marking the reply as answer as there has been no update for a couple of days.
If you come back to find it doesn't work for you, please reply to us and unmark the answer.
Cara Chen
TechNet Community Support -
Hi,
I have a a DAG with 4 MBD, and all look ok however one specific MDB003 is churning out lots and lots of logs, 20GB compared to 0.5GB on all other MDB and mailboxes are shared. How do I best pin point the exact issue as to why this single MDB is creating
so many logs, could it be a single mailbox? Trying to find out where to start!
Thanks!
pjmartinsHi,
Please run the following command to check Users Outbox for any large, looping, or stranded messages that might be affecting overall Log Growth.
Get-Mailbox -ResultSize Unlimited | Get-MailboxFolderStatistics -folderscope Outbox | Sort-Object Foldersize -Descending | select-object identity,name,foldertype,itemsinfolder,@{Name="FolderSize
MB";expression={$_.folderSize.toMB()}}
And you can also use the command below to check result, as what Andy suggested above.
Get-Mailbox | Get-StoreUsageStatistics | sort-object logrecordbytes | select Displayname,LogRecordBytes
Best regards,
Belinda Ma
TechNet Community Support
Maybe you are looking for
-
How to extract/format the calendar week from date?
Hi, we are using WebI XI 3.1 SP3 in combination with SAP-BI(BW) 7.2. From a BW-Query we get a normal date (21.03.2011) and we want to show our KPIs/ key data per calender week (12.2011). In the universe-designer we only can get calender month from a
-
Soap Receiver : how to convert application/xml of payload to text/xml?
I get a purchase order xml from SRM with payload as "MainDocument(application/xml)". The receiving system is a Webmethods service that can only accept text/xml. If I try using the testing facility of the runtime workbench (Testing tab under IE under
-
Hi I am facing issue with order start date. I have created a process order and finish date as 30/06/2011. Scheduling is Forward in Time. When i do partial confirmation of order on 22/06/2011 in production system, Order start date gets changed to 22/0
-
Need Help with Skipping Audio in Slideshows
I'm trying to burn a simple slideshow with iDVD of about 80 pictures, with an overlay .mp3 playing. I made the slideshow, and during the preview, the audio plays fine. But after I burned it, the mp3 skips slightly while the pictures change. I initial
-
Problem with lasso tool in PSE10!!
Will start using lasso tool and then the picture will flicker and the lassoo tool will not function to continue with the selection. Has worked ok in the past but not now. Have tried reset tool but did"t work out problem. Why the flicker of the pictu