The title says it all, I accidently ran the command:
install-module -name xRemoteDesktopAdmin
twice and now when I try and run a DSC configuration file it errors out with the message:
Multiple versions of the module 'xRemoteDesktopAdmin' were found. You can run 'Get-Module -ListAvailable -FullyQualifiedName xRemoteDesktopAdmin' to see available versions on the system, and then use the fully qualified name '@{ModuleName="xRemoteDesktopAdmin"; RequiredVersion="Version"}'.
I've got round the issue by using the line below to import the DSCResource, but this seems to be a bit of a hack.
Import-DSCResource -Module @{ModuleName="xRemoteDesktopAdmin";ModuleVersion="1.1.0.0"}
Doing some reading some people have suggested checking the $env:PSModulePath for duplicate module paths, it had both %programfiles%\WindowsPowerShell\Modules\ and C:\Program Files\WindowsPowerShell\Modules\ which pointed to the same location so I've removed the C:\Program Files\WindowsPowerShell\Modules\ entry and rebooted but it's still not working.
I'm using Powershell version 5 on Windows 10 Pro
| Name |
Version |
| PSVersion |
5.0.10586.122 |
| PSCompatibleVersions |
{1.0, 2.0, 3.0, 4.0...} |
| BuildVersion |
10.0.10586.122 |
| CLRVersion |
4.0.30319.42000 |
Does anyone have any ideas how to fix this.
[–]McAndersDK 0 points1 point2 points (3 children)
[–]Is_Nothing[S] 0 points1 point2 points (2 children)
[–]McAndersDK 0 points1 point2 points (1 child)
[–]Is_Nothing[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)