Closed mikecay closed 1 year ago
Is the dhcp server also a Domain Controller?
No it is not. We ended up using Powershell 5.1 for all the Microsoft AsBuiltReports. Powershell 7.6 was throwing a bunch of errors and 5.1 if fine.
Mike
On Sat, Dec 17, 2022 at 1:17 PM Jonathan Colon @.***> wrote:
Is the dhcp server also a Domain Controller?
— Reply to this email directly, view it on GitHub https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.Windows/issues/10#issuecomment-1356364311, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADMTI6SQVPKKF53FKSEF6MTWNX7TLANCNFSM6AAAAAAR3ZCIFE . You are receiving this because you authored the thread.Message ID: @.*** .com>
Updated the documentation to point out the supported powershell version.
Describe the bug When executing the Microsoft Windows Report against a server running DHCP I get the following errors
Get-DhcpServerSetting: Cannot process argument transformation on parameter 'CimSession'. Cannot convert the "CimSession: server.name" value of type "Deserialized.Microsoft.Management.Infrastructure.CimSession" to type "Microsoft.Management.Infrastructure.CimSession[]". Get-DhcpServerDatabase: Cannot process argument transformation on parameter 'CimSession'. Cannot convert the "CimSession: server.name" value of type "Deserialized.Microsoft.Management.Infrastructure.CimSession" to type "Microsoft.Management.Infrastructure.CimSession[]". Get-DhcpServerDnsCredential: Cannot process argument transformation on parameter 'CimSession'. Cannot convert the "CimSession: server.name" value of type "Deserialized.Microsoft.Management.Infrastructure.CimSession" to type "Microsoft.Management.Infrastructure.CimSession[]". Get-DhcpServerv4Statistics: Cannot process argument transformation on parameter 'CimSession'. Cannot convert the "CimSession: server.name" value of type "Deserialized.Microsoft.Management.Infrastructure.CimSession" to type "Microsoft.Management.Infrastructure.CimSession[]". Get-DhcpServerv4Scope: Cannot process argument transformation on parameter 'CimSession'. Cannot convert the "CimSession: server.name" value of type "Deserialized.Microsoft.Management.Infrastructure.CimSession" to type "Microsoft.Management.Infrastructure.CimSession[]". Get-DhcpServerv4OptionValue: Cannot process argument transformation on parameter 'CimSession'. Cannot convert the "CimSession: server.name" value of type "Deserialized.Microsoft.Management.Infrastructure.CimSession" to type "Microsoft.Management.Infrastructure.CimSession[]". Get-DhcpServerv4Scope: Cannot process argument transformation on parameter 'CimSession'. Cannot convert the "CimSession: server.name" value of type "Deserialized.Microsoft.Management.Infrastructure.CimSession" to type "Microsoft.Management.Infrastructure.CimSession[]".
The report is generated but without the DHCP details. I am running AsBuiltReport on Windows Server 2016 and the target server, with DHCP installed, is also Windows Server 2016.
To Reproduce Steps to reproduce the behavior: Run the module against a Windows Server 2016 with DHCP installed
Expected behavior The report to be created with the DHCP details
Desktop (please complete the following information): PowerShell 7.2.6 PowerCLI 12.7