Hello, I’m not sure if this is strictly a ChefDK issue but I’m hoping that knowledgeable Powershell Chef users might be able to help.
When I start the ChefDK on powershell I’m getting the following error:
The HOME (U:/) environment variable was not set, or was set to
an inaccessible location. Because this can prevent you from running many
of the programs included with ChefDK, we will attempt to find another
Falling back to using C:\Users\mattb as the home directory. If you would like
to use another directory as HOME, please set the HOME environment variable.
If you would not like ChefDK to try to fix the HOME environment variable,
check the CHEFDK_ENV_FIX environment variable. Setting this value to 0
prevent this modification to your HOME environment variable.
PowerShell 2.0 (Microsoft Windows NT 6.1.7600.0)
Ohai, welcome to ChefDK!
The U: drive path is enforced by group policy and I’ve tried setting this with set-variable HOME “C:\users\username”. I’ve also created a Powershell profile, which is being read and contains the following line:
Set-Variable -name HOME -value “C:\Users\mattb” -force
knife commands still take an enourmous amount of time to run and repeat the initial error each time, even though as far as I can tell, HOME is now set correctly.