I decided to take the plunge pray and install powershell v3. I like it so far but I am having a few problems. One problem occurs when running the search-mailbox cmdlet. It starts to run and as soon as it seems like it's finished my powershell windows closes
arbitrarily. Event ID 4999 show in the application log. Same with ISE.
Watson report about to be sent for process id: 3480, with parameters: E12, c-buddy-RTL-AMD64, 14.02.0247.005, PowerShell_ISE, unknown, M.E.D.S.N.PropertyDefinitionSets.BuildWellKnownSets, System.TypeInitializationException, b3a, unknown.
ErrorReportingEnabled: False
- System
- Provider
[ Name] MSExchange Common
- EventID 4999
[ Qualifiers] 16388
Level 2
Task 1
Keywords 0x80000000000000
- TimeCreated
[ SystemTime] 2012-10-03T18:07:40.000000000Z
EventRecordID 31189
Channel Application
Computer computer.domain.local
Security
- EventData
3480
E12
c-buddy-RTL-AMD64
14.02.0247.005
PowerShell_ISE
unknown
M.E.D.S.N.PropertyDefinitionSets.BuildWellKnownSets
System.TypeInitializationException
b3a
unknown
False
Another problem im having is warning messages that show when running some cmdlets before they actually run. They are always the same so far.
below is the warning...
WARNING: The cmdlet extension agent with the index 0 has thrown an exception in OnComplete(). The exception is:
System.TypeInitializationException: The type initializer for
'Microsoft.Exchange.Data.Storage.NativeStorePropertyDefinitionDictionary' threw an exception. ---> System.NotSupportedException:
Not supported field(MailEnabled) type(Microsoft.Exchange.Data.Storage.PropertyTagPropertyDefinition).
at Microsoft.Exchange.Data.Storage.NativeStorePropertyDefinitionDictionary.PropertyDefinitionSets.BuildWellKnownSets()
at Microsoft.Exchange.Data.Storage.NativeStorePropertyDefinitionDictionary..cctor()
--- End of inner exception stack trace ---
at Microsoft.Exchange.Data.Storage.PropertyTagPropertyDefinition.TryFindEquivalentDefinition(PropTagKey key, Boolean
isCustom, PropType type, TypeCheckingFlag typeCheckingFlag, PropertyTagPropertyDefinition& definition, Boolean&
createNewDefinition)
at Microsoft.Exchange.Data.Storage.PropertyTagPropertyDefinition.InternalCreate(String displayName, PropTag propertyTag,
PropertyFlags flags, TypeCheckingFlag typeCheckingFlag, Boolean isCustom, PropertyDefinitionConstraint[] constraints)
at Microsoft.Exchange.Data.Storage.PropertyTagCache.InternalPropertyDefinitionsFromPropTags(TypeCheckingFlag
propertyTypeCheckingFlag, MapiProp mapiProp, StoreSession storeSession, PropTag[] propTags, Int32& resolvedPropertyCount)
at Microsoft.Exchange.Data.Storage.RecipientTable.GetRecipientPropertyDefinitionsFromMapiTable(Boolean&
originalColumnsChanged)
at Microsoft.Exchange.Data.Storage.RecipientTable.BuildRecipientCollection(Action`2 recipientCollectionBuilder)
at Microsoft.Exchange.Data.Storage.CoreRecipientCollection..ctor(ICoreItem coreItem)
at Microsoft.Exchange.Data.Storage.CoreItem.Microsoft.Exchange.Data.Storage.ICoreItem.GetRecipientCollection(Boolean
forceOpen)
at Microsoft.Exchange.Data.Storage.CoreItem.GetRecipientCharsetDetectionData(StringBuilder stringBuilder, Boolean
isComplete)
at Microsoft.Exchange.Data.Storage.ItemCharsetDetector.BuildCodePageDetector(MemoryStream& cachedHtmlBody)
at Microsoft.Exchange.Data.Storage.ItemCharsetDetector.DetectCpidWithOptions(Charset userCharset, MemoryStream&
cachedHtmlBody)
at Microsoft.Exchange.Data.Storage.ItemCharsetDetector.SetCachedBodyDataAndDetectCharset(Char[] cachedBodyData, Charset
userCharset, BodyCharsetFlags charsetFlags)
at Microsoft.Exchange.Data.Storage.BodyCharsetDetectionStream.CalculateCharset()
at Microsoft.Exchange.Data.Storage.BodyCharsetDetectionStream.OnBufferFull()
at Microsoft.Exchange.Data.Storage.BodyCharsetDetectionStream.CloseDetectorConversionStream()
at Microsoft.Exchange.Data.Storage.BodyCharsetDetectionStream.Flush()
at Microsoft.Exchange.Data.TextConverters.ConverterEncodingOutput.Flush()
at Microsoft.Exchange.Data.TextConverters.Internal.Text.TextCodePageConverter.Run()
at Microsoft.Exchange.Data.TextConverters.Internal.Text.TextCodePageConverter.Flush()
at Microsoft.Exchange.Data.TextConverters.ConverterWriter.Flush()
at Microsoft.Exchange.Data.TextConverters.ConverterWriter.Dispose(Boolean disposing)
at System.IO.TextWriter.Close()
at Microsoft.Exchange.Data.Storage.BodyTextWriter.<CloseWriter>b__11()
at Microsoft.Exchange.Data.Storage.ConvertUtils.CallCts(Trace tracer, String methodName, LocalizedString exceptionString,
CtsCall ctsCall)
at Microsoft.Exchange.Data.Storage.BodyTextWriter.CloseWriter()
at Microsoft.Exchange.Data.Storage.BodyTextWriter.Dispose(Boolean disposing)
at System.IO.TextWriter.Dispose()
at Microsoft.Exchange.ProvisioningAgent.MailboxLoggerFactory.XsoMailer.Log(AdminLogMessageData data, LogMessageDelegate
logMessage)
at Microsoft.Exchange.ProvisioningAgent.AdminLogProvisioningHandler.OnComplete(Boolean succeeded, Exception e)
at Microsoft.Exchange.Provisioning.ProvisioningLayer.OnComplete(Task task, Boolean succeeded, Exception exception)
Exchange 2010 Version 14.02.0318.002
Problems occur on a Win7 client. The only thing that has changed was a powershell v3 install.
current powershell version shows version 3
any ideas?