    # File lib/chef/provider/user/windows.rb, line 95
            def set_options
              opts = {:name => @new_resource.username}

              field_list = {
                'comment' => 'full_name',
                'home' => 'home_dir',
                'gid' => 'primary_group_id',
                'uid' => 'user_id',
                'shell' => 'script_path',
                'password' => 'password'
              }

              field_list.sort{ |a,b| a[0] <=> b[0] }.each do |field, option|
                field_symbol = field.to_sym
                if @current_resource.send(field_symbol) != @new_resource.send(field_symbol)
                  if @new_resource.send(field_symbol)
                    unless field_symbol == :password
                      Chef::Log.debug("#{@new_resource} setting #{field} to #{@new_resource.send(field_symbol)}")
                    end
                    opts[option.to_sym] = @new_resource.send(field_symbol)
                  end
                end
              end
              opts
            end