POSHChef / POSHChef

PowerShell Client for Chef
Apache License 2.0
54 stars 8 forks source link

Move location of POSHChef and other Modules #14

Open russellseymour opened 9 years ago

russellseymour commented 9 years ago

When POSHChef was first started the module was installed in 'C:\Windows\System32\WindowsPowerShell\v1.0\Modules'. Since then Microsoft has introduced a new location at 'C:\Program Files\WindowsPowerShell\Modules'.

In test situations I have used PSGet to install the Modules and it complains about the former location. So to help with the location and make it more logical and shorter the documentation will be updated to reflect where the module should be installed to. POSHChef will also be modified to put DSC resources into this location as well.

russellseymour commented 9 years ago

After some research into this, there is a trade off.

When a DSC Configuration script is run any resources are looked for in the $pshome path, which is c:\windows\system32\windowspowershell\v1.0\modules. For other resources to be found in other locations they needed to be imported using the Import-DSCResources dynamic keyword.

I will continue to look into this, but at the moment I am going to leave things as they are.