A control method for controlling an information processing apparatus configured to communicate with a communication apparatus operating in any one of a plurality of power states including a first state and a second state where power consumption is greater than in the first state, wherein power supplied to a predetermined hardware component included in the communication apparatus in a case where the communication apparatus is in the first state is smaller than power supplied to the predetermined hardware component in a case where the communication apparatus is in the second state, or power is not supplied to the predetermined hardware component in a case where the communication apparatus is in the first state, the control method comprising: acquiring (S402-404; S502-S504) from the communication apparatus, power state information indicating a power state of the communication apparatus among the plurality of power states; in a case where the acquired power state information indicates that the communication apparatus is in the second state, causing (S406-S407) the information processing apparatus to operate in a state where the information processing apparatus can transmit an execution request to execute a function using the predetermined hardware component to the communication apparatus; in a case where the acquired power state information indicates that the communication apparatus is in the first state, displaying a screen for receiving an input for shifting the power state of the communication apparatus to the second state; in a case where an input for shifting the power state of the communication apparatus to the second state is received via the screen, transmitting information for causing the power state of the communication apparatus to shift to the second state, and causing the information processing apparatus to operate in the state (S506-508) where the information processing apparatus can transmit the execution request to the communication apparatus; in a case where an input for shifting the power state of the communication apparatus to the second state is not received via the screen, causing the information processing apparatus to operate in a state (S506-508) where the information processing apparatus does not transmit the execution request to the communication apparatus; and transmitting the execution request to the communication apparatus in a state where the information processing apparatus can transmit the execution request to the communication apparatus. acquiring (S402-404; S502-S504) from the communication apparatus, power state information indicating a power state of the communication apparatus among the plurality of power states; in a case where the acquired power state information indicates that the communication apparatus is in the second state, causing (S406-S407) the information processing apparatus to operate in a state where the information processing apparatus can transmit an execution request to execute a function using the predetermined hardware component to the communication apparatus; in a case where the acquired power state information indicates that the communication apparatus is in the first state, displaying a screen for receiving an input for shifting the power state of the communication apparatus to the second state; in a case where an input for shifting the power state of the communication apparatus to the second state is received via the screen, transmitting information for causing the power state of the communication apparatus to shift to the second state, and causing the information processing apparatus to operate in the state (S506-508) where the information processing apparatus can transmit the execution request to the communication apparatus; in a case where an input for shifting the power state of the communication apparatus to the second state is not received via the screen, causing the information processing apparatus to operate in a state (S506-508) where the information processing apparatus does not transmit the execution request to the communication apparatus; and transmitting the execution request to the communication apparatus in a state where the information processing apparatus can transmit the execution request to the communication apparatus.