*** Hopeleonie ***
asked on
Problems with Microsoft.DHCP.PowerShell.Admin Module
Hi
I can't run this PowerShell script (for Server 2003) on both of my clients.
Error on Client 1:
Error on Client 2:
On the second client I can't find any modules. But the import was successful
Source:
https://expirebox.com/download/827ed50c10126227a112d7bc83052b24.html
https://www.virustotal.com/en/file/b4d1f4801d1657b5d932bb616a815bb0ef803c5d24fc0d2baf18ac9b92d0028c/analysis/1485267555/
Any idea?
Many thanks in advance.
I can't run this PowerShell script (for Server 2003) on both of my clients.
Error on Client 1:
Method invocation failed because [System.Char] does not contain a method named 'Contains'.
At C:\temp\Microsoft.DHCP.PowerShell.Admin.psm1:796 char:6
+ if($text[2].Contains("Server may not function properly")) { Write-H ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
Get-DhcpServerv4Scope : Invalid class
At C:\temp\Read_DHCP_Reservation.ps1:15 char:12
+ $Scopes2 = Get-DhcpServerv4Scope -ComputerName $DHCPServerNew
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : MetadataError: (PS_DhcpServerv4Scope:root/Microsoft/...cpServerv4Scope) [Get-DhcpServerv4Scope], CimEx
ception
+ FullyQualifiedErrorId : HRESULT 0x80041010,Get-DhcpServerv4Scope
Error on Client 2:
On the second client I can't find any modules. But the import was successful
Source:
https://expirebox.com/download/827ed50c10126227a112d7bc83052b24.html
https://www.virustotal.com/en/file/b4d1f4801d1657b5d932bb616a815bb0ef803c5d24fc0d2baf18ac9b92d0028c/analysis/1485267555/
Any idea?
Many thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@Michael Pfister
The problem was that Windows 10 didn’t have the latest updates. Installed the updates from this month and the script is working fine.
But it is still not working on Windows 7, but don’t have time to troubleshoot this at the moment.
Thank you very much again.
The problem was that Windows 10 didn’t have the latest updates. Installed the updates from this month and the script is working fine.
But it is still not working on Windows 7, but don’t have time to troubleshoot this at the moment.
Thank you very much again.
ASKER
- Client 1 = Windows 10 Enterprise
- Client 2 = Windows 7 Enterprise
The strange thing is that is is working on all other colleagues clients (Windows 10 Enterprise). I don't understand...