You'd have to re-think everything if you fought machines. Tactically, they'd outmatch squishy humans, and strategically as well, because they'd all be connected, what one knows, all knows so it'd be difficult to deceive or confuse them.
You'd have to go after the supply and resource. Humans can survive for long time frames away from resupply, and depending on the force in question, could live off the land and only need 'lethal aid' rather than food/water.
Machines would suffer from the same problems as a millennial with an iPhone. Must be within WiFi range, and needs plugging in every 18 hours. Use small SF teams and precision strike assets to nail the control centres, charging stations, power supply networks, and you'll bring down. ECM, incliment weather, which wouldn't effect human soldiers at all, would cause havoc to externally controlled robotics