{"action":"created","issue":{"url":"https://api.github.com/repos/VirtualEngine/Lab/issues/25","labels_url":"https://api.github.com/repos/VirtualEngine/Lab/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/VirtualEngine/Lab/issues/25/comments","events_url":"https://api.github.com/repos/VirtualEngine/Lab/issues/25/events","html_url":"https://github.com/VirtualEngine/Lab/issues/25","id":118196829,"number":25,"title":"DSC resources in \"versioned\" subfolders not working on VM's with older PS versions","user":{"login":"csandfeld","id":2597673,"avatar_url":"https://avatars.githubusercontent.com/u/2597673?v=3","gravatar_id":"","url":"https://api.github.com/users/csandfeld","html_url":"https://github.com/csandfeld","followers_url":"https://api.github.com/users/csandfeld/followers","following_url":"https://api.github.com/users/csandfeld/following{/other_user}","gists_url":"https://api.github.com/users/csandfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/csandfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csandfeld/subscriptions","organizations_url":"https://api.github.com/users/csandfeld/orgs","repos_url":"https://api.github.com/users/csandfeld/repos","events_url":"https://api.github.com/users/csandfeld/events{/privacy}","received_events_url":"https://api.github.com/users/csandfeld/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/VirtualEngine/Lab/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-11-21T13:31:42Z","updated_at":"2015-11-26T21:09:13Z","closed_at":"2015-11-26T12:00:48Z","body":"I came to the conclusion that this does warrant it's own issue\r\n\r\nScenario:\r\nHost OS is Windows 10.\r\nModules xComputerManagement, xNetworking etc. were installed with the Install-Module Cmdlet, causing the modules to have a folder structure including the modules version number.\r\n\r\nAs an example, the xComputerManagement module resides in the C:\\Program Files\\WindowsPowerShell\\Modules\\xComputerManagement\\1.3.0 folder.\r\n\r\nNow when I create a lab with Windows Server 2012R2 or Windows 8.1 VM’s, they get stuck in the bootstrap process, when trying to apply the DSC configuration. Reviewing the log shows that it cannot find the DSC resources.\r\n\r\nMoving the modules out of the “version subfolder” fixes that. This makes sense since support for multiple versions of a module (and thus the “version subfolder”) is introduced with PowerShell 5.\r\n\r\nIt would be great if that could be taken into consideration, when resources are copied into VM disk."},"comment":{"url":"https://api.github.com/repos/VirtualEngine/Lab/issues/comments/159994276","html_url":"https://github.com/VirtualEngine/Lab/issues/25#issuecomment-159994276","issue_url":"https://api.github.com/repos/VirtualEngine/Lab/issues/25","id":159994276,"user":{"login":"csandfeld","id":2597673,"avatar_url":"https://avatars.githubusercontent.com/u/2597673?v=3","gravatar_id":"","url":"https://api.github.com/users/csandfeld","html_url":"https://github.com/csandfeld","followers_url":"https://api.github.com/users/csandfeld/followers","following_url":"https://api.github.com/users/csandfeld/following{/other_user}","gists_url":"https://api.github.com/users/csandfeld/gists{/gist_id}","starred_url":"https://api.github.com/users/csandfeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csandfeld/subscriptions","organizations_url":"https://api.github.com/users/csandfeld/orgs","repos_url":"https://api.github.com/users/csandfeld/repos","events_url":"https://api.github.com/users/csandfeld/events{/privacy}","received_events_url":"https://api.github.com/users/csandfeld/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T21:09:13Z","updated_at":"2015-11-26T21:09:13Z","body":"I'm afraid there is still an issue here.\r\nRan into the following problem when testing the password/credential fix for #16.\r\n\r\n* Using a Windows 10 host (PSVersion: 5.0.10240.16384)\r\n  * DSC Resource modules installed using Install-Module\r\n  * Modules resisde in \"versioned\" subfolders (e.g. Modules\\xNetworking\\2.3.0.0\r\n* Created a Windows Server 2016 TP4 VM\r\n  * VM was stuck in a never ending loop trying to bootstrap\r\n  * Reset the VM and ran bootstrap.ps1 manually\r\n  * Got errors that the MSFT_xFirewall does not exist\r\n\r\nImagine my surprise when this was what I found as I looked at the installed modules (the xNetworking resource is in the 2.3.0.0 folder):\r\n\r\n```PowerShell\r\nPS C:\\> gci 'C:\\Program Files\\WindowsPowerShell\\Modules\\'\r\n\r\n    Directory: C:\\Program Files\\WindowsPowerShell\\Modules\r\n\r\nMode                LastWriteTime         Length Name\r\n----                -------------         ------ ----\r\nd-----       26-11-2015     18:28                1.1\r\nd-----       26-11-2015     18:28                1.1.0.0\r\nd-----       26-11-2015     18:28                1.2\r\nd-----       26-11-2015     18:28                1.3.0\r\nd-----       26-11-2015     18:28                2.3.0.0\r\nd-----       26-11-2015     18:28                2.6.0.0\r\nd---s-       30-10-2015     08:22                PackageManagement\r\nd---s-       30-10-2015     08:22                Pester\r\nd---s-       30-10-2015     08:22                PowerShellGet\r\nd-----       30-10-2015     08:22                PSReadline\r\n```"}}