    # File lib/chef/provider/env/windows.rb, line 29
            def create_env
              obj = env_obj(@new_resource.key_name)
              unless obj
                obj = WIN32OLE.connect("winmgmts://").get("Win32_Environment").spawninstance_
                obj.name = @new_resource.key_name
                obj.username = "<System>"
              end
              obj.variablevalue = @new_resource.value
              obj.put_
              broadcast_env_change
            end