# RE: Knife-vSphere plugin (windows)

**URL:** <https://discourse.chef.io/t/re-knife-vsphere-plugin-windows/3143>\
**Category:** Chef Infra (archive)\
**Created:** [September 5, 2012, 6:12pm UTC](https://discourse.chef.io/t/re-knife-vsphere-plugin-windows/3143 "2012-09-05T18:12:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Van\_Fossan\_Randy](https://avatars.discourse-cdn.com/v4/letter/v/8797f3/32.png) [@Van\_Fossan\_Randy](https://discourse.chef.io/u/Van_Fossan_Randy)\
**Post date:** [September 5, 2012, 6:12pm UTC](https://discourse.chef.io/t/re-knife-vsphere-plugin-windows/3143/1 "2012-09-05T18:12:02Z")

</div>

After looking at the source, I see you can specify the Datacenter and vSphere host. I tried it “-d” and --vshost options and they do work.

-----Original Message-----  
From: Van Fossan,Randy  
Sent: Wednesday, September 05, 2012 1:59 PM  
To: 'chef@lists.opscode.com’  
Subject: Knife-vSphere plugin (windows)

All,

I am having some success with the knife-vsphere (0.2.3) plugin in windows. We have the Chef 0.10.12 Omnibus package for Windows installed and we then installed the knife-vsphere plugin. The plugin seems to work ok in windows after I did a little gem cleanup… My question is, is there a way to pass the vsphere\_dc and vspere\_host via the command line? I have tried setting windows environment variables as follows and it isn’t working.

vsphere\_host="mvcenter.fqdn"  
vshrere\_dc=“mydatacenter”

We have many Data Centers on multiple Virtual Center servers.

We need to run knife-vsphere on a windows chef management console due to using VMware Orchestrator and PowerCLI as a wrapper around the “knife vsphere” command.

Any suggestions?

Thanks  
Randy
