Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 5 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
The code I posted is a suggestion as to how to make this work so that it can be debugged. I cannot access an Exchange server right now so I cannot test it. You will have to look at the whole error message and identify the offending object.
When using remote Exchange the returned objects will not be integers. Sizes will be special large byte structures that have been converted to strings. The code you started with assumes it is running in the Exchange Management Shell (EMS). Remotely it will not work without addressing the martialing differences.
Build the information up a piece at a time until you understand the returned objects. You will need to abandon the pipeline to do this exploration.
jvierra wrote: ↑Wed Jun 27, 2018 5:49 am
The code I posted is a suggestion as to how to make this work so that it can be debugged. I cannot access an Exchange server right now so I cannot test it. You will have to look at the whole error message and identify the offending object.
When using remote Exchange the returned objects will not be integers. Sizes will be special large byte structures that have been converted to strings. The code you started with assumes it is running in the Exchange Management Shell (EMS). Remotely it will not work without addressing the martialing differences.
Build the information up a piece at a time until you understand the returned objects. You will need to abandon the pipeline to do this exploration.
This topic is 5 years and 9 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.