DMFO
DMFO copied to clipboard
Get Constants from System
Instead of defining all enumerations, use them from the system, like:
[Microsoft.Office.Core.MsoTriState]::msoFalse
Looks like this has to be activated: https://stackoverflow.com/questions/5932794/microsoft-office-core-reference-missing Can this be done from the script? Otherwise, use of DMFO would be more complicated.
Add as assembly? Add-Type -AssemblyName ???
https://www.sqlservercentral.com/blogs/powershell-add-type-%E2%80%93-where%E2%80%99s-that-assembly