# File lib/wsman.rb, line 714
  def write_enable_boot_src_file(input_file, state, instance_ids)
    File.open(input_file, "w+") do |f|
      f.write %Q[
        <p:#{CHANGE_BOOT_STATE_CMD}_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/root/dcim/DCIM_BootConfigSetting">
        <p:EnabledState>#{state}</p:EnabledState>
      ]

      instance_ids.each do |instance_id|
        next unless instance_id
        next if instance_id.empty?

        f.write %Q[
          <p:source>#{instance_id}</p:source>
        ]
      end

      f.write %Q[
        </p:#{CHANGE_BOOT_STATE_CMD}_INPUT>
      ]
    end

    true
  end