New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to find type [System.Management.Automation.Hashtable] error on Win2016 server #95
Comments
Ran into this as well while using Office365DSC. Searching on GitHub for Mandatpry lead me here. I did not dig for the source of the error but at this point just assume it's the same issue. The error for me pops up when refreshing the module list in the ISE command add-on. Furthermore, the module Office365DSC is missing from the module list, I assume due to the error. The error message is:
Some assumptions here. I'm happy to dig further if necessary. fyi @NikCharlebois |
@heinrich-ulbricht can you please confirm what version of ReverseDSC you are using? Latest few versions don't seem to have that anywhere. Latest version should currently be 2.0.0.2 make sure you use the Office365DSC version from GitHub to get the latest bits. Next release to the gallery is planned for Wednesday 22nd. |
@NikCharlebois I installed Office365DSC from the PS Gallery yesterday in a brand new clean Windows VM on Azure. Those are the versions I got:
What is the latest "version from GitHub" and what is the recommended way to upgrade? I currently see those options:
|
I'm also experiencing this issue with when trying to use ReverseDSC for SQL Server:
Seems to be ok if it's called directly rather than using a function. This works:
This doesn't
} |
Details of the scenario you try and problem that is occurring:
Just installed the latest ReverseDSC and SharePointDSC modules from PSGallery. The script loads, pops up the new selection UI, starts outouting some information then throws errors like below on a new SP2019 install running as admin account, farm account or install account. The errors are all referencing types from 'System.Management.Automation...
Configuring Dependencies...
Property 'Mandatpry' cannot be found for type 'System.Management.Automation.CmdletBindingAttribute'.
At C:\Program Files\WindowsPowerShell\Modules\ReverseDSC\2.0.0.0\ReverseDSC.Core.psm1:809 char:20
[ ..AP03 ] Generating the SharePoint Prerequisites Installation...
[ ..AP03 ] Generating the SharePoint Binary Installation...
[ ..AP03 ] Scanning the SharePoint Farm...
Unable to find type [System.Management.Automation.Hashtable].
At C:\Program Files\WindowsPowerShell\Modules\ReverseDSC\2.0.0.0\ReverseDSC.Core.psm1:352 char:17
The DSC configuration that is using the resource:
Version of the Operating System and PowerShell the DSC Target Node is running:
Windows Server 2016 Standard
Major Minor Build Revision
5 1 14393 3053
Version of the DSC module you're using:
Script version: .VERSION 3.4.0.0
Modules
ReverseDSC PSGallery 2.0.0.0
SharePointDSC PSGallery 3.7.0.0
The text was updated successfully, but these errors were encountered: